Class UpdateServiceRegistryDataObjectInstanceCmd
java.lang.Object
com.flowable.dataobject.engine.impl.cmd.AbstractNeedsDataObjectDefinitionCmd
com.flowable.dataobject.engine.impl.cmd.UpdateServiceRegistryDataObjectInstanceCmd
- All Implemented Interfaces:
Command<DataObjectInstanceVariableContainer>
public class UpdateServiceRegistryDataObjectInstanceCmd
extends AbstractNeedsDataObjectDefinitionCmd
implements Command<DataObjectInstanceVariableContainer>
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DataObjectModificationBuilderImpl
protected static final org.slf4j.Logger
-
Constructor Summary
ConstructorDescriptionUpdateServiceRegistryDataObjectInstanceCmd
(DataObjectModificationBuilderImpl dataModificationBuilder) -
Method Summary
Modifier and TypeMethodDescriptionexecute
(CommandContext commandContext) protected DataObjectInstanceVariableContainer
executeDefaultUpdate
(CommandContext commandContext, DataObjectDefinition dataObjectDefinition) protected DataObjectInstanceVariableContainer
executeOperationUpdate
(CommandContext commandContext, DataObjectDefinition dataObjectDefinition, String operation) protected DataObjectInstanceVariableContainer
findDataObjectInstanceForDefaultUpdate
(DataObjectInstanceVariableContainerEntitySession session, String definitionId) protected ServiceRegistryDataObjectModel
getObjectModelByDefinitionId
(String definitionId, CommandContext commandContext) boolean
hasEntityChanged
(DataObjectInstanceVariableContainerImpl entity, Object originalPersistentState) protected void
validateUpdateAccessToOperation
(CommandContext commandContext, DataObjectDefinition dataObjectDefinition, String accessibleByUser, Collection<String> accessibleByGroups) Methods inherited from class com.flowable.dataobject.engine.impl.cmd.AbstractNeedsDataObjectDefinitionCmd
resolveDataObjectDefinition, validateAccessToOperation
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
dataModificationBuilder
-
-
Constructor Details
-
UpdateServiceRegistryDataObjectInstanceCmd
public UpdateServiceRegistryDataObjectInstanceCmd(DataObjectModificationBuilderImpl dataModificationBuilder)
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceCommand<DataObjectInstanceVariableContainer>
-
executeDefaultUpdate
protected DataObjectInstanceVariableContainer executeDefaultUpdate(CommandContext commandContext, DataObjectDefinition dataObjectDefinition) -
findDataObjectInstanceForDefaultUpdate
protected DataObjectInstanceVariableContainer findDataObjectInstanceForDefaultUpdate(DataObjectInstanceVariableContainerEntitySession session, String definitionId) -
executeOperationUpdate
protected DataObjectInstanceVariableContainer executeOperationUpdate(CommandContext commandContext, DataObjectDefinition dataObjectDefinition, String operation) -
hasEntityChanged
public boolean hasEntityChanged(DataObjectInstanceVariableContainerImpl entity, Object originalPersistentState) -
validateUpdateAccessToOperation
protected void validateUpdateAccessToOperation(CommandContext commandContext, DataObjectDefinition dataObjectDefinition, String accessibleByUser, Collection<String> accessibleByGroups) -
getObjectModelByDefinitionId
protected ServiceRegistryDataObjectModel getObjectModelByDefinitionId(String definitionId, CommandContext commandContext) - Overrides:
getObjectModelByDefinitionId
in classAbstractNeedsDataObjectDefinitionCmd
-