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 Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final StringFields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetTaskPropertyCmd
taskId, value -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAddIdentityLinkCmd(String taskId, String userId, String groupId, String type) -
Method Summary
Modifier 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.AbstractSetTaskPropertyCmd
checkTaskAgainstContext, ensureNotNullAndGet, execute, validateAndGet
-
Field Details
-
userId
-
groupId
-
type
-
-
Constructor Details
-
AbstractAddIdentityLinkCmd
-
-
Method Details
-
executeSetOperation
Description copied from class:AbstractSetTaskPropertyCmdExecutes the set operation of the concrete command.- Specified by:
executeSetOperationin classAbstractSetTaskPropertyCmd<Integer>- Parameters:
task- the task entity on which to set a propertyvalue- the value to se
-
logOperation
Method to be overridden by concrete identity commands that wish to log an operation.- Overrides:
logOperationin classAbstractSetTaskPropertyCmd<Integer>- Parameters:
context- the command contexttask- the task related entity
-
getUserOperationLogName
Description copied from class:AbstractSetTaskPropertyCmdReturns the User Operation Log name that corresponds to this command. Meant to be implemented by concretions.- Specified by:
getUserOperationLogNamein classAbstractSetTaskPropertyCmd<Integer>- Returns:
- the user operation log name
-
validateParameters
-
hasNullIdentity
-
isAssignee
-
isOwner
-