Package org.bonitasoft.engine.operation
Class BusinessDataLeftOperandHandler
java.lang.Object
org.bonitasoft.engine.operation.BusinessDataLeftOperandHandler
- All Implemented Interfaces:
LeftOperandHandler
- Author:
- Baptiste Mesta, Matthieu Chaffotte
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBusinessDataLeftOperandHandler(BusinessDataRepository businessDataRepository, RefBusinessDataService refBusinessDataService, RefBusinessDataRetriever refBusinessDataRetriever, EntitiesActionsExecutor entitiesActionsExecutor, UpdateDataRefAction updateDataRefAction) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(SLeftOperand sLeftOperand, long containerId, String containerType) protected voiddereferenceBusinessData(SRefBusinessDataInstance reference) protected ObjectgetBusinessData(String businessDataName, long containerId, String containerType) getType()voidloadLeftOperandInContext(List<SLeftOperand> sLeftOperand, long leftOperandContainerId, String leftOperandContainerType, SExpressionContext expressionContext) voidloadLeftOperandInContext(SLeftOperand sLeftOperand, long leftOperandContainerId, String leftOperandContainerType, SExpressionContext expressionContext) retrieve the left operand and put it in context as needed by the left operandprotected voidremoveBusinessData(SRefBusinessDataInstance reference) update(SLeftOperand sLeftOperand, Map<String, Object> inputValues, Object newValue, long containerId, String containerType)
-
Field Details
-
refBusinessDataService
-
-
Constructor Details
-
BusinessDataLeftOperandHandler
protected BusinessDataLeftOperandHandler(BusinessDataRepository businessDataRepository, RefBusinessDataService refBusinessDataService, RefBusinessDataRetriever refBusinessDataRetriever, EntitiesActionsExecutor entitiesActionsExecutor, UpdateDataRefAction updateDataRefAction)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLeftOperandHandler
-
update
public Object update(SLeftOperand sLeftOperand, Map<String, Object> inputValues, Object newValue, long containerId, String containerType) throws SOperationExecutionException- Specified by:
updatein interfaceLeftOperandHandler- Parameters:
sLeftOperand- the left operandinputValues- contains value(s) given by the strategy to update the left operand withnewValue- the value to set the element withcontainerId- the container idcontainerType- the container type- Throws:
SOperationExecutionException
-
getBusinessData
protected Object getBusinessData(String businessDataName, long containerId, String containerType) throws SBonitaReadException - Throws:
SBonitaReadException
-
delete
public void delete(SLeftOperand sLeftOperand, long containerId, String containerType) throws SOperationExecutionException - Specified by:
deletein interfaceLeftOperandHandler- Throws:
SOperationExecutionException
-
removeBusinessData
protected void removeBusinessData(SRefBusinessDataInstance reference) throws ClassNotFoundException, SBusinessDataNotFoundException -
dereferenceBusinessData
protected void dereferenceBusinessData(SRefBusinessDataInstance reference) throws SRefBusinessDataInstanceModificationException -
loadLeftOperandInContext
public void loadLeftOperandInContext(SLeftOperand sLeftOperand, long leftOperandContainerId, String leftOperandContainerType, SExpressionContext expressionContext) throws SBonitaReadException Description copied from interface:LeftOperandHandlerretrieve the left operand and put it in context as needed by the left operand- Specified by:
loadLeftOperandInContextin interfaceLeftOperandHandler- Parameters:
sLeftOperand- the left operandleftOperandContainerId- the left operand container id. Used to execute the left Operand in the correct contextleftOperandContainerType- the left operand container type. Used to execute the left Operand in the correct contextexpressionContext- the context to add the value i- Throws:
SBonitaReadException
-
loadLeftOperandInContext
public void loadLeftOperandInContext(List<SLeftOperand> sLeftOperand, long leftOperandContainerId, String leftOperandContainerType, SExpressionContext expressionContext) throws SBonitaReadException - Specified by:
loadLeftOperandInContextin interfaceLeftOperandHandler- Throws:
SBonitaReadException
-