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
public abstract class AbstractAddIdentityLinkCmd extends AbstractSetTaskPropertyCmd<Integer>
Abstract class that modifiesAbstractSetTaskPropertyCmdto customize validation & logging for Add Identity Link related Commands.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractAddIdentityLinkCmd(String taskId, String userId, String groupId, String type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidexecuteSetOperation(TaskEntity task, Integer value)Executes the set operation of the concrete command.protected StringgetUserOperationLogName()Returns the User Operation Log name that corresponds to this command.protected booleanhasNullIdentity(String userId, String groupId)protected booleanisAssignee(String type)protected booleanisOwner(String type)protected 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Method Detail
-
executeSetOperation
protected void executeSetOperation(TaskEntity task, Integer value)
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
protected abstract void logOperation(CommandContext context, TaskEntity task)
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
protected String 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
-
isAssignee
protected boolean isAssignee(String type)
-
isOwner
protected boolean isOwner(String type)
-
-