@Override public void delete(final SLeftOperand leftOperand, final long containerId, final String containerType) throws SOperationExecutionException { throw new SOperationExecutionException("Deleting a document is not supported"); }
@Override public void delete(final SLeftOperand leftOperand, final long containerId, final String containerType) throws SOperationExecutionException { throw new SOperationExecutionException("Deleting a data is not supported"); }
@Override public void delete(final SLeftOperand leftOperand, final long containerId, final String containerType) throws SOperationExecutionException { throw new SOperationExecutionException("Deleting a data is not supported"); }
@Override public void delete(final SLeftOperand leftOperand, final long containerId, final String containerType) throws SOperationExecutionException { throw new SOperationExecutionException("Deleting an external data is not supported"); }
@Override public void delete(final SLeftOperand leftOperand, final long containerId, final String containerType) throws SOperationExecutionException { throw new SOperationExecutionException("Deleting a transient data is not supported"); }
@Override public void delete(final SLeftOperand leftOperand, final long containerId, final String containerType) throws SOperationExecutionException { throw new SOperationExecutionException("Deleting a document is not supported"); }
@Override public void delete(final SLeftOperand leftOperand, final long containerId, final String containerType) throws SOperationExecutionException { throw new SOperationExecutionException("Deleting a document is not supported"); }
@Override public void delete(final SLeftOperand leftOperand, final long containerId, final String containerType) throws SOperationExecutionException { throw new SOperationExecutionException("Deleting a document is not supported"); }
private LeftOperandHandler getLeftOperandHandler(final String type) throws SOperationExecutionException { final LeftOperandHandler leftOperandHandler = leftOperandHandlersMap.get(type); if (leftOperandHandler == null) { throw new SOperationExecutionException("Left operand type not found: " + type); } return leftOperandHandler; }
private LeftOperandHandler getLeftOperandHandler(final String type) throws SOperationExecutionException { final LeftOperandHandler leftOperandHandler = leftOperandHandlersMap.get(type); if (leftOperandHandler == null) { throw new SOperationExecutionException("Left operand type not found: " + type); } return leftOperandHandler; }
public OperationExecutorStrategy getOperationExecutorStrategy(final SOperation operation) throws SOperationExecutionException { final String operatorTypeName = getStrategyKey(operation); final OperationExecutorStrategy operationExecutorStrategy = operationStrategies.get(operatorTypeName); if (operationExecutorStrategy == null) { throw new SOperationExecutionException("Unable to find an executor for operation type " + operatorTypeName); } return operationExecutorStrategy; }
public OperationExecutorStrategy getOperationExecutorStrategy(final SOperation operation) throws SOperationExecutionException { final String operatorTypeName = getStrategyKey(operation); final OperationExecutorStrategy operationExecutorStrategy = operationStrategies.get(operatorTypeName); if (operationExecutorStrategy == null) { throw new SOperationExecutionException("Unable to find an executor for operation type " + operatorTypeName); } return operationExecutorStrategy; }
@Override public Object computeNewValueForLeftOperand(final SOperation operation, final Object value, final SExpressionContext expressionContext, final boolean shouldPersistValue) throws SOperationExecutionException { if (!shouldPersistValue) { return value; } try { return actionsExecutor.executeAction(value, null, mergeEntityAction); } catch (SEntityActionExecutionException e) { throw new SOperationExecutionException(e); } }
@Override public Object computeNewValueForLeftOperand(final SOperation operation, final Object value, final SExpressionContext expressionContext, final boolean shouldPersistValue) throws SOperationExecutionException { if (!shouldPersistValue) { return value; } try { return actionsExecutor.executeAction(value, null, mergeEntityAction); } catch (SEntityActionExecutionException e) { throw new SOperationExecutionException(e); } }
protected Object extractObjectToInvokeFromContext(final SOperation operation, final SExpressionContext expressionContext) throws SOperationExecutionException { final Object objectToInvokeJavaMethodOn; final String dataToSet = operation.getLeftOperand().getName(); objectToInvokeJavaMethodOn = expressionContext.getInputValues().get(dataToSet); if (objectToInvokeJavaMethodOn == null) { throw new SOperationExecutionException("data " + dataToSet + " does not exist"); } return objectToInvokeJavaMethodOn; }
protected Object extractObjectToInvokeFromContext(final SOperation operation, final SExpressionContext expressionContext) throws SOperationExecutionException { final Object objectToInvokeJavaMethodOn; final String dataToSet = operation.getLeftOperand().getName(); objectToInvokeJavaMethodOn = expressionContext.getInputValues().get(dataToSet); if (objectToInvokeJavaMethodOn == null) { throw new SOperationExecutionException("data " + dataToSet + " does not exist"); } return objectToInvokeJavaMethodOn; }
@Override public Object update(final SLeftOperand sLeftOperand, Map<String, Object> inputValues, final Object newValue, final long containerId, final String containerType) throws SOperationExecutionException { try { return entitiesActionsExecutor.executeAction(newValue, new BusinessDataContext(sLeftOperand.getName(), new Container(containerId, containerType)), updateDataRefAction); } catch (SEntityActionExecutionException e) { throw new SOperationExecutionException(e); } }
@Override public Object update(final SLeftOperand sLeftOperand, Map<String, Object> inputValues, final Object newValue, final long containerId, final String containerType) throws SOperationExecutionException { try { return entitiesActionsExecutor.executeAction(newValue, new BusinessDataContext(sLeftOperand.getName(), new Container(containerId, containerType)), updateDataRefAction); } catch (SEntityActionExecutionException e) { throw new SOperationExecutionException(e); } }
@Override public void delete(final SLeftOperand sLeftOperand, final long containerId, final String containerType) throws SOperationExecutionException { try { final SRefBusinessDataInstance refBusinessDataInstance = refBusinessDataRetriever.getRefBusinessDataInstance(new BusinessDataContext(sLeftOperand .getName(), new Container(containerId, containerType))); removeBusinessData(refBusinessDataInstance); dereferenceBusinessData(refBusinessDataInstance); } catch (final Exception e) { throw new SOperationExecutionException(e); } }
@Override public void delete(final SLeftOperand sLeftOperand, final long containerId, final String containerType) throws SOperationExecutionException { try { final SRefBusinessDataInstance refBusinessDataInstance = refBusinessDataRetriever.getRefBusinessDataInstance(new BusinessDataContext(sLeftOperand .getName(), new Container(containerId, containerType))); removeBusinessData(refBusinessDataInstance); dereferenceBusinessData(refBusinessDataInstance); } catch (final Exception e) { throw new SOperationExecutionException(e); } }