Class ActionDefinitionEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
com.flowable.action.engine.impl.persistence.entity.AbstractActionEngineEntity
com.flowable.action.engine.impl.persistence.entity.ActionDefinitionEntityImpl
- All Implemented Interfaces:
ActionDefinition
,ActionDefinitionEntity
,HasRevision
,Entity
public class ActionDefinitionEntityImpl
extends AbstractActionEngineEntity
implements ActionDefinitionEntity
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ActionDefinitionLink>
protected boolean
protected String
protected Date
protected String
protected String
protected String
protected boolean
protected List<IdentityLinkEntity>
The identity links for the action definition.protected boolean
protected String
protected boolean
protected String
protected String
protected String
protected String
protected String
protected Date
protected int
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the action definition links that are linked to the action definition.Returns the id of the assigned group of this object.Returns the id of the assignee of this object.Returns the key of the bot this action is implemented.Returns a set view of the optional list of candidate group ids of this object.Returns a set view of the optional list of candidate user ids of this object.Returns the creation timestamp of this data object.Returns the id of the user creating this data object.If this action has an attached form definition, this method returns the form key of it with which the form definition might be requested through Form Engine.getKey()
getName()
Returns the name of this action which is also used as the slash action name (e.g.Returns the id of the owner of this object, most likely representing the user actually creating it or being created as part of an operation that user executed.Getter used by MyBatis when querying action definitions with action definition links.Getter used by MyBatis when querying action definitions with identity links.Returns the type of scope if this action definition is bound to a certain type of scoped objects (e.g.Returns the optional id of the user having last modified this data object, if any,null
otherwise.Returns the timestamp of the last update of this data object, in most cases where events are immutable, this timestamp is the same as the creation timestamp, but must never benull
.int
boolean
isGlobal()
Whether the action definition is globalboolean
Returnstrue
if this is a mandatory action definition, which means it has to be executed (as an action) at some point (most likely it is then backed by a user task or anything which needs to be completed somehow).void
setActionDefinitionLinks
(List<ActionDefinitionLink> actionDefinitionLinks) void
void
setCreationTime
(Date creationTime) void
setCreatorId
(String creatorId) void
setDeploymentId
(String deploymentId) void
setFormKey
(String formKey) void
setGlobal
(boolean global) void
setIdentityLinks
(List<IdentityLinkEntity> identityLinks) void
void
setMandatory
(boolean mandatory) void
void
setQueryActionDefinitionLinks
(List<ActionDefinitionLink> actionDefinitionLinks) Setter used by MyBatis when querying action definitions with action definition links.void
setQueryIdentityLinks
(List<IdentityLinkEntity> identityLinks) Setter used by MyBatis when querying action definitions with identity links.void
setResourceName
(String resourceName) void
setScopeType
(String scopeType) void
setTenantId
(String tenantId) void
setUpdaterId
(String updaterId) void
setUpdateTime
(Date updateTime) void
setVersion
(int version) Methods inherited from class com.flowable.action.engine.impl.persistence.entity.AbstractActionEngineEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.action.api.repository.ActionDefinition
getId
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Field Details
-
key
-
version
protected int version -
deploymentId
-
tenantId
-
botKey
-
mandatory
protected boolean mandatory -
name
-
resourceName
-
scopeType
-
formKey
-
global
protected boolean global -
creationTime
-
updateTime
-
creatorId
-
updaterId
-
identityLinksInitialized
protected boolean identityLinksInitialized -
actionDefinitionLinksInitialized
protected boolean actionDefinitionLinksInitialized -
identityLinks
The identity links for the action definition. Make sure that it is not set otherwise MyBatis won't invoke the setter. -
actionDefinitionLinks
-
-
Constructor Details
-
ActionDefinitionEntityImpl
public ActionDefinitionEntityImpl()
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfaceActionDefinition
-
setKey
- Specified by:
setKey
in interfaceActionDefinitionEntity
-
getVersion
public int getVersion()- Specified by:
getVersion
in interfaceActionDefinition
-
setVersion
public void setVersion(int version) - Specified by:
setVersion
in interfaceActionDefinitionEntity
-
getDeploymentId
- Specified by:
getDeploymentId
in interfaceActionDefinition
-
setDeploymentId
- Specified by:
setDeploymentId
in interfaceActionDefinitionEntity
-
getTenantId
- Specified by:
getTenantId
in interfaceActionDefinition
-
setTenantId
- Specified by:
setTenantId
in interfaceActionDefinitionEntity
-
getBotKey
Description copied from interface:ActionDefinition
Returns the key of the bot this action is implemented. When receiving an action, the bot will be looked up and send the action there for processing.- Specified by:
getBotKey
in interfaceActionDefinition
- Returns:
- the key of the bot to send the action to for processing
-
setBotKey
- Specified by:
setBotKey
in interfaceActionDefinitionEntity
-
isMandatory
public boolean isMandatory()Description copied from interface:ActionDefinition
Returnstrue
if this is a mandatory action definition, which means it has to be executed (as an action) at some point (most likely it is then backed by a user task or anything which needs to be completed somehow). This is an optional flag and defaults tofalse
if not provided explicitly.- Specified by:
isMandatory
in interfaceActionDefinition
- Returns:
true
if this action definition is mandatory
-
setMandatory
public void setMandatory(boolean mandatory) - Specified by:
setMandatory
in interfaceActionDefinitionEntity
-
getName
Description copied from interface:ActionDefinition
Returns the name of this action which is also used as the slash action name (e.g. name 'foo' would be exposed within a conversation with '/foo' to execute it).- Specified by:
getName
in interfaceActionDefinition
- Returns:
- the name of the action
-
setName
- Specified by:
setName
in interfaceActionDefinitionEntity
-
getResourceName
- Specified by:
getResourceName
in interfaceActionDefinition
-
setResourceName
- Specified by:
setResourceName
in interfaceActionDefinitionEntity
-
getScopeType
Description copied from interface:ActionDefinition
Returns the type of scope if this action definition is bound to a certain type of scoped objects (e.g. conversation, user, etc).- Specified by:
getScopeType
in interfaceActionDefinition
- Returns:
- the type of scoped objects this action definition is bound to
-
setScopeType
- Specified by:
setScopeType
in interfaceActionDefinitionEntity
-
getFormKey
Description copied from interface:ActionDefinition
If this action has an attached form definition, this method returns the form key of it with which the form definition might be requested through Form Engine.- Specified by:
getFormKey
in interfaceActionDefinition
- Returns:
- the key of the form to be used to render this action definition and get input to create an action object
-
setFormKey
- Specified by:
setFormKey
in interfaceActionDefinitionEntity
-
isGlobal
public boolean isGlobal()Description copied from interface:ActionDefinition
Whether the action definition is global- Specified by:
isGlobal
in interfaceActionDefinition
- Returns:
true
if the AD is global,false
otherwise
-
setGlobal
public void setGlobal(boolean global) - Specified by:
setGlobal
in interfaceActionDefinitionEntity
-
getCreationTime
Description copied from interface:ActionDefinition
Returns the creation timestamp of this data object.- Specified by:
getCreationTime
in interfaceActionDefinition
- Returns:
- the creation timestamp
-
setCreationTime
- Specified by:
setCreationTime
in interfaceActionDefinitionEntity
-
getUpdateTime
Description copied from interface:ActionDefinition
Returns the timestamp of the last update of this data object, in most cases where events are immutable, this timestamp is the same as the creation timestamp, but must never benull
.- Specified by:
getUpdateTime
in interfaceActionDefinition
- Returns:
- the timestamp of the last update / modification of this data object
-
setUpdateTime
- Specified by:
setUpdateTime
in interfaceActionDefinitionEntity
-
getCreatorId
Description copied from interface:ActionDefinition
Returns the id of the user creating this data object.- Specified by:
getCreatorId
in interfaceActionDefinition
- Returns:
- the id of the creation user
-
setCreatorId
- Specified by:
setCreatorId
in interfaceActionDefinitionEntity
-
getUpdaterId
Description copied from interface:ActionDefinition
Returns the optional id of the user having last modified this data object, if any,null
otherwise.- Specified by:
getUpdaterId
in interfaceActionDefinition
- Returns:
- the optional id of the user having last updated this data object
-
setUpdaterId
- Specified by:
setUpdaterId
in interfaceActionDefinitionEntity
-
getOwnerId
Description copied from interface:ActionDefinition
Returns the id of the owner of this object, most likely representing the user actually creating it or being created as part of an operation that user executed.- Specified by:
getOwnerId
in interfaceActionDefinition
- Returns:
- the id of the user being the owner of this object
-
getAssigneeId
Description copied from interface:ActionDefinition
Returns the id of the assignee of this object. What the assignee actually represents is up to the objects use cases and implementation.- Specified by:
getAssigneeId
in interfaceActionDefinition
- Returns:
- the optional id of the user being the assignee of the object
-
getAssignedGroupId
Description copied from interface:ActionDefinition
Returns the id of the assigned group of this object. What the assigned group actually represents is up to the objects use cases and implementation.- Specified by:
getAssignedGroupId
in interfaceActionDefinition
- Returns:
- the id of the optional assigned group
-
getCandidateUserIds
Description copied from interface:ActionDefinition
Returns a set view of the optional list of candidate user ids of this object. In most cases, this is used to allow access to the object for a selected list of users.- Specified by:
getCandidateUserIds
in interfaceActionDefinition
- Returns:
- the optional list of candidate user ids attached to this object
-
getCandidateGroupIds
Description copied from interface:ActionDefinition
Returns a set view of the optional list of candidate group ids of this object. Like with the list of candidate users, all users being at least a member of one of the candidate groups will also have access to this object.- Specified by:
getCandidateGroupIds
in interfaceActionDefinition
- Returns:
- the optional list of candidate group ids attached to this object
-
getIdentityLinks
- Specified by:
getIdentityLinks
in interfaceActionDefinitionEntity
-
setIdentityLinks
- Specified by:
setIdentityLinks
in interfaceActionDefinitionEntity
-
getQueryIdentityLinks
Getter used by MyBatis when querying action definitions with identity links. -
setQueryIdentityLinks
Setter used by MyBatis when querying action definitions with identity links. -
getActionDefinitionLinks
Description copied from interface:ActionDefinition
Returns the action definition links that are linked to the action definition.- Specified by:
getActionDefinitionLinks
in interfaceActionDefinition
- Returns:
- the optional list of action definition links
-
setActionDefinitionLinks
- Specified by:
setActionDefinitionLinks
in interfaceActionDefinitionEntity
-
getQueryActionDefinitionLinks
Getter used by MyBatis when querying action definitions with action definition links. -
setQueryActionDefinitionLinks
Setter used by MyBatis when querying action definitions with action definition links. -
getPersistentState
- Specified by:
getPersistentState
in interfaceEntity
-