Package org.camunda.bpm.engine.impl.cmd
Class AbstractAddIdentityLinkCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.AbstractSetTaskPropertyCmd<Integer>
org.camunda.bpm.engine.impl.cmd.AbstractAddIdentityLinkCmd
- All Implemented Interfaces:
- Serializable,- Command<Void>
- Direct Known Subclasses:
- AddGroupIdentityLinkCmd,- AddUserIdentityLinkCmd,- AssignTaskCmd,- SetTaskOwnerCmd
Abstract class that modifies 
AbstractSetTaskPropertyCmd to customize validation & logging for
 Add Identity Link related Commands.- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final StringFields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetTaskPropertyCmdtaskId, value
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractAddIdentityLinkCmd(String taskId, String userId, String groupId, String type) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidexecuteSetOperation(TaskEntity task, Integer value) Executes the set operation of the concrete command.protected StringReturns the User Operation Log name that corresponds to this command.protected booleanhasNullIdentity(String userId, String groupId) protected booleanisAssignee(String type) protected booleanprotected abstract voidlogOperation(CommandContext context, TaskEntity task) Method to be overridden by concrete identity commands that wish to log an operation.protected voidvalidateParameters(String type, String userId, String groupId) Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetTaskPropertyCmdcheckTaskAgainstContext, ensureNotNullAndGet, execute, validateAndGet
- 
Field Details- 
userId
- 
groupId
- 
type
 
- 
- 
Constructor Details- 
AbstractAddIdentityLinkCmd
 
- 
- 
Method Details- 
executeSetOperationDescription copied from class:AbstractSetTaskPropertyCmdExecutes the set operation of the concrete command.- Specified by:
- executeSetOperationin class- AbstractSetTaskPropertyCmd<Integer>
- Parameters:
- task- the task entity on which to set a property
- value- the value to se
 
- 
logOperationMethod to be overridden by concrete identity commands that wish to log an operation.- Overrides:
- logOperationin class- AbstractSetTaskPropertyCmd<Integer>
- Parameters:
- context- the command context
- task- the task related entity
 
- 
getUserOperationLogNameDescription copied from class:AbstractSetTaskPropertyCmdReturns the User Operation Log name that corresponds to this command. Meant to be implemented by concretions.- Specified by:
- getUserOperationLogNamein class- AbstractSetTaskPropertyCmd<Integer>
- Returns:
- the user operation log name
 
- 
validateParameters
- 
hasNullIdentity
- 
isAssignee
- 
isOwner
 
-