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
Modifier and TypeFieldDescriptionprotected final String
protected final String
protected final String
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetTaskPropertyCmd
taskId, value
-
Constructor Summary
ConstructorDescriptionAbstractAddIdentityLinkCmd
(String taskId, String userId, String groupId, String type) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
executeSetOperation
(TaskEntity task, Integer value) Executes the set operation of the concrete command.protected String
Returns the User Operation Log name that corresponds to this command.protected boolean
hasNullIdentity
(String userId, String groupId) protected boolean
isAssignee
(String type) protected boolean
protected abstract void
logOperation
(CommandContext context, TaskEntity task) Method to be overridden by concrete identity commands that wish to log an operation.protected void
validateParameters
(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:AbstractSetTaskPropertyCmd
Executes the set operation of the concrete command.- Specified by:
executeSetOperation
in 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:
logOperation
in classAbstractSetTaskPropertyCmd<Integer>
- Parameters:
context
- the command contexttask
- the task related entity
-
getUserOperationLogName
Description copied from class:AbstractSetTaskPropertyCmd
Returns the User Operation Log name that corresponds to this command. Meant to be implemented by concretions.- Specified by:
getUserOperationLogName
in classAbstractSetTaskPropertyCmd<Integer>
- Returns:
- the user operation log name
-
validateParameters
-
hasNullIdentity
-
isAssignee
-
isOwner
-