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
Fields Modifier and Type Field Description protected List<ActionDefinitionLink>actionDefinitionLinksprotected booleanactionDefinitionLinksInitializedprotected StringbotKeyprotected DatecreationTimeprotected StringcreatorIdprotected StringdeploymentIdprotected StringformKeyprotected booleanglobalprotected List<IdentityLinkEntity>identityLinksThe identity links for the action definition.protected booleanidentityLinksInitializedprotected Stringkeyprotected booleanmandatoryprotected Stringnameprotected StringresourceNameprotected StringscopeTypeprotected StringtenantIdprotected StringupdaterIdprotected DateupdateTimeprotected intversion-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
-
Constructor Summary
Constructors Constructor Description ActionDefinitionEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ActionDefinitionLink>getActionDefinitionLinks()Returns the action definition links that are linked to the action definition.StringgetAssignedGroupId()Returns the id of the assigned group of this object.StringgetAssigneeId()Returns the id of the assignee of this object.StringgetBotKey()Returns the key of the bot this action is implemented.Set<String>getCandidateGroupIds()Returns a set view of the optional list of candidate group ids of this object.Set<String>getCandidateUserIds()Returns a set view of the optional list of candidate user ids of this object.DategetCreationTime()Returns the creation timestamp of this data object.StringgetCreatorId()Returns the id of the user creating this data object.StringgetDeploymentId()StringgetFormKey()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.List<IdentityLinkEntity>getIdentityLinks()StringgetKey()StringgetName()Returns the name of this action which is also used as the slash action name (e.g.StringgetOwnerId()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.ObjectgetPersistentState()List<ActionDefinitionLink>getQueryActionDefinitionLinks()Getter used by MyBatis when querying action definitions with action definition links.List<IdentityLinkEntity>getQueryIdentityLinks()Getter used by MyBatis when querying action definitions with identity links.StringgetResourceName()StringgetScopeType()Returns the type of scope if this action definition is bound to a certain type of scoped objects (e.g.StringgetTenantId()StringgetUpdaterId()Returns the optional id of the user having last modified this data object, if any,nullotherwise.DategetUpdateTime()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.intgetVersion()booleanisGlobal()Whether the action definition is globalbooleanisMandatory()Returnstrueif 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).voidsetActionDefinitionLinks(List<ActionDefinitionLink> actionDefinitionLinks)voidsetBotKey(String botKey)voidsetCreationTime(Date creationTime)voidsetCreatorId(String creatorId)voidsetDeploymentId(String deploymentId)voidsetFormKey(String formKey)voidsetGlobal(boolean global)voidsetIdentityLinks(List<IdentityLinkEntity> identityLinks)voidsetKey(String key)voidsetMandatory(boolean mandatory)voidsetName(String name)voidsetQueryActionDefinitionLinks(List<ActionDefinitionLink> actionDefinitionLinks)Setter used by MyBatis when querying action definitions with action definition links.voidsetQueryIdentityLinks(List<IdentityLinkEntity> identityLinks)Setter used by MyBatis when querying action definitions with identity links.voidsetResourceName(String resourceName)voidsetScopeType(String scopeType)voidsetTenantId(String tenantId)voidsetUpdaterId(String updaterId)voidsetUpdateTime(Date updateTime)voidsetVersion(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 Detail
-
key
protected String key
-
version
protected int version
-
deploymentId
protected String deploymentId
-
tenantId
protected String tenantId
-
botKey
protected String botKey
-
mandatory
protected boolean mandatory
-
name
protected String name
-
resourceName
protected String resourceName
-
scopeType
protected String scopeType
-
formKey
protected String formKey
-
global
protected boolean global
-
creationTime
protected Date creationTime
-
updateTime
protected Date updateTime
-
creatorId
protected String creatorId
-
updaterId
protected String updaterId
-
identityLinksInitialized
protected boolean identityLinksInitialized
-
actionDefinitionLinksInitialized
protected boolean actionDefinitionLinksInitialized
-
identityLinks
protected List<IdentityLinkEntity> identityLinks
The identity links for the action definition. Make sure that it is not set otherwise MyBatis won't invoke the setter.
-
actionDefinitionLinks
protected List<ActionDefinitionLink> actionDefinitionLinks
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceActionDefinition
-
setKey
public void setKey(String key)
- Specified by:
setKeyin interfaceActionDefinitionEntity
-
getVersion
public int getVersion()
- Specified by:
getVersionin interfaceActionDefinition
-
setVersion
public void setVersion(int version)
- Specified by:
setVersionin interfaceActionDefinitionEntity
-
getDeploymentId
public String getDeploymentId()
- Specified by:
getDeploymentIdin interfaceActionDefinition
-
setDeploymentId
public void setDeploymentId(String deploymentId)
- Specified by:
setDeploymentIdin interfaceActionDefinitionEntity
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceActionDefinition
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantIdin interfaceActionDefinitionEntity
-
getBotKey
public String getBotKey()
Description copied from interface:ActionDefinitionReturns 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:
getBotKeyin interfaceActionDefinition- Returns:
- the key of the bot to send the action to for processing
-
setBotKey
public void setBotKey(String botKey)
- Specified by:
setBotKeyin interfaceActionDefinitionEntity
-
isMandatory
public boolean isMandatory()
Description copied from interface:ActionDefinitionReturnstrueif 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 tofalseif not provided explicitly.- Specified by:
isMandatoryin interfaceActionDefinition- Returns:
trueif this action definition is mandatory
-
setMandatory
public void setMandatory(boolean mandatory)
- Specified by:
setMandatoryin interfaceActionDefinitionEntity
-
getName
public String getName()
Description copied from interface:ActionDefinitionReturns 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:
getNamein interfaceActionDefinition- Returns:
- the name of the action
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceActionDefinitionEntity
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceActionDefinition
-
setResourceName
public void setResourceName(String resourceName)
- Specified by:
setResourceNamein interfaceActionDefinitionEntity
-
getScopeType
public String getScopeType()
Description copied from interface:ActionDefinitionReturns the type of scope if this action definition is bound to a certain type of scoped objects (e.g. conversation, user, etc).- Specified by:
getScopeTypein interfaceActionDefinition- Returns:
- the type of scoped objects this action definition is bound to
-
setScopeType
public void setScopeType(String scopeType)
- Specified by:
setScopeTypein interfaceActionDefinitionEntity
-
getFormKey
public String getFormKey()
Description copied from interface:ActionDefinitionIf 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:
getFormKeyin interfaceActionDefinition- Returns:
- the key of the form to be used to render this action definition and get input to create an action object
-
setFormKey
public void setFormKey(String formKey)
- Specified by:
setFormKeyin interfaceActionDefinitionEntity
-
isGlobal
public boolean isGlobal()
Description copied from interface:ActionDefinitionWhether the action definition is global- Specified by:
isGlobalin interfaceActionDefinition- Returns:
trueif the AD is global,falseotherwise
-
setGlobal
public void setGlobal(boolean global)
- Specified by:
setGlobalin interfaceActionDefinitionEntity
-
getCreationTime
public Date getCreationTime()
Description copied from interface:ActionDefinitionReturns the creation timestamp of this data object.- Specified by:
getCreationTimein interfaceActionDefinition- Returns:
- the creation timestamp
-
setCreationTime
public void setCreationTime(Date creationTime)
- Specified by:
setCreationTimein interfaceActionDefinitionEntity
-
getUpdateTime
public Date getUpdateTime()
Description copied from interface:ActionDefinitionReturns 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:
getUpdateTimein interfaceActionDefinition- Returns:
- the timestamp of the last update / modification of this data object
-
setUpdateTime
public void setUpdateTime(Date updateTime)
- Specified by:
setUpdateTimein interfaceActionDefinitionEntity
-
getCreatorId
public String getCreatorId()
Description copied from interface:ActionDefinitionReturns the id of the user creating this data object.- Specified by:
getCreatorIdin interfaceActionDefinition- Returns:
- the id of the creation user
-
setCreatorId
public void setCreatorId(String creatorId)
- Specified by:
setCreatorIdin interfaceActionDefinitionEntity
-
getUpdaterId
public String getUpdaterId()
Description copied from interface:ActionDefinitionReturns the optional id of the user having last modified this data object, if any,nullotherwise.- Specified by:
getUpdaterIdin interfaceActionDefinition- Returns:
- the optional id of the user having last updated this data object
-
setUpdaterId
public void setUpdaterId(String updaterId)
- Specified by:
setUpdaterIdin interfaceActionDefinitionEntity
-
getOwnerId
public String getOwnerId()
Description copied from interface:ActionDefinitionReturns 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:
getOwnerIdin interfaceActionDefinition- Returns:
- the id of the user being the owner of this object
-
getAssigneeId
public String getAssigneeId()
Description copied from interface:ActionDefinitionReturns the id of the assignee of this object. What the assignee actually represents is up to the objects use cases and implementation.- Specified by:
getAssigneeIdin interfaceActionDefinition- Returns:
- the optional id of the user being the assignee of the object
-
getAssignedGroupId
public String getAssignedGroupId()
Description copied from interface:ActionDefinitionReturns 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:
getAssignedGroupIdin interfaceActionDefinition- Returns:
- the id of the optional assigned group
-
getCandidateUserIds
public Set<String> getCandidateUserIds()
Description copied from interface:ActionDefinitionReturns 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:
getCandidateUserIdsin interfaceActionDefinition- Returns:
- the optional list of candidate user ids attached to this object
-
getCandidateGroupIds
public Set<String> getCandidateGroupIds()
Description copied from interface:ActionDefinitionReturns 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:
getCandidateGroupIdsin interfaceActionDefinition- Returns:
- the optional list of candidate group ids attached to this object
-
getIdentityLinks
public List<IdentityLinkEntity> getIdentityLinks()
- Specified by:
getIdentityLinksin interfaceActionDefinitionEntity
-
setIdentityLinks
public void setIdentityLinks(List<IdentityLinkEntity> identityLinks)
- Specified by:
setIdentityLinksin interfaceActionDefinitionEntity
-
getQueryIdentityLinks
public List<IdentityLinkEntity> getQueryIdentityLinks()
Getter used by MyBatis when querying action definitions with identity links.
-
setQueryIdentityLinks
public void setQueryIdentityLinks(List<IdentityLinkEntity> identityLinks)
Setter used by MyBatis when querying action definitions with identity links.
-
getActionDefinitionLinks
public List<ActionDefinitionLink> getActionDefinitionLinks()
Description copied from interface:ActionDefinitionReturns the action definition links that are linked to the action definition.- Specified by:
getActionDefinitionLinksin interfaceActionDefinition- Returns:
- the optional list of action definition links
-
setActionDefinitionLinks
public void setActionDefinitionLinks(List<ActionDefinitionLink> actionDefinitionLinks)
- Specified by:
setActionDefinitionLinksin interfaceActionDefinitionEntity
-
getQueryActionDefinitionLinks
public List<ActionDefinitionLink> getQueryActionDefinitionLinks()
Getter used by MyBatis when querying action definitions with action definition links.
-
setQueryActionDefinitionLinks
public void setQueryActionDefinitionLinks(List<ActionDefinitionLink> actionDefinitionLinks)
Setter used by MyBatis when querying action definitions with action definition links.
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentStatein interfaceEntity
-
-