Package org.bonitasoft.engine.operation
Class TransientDataLeftOperandHandler
- java.lang.Object
-
- org.bonitasoft.engine.operation.TransientDataLeftOperandHandler
-
- All Implemented Interfaces:
LeftOperandHandler
@Component public class TransientDataLeftOperandHandler extends java.lang.Object implements LeftOperandHandler
- Author:
- Baptiste Mesta, Matthieu Chaffotte
-
-
Constructor Summary
Constructors Constructor Description TransientDataLeftOperandHandler(TransientDataService transientDataService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(SLeftOperand leftOperand, long containerId, java.lang.String containerType)java.lang.StringgetType()voidloadLeftOperandInContext(java.util.List<SLeftOperand> sLeftOperand, long leftOperandContainerId, java.lang.String leftOperandContainerType, SExpressionContext expressionContext)voidloadLeftOperandInContext(SLeftOperand sLeftOperand, long leftOperandContainerId, java.lang.String leftOperandContainerType, SExpressionContext expressionContext)retrieve the left operand and put it in context as needed by the left operandjava.lang.Objectupdate(SLeftOperand sLeftOperand, java.util.Map<java.lang.String,java.lang.Object> inputValues, java.lang.Object newValue, long containerId, java.lang.String containerType)
-
-
-
Constructor Detail
-
TransientDataLeftOperandHandler
public TransientDataLeftOperandHandler(TransientDataService transientDataService)
-
-
Method Detail
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceLeftOperandHandler
-
update
public java.lang.Object update(SLeftOperand sLeftOperand, java.util.Map<java.lang.String,java.lang.Object> inputValues, java.lang.Object newValue, long containerId, java.lang.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
-
delete
public void delete(SLeftOperand leftOperand, long containerId, java.lang.String containerType) throws SOperationExecutionException
- Specified by:
deletein interfaceLeftOperandHandler- Throws:
SOperationExecutionException
-
loadLeftOperandInContext
public void loadLeftOperandInContext(SLeftOperand sLeftOperand, long leftOperandContainerId, java.lang.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(java.util.List<SLeftOperand> sLeftOperand, long leftOperandContainerId, java.lang.String leftOperandContainerType, SExpressionContext expressionContext) throws SBonitaReadException
- Specified by:
loadLeftOperandInContextin interfaceLeftOperandHandler- Throws:
SBonitaReadException
-
-