Class WorkflowState
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.WorkflowState
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, IDescriptionProviding, ILockingVersionProviding, INameProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, IUuidProviding, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class WorkflowState
extends AbstractLockableEntity
implements IUUIDEntity, IUuidProviding, INameProviding, IDescriptionProviding
Describes the state of a
Vorgang. A form record can only have one state at a time, such as archived
or in_progress. This is the closest analog of the Status from the old workflow. The state can be
used, for example, to restrict which users or user groups can access the form, or which form elements should be
available.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for thegetAccessUserGroups()field.static final StringJPA attribute name for theisAllowAccessToApplicant()field.static final StringJPA attribute name for theisAllowAccessToAnonymousApplicant()field.static final StringJPA attribute name for thegetAuthenticatorConfigs()field.static final StringJPA attribute name for thegetEndUserState()field.static final StringJPA attribute name for theisExternalAccessPermitted()field.static final StringJPA attribute name for theisFormRecordDeletable()field.static final StringJPA attribute name for thegetOrderIndex()field.static final StringJPA attribute name for thegetType()field.static final StringDeprecated.static final StringJPA attribute name for thegetVersion()field.static final StringDatabase column name for theisAllowAccessAllParticipants()field.static final StringDatabase column name for theisAllowAccessToAnonymousApplicant()field.static final StringDatabase column name for theisAllowAccessToApplicant()field.static final StringDatabase column name for theisUseSystemAuthentication()field.static final StringDatabase column name for theisFormRecordDeletable()field.static final StringDatabase column name for thegetName()field.static final StringDatabase column name for thegetOrderIndex()field.static final StringDatabase column name for thegetType()field.static final StringDeprecated.UseCOL_EXTERNAL_ACCESS_PERMITTEDinsteadstatic final StringDatabase column name for thegetVersion()field.Fields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTIONFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface INameProviding
ATTR_NAMEFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthenticatorConfig(WorkflowStateAuthenticatorConfig authenticatorConfig) voidDeprecated.getDescription(Locale locale) Deprecated.usegetDescription()getId()getName()Deprecated.usegetName()intgetType()getUuid()getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanbooleanbooleanbooleanbooleanbooleanDeprecated.UseisExternalAccessPermitted()insteadvoidsetAccessUserGroups(List<BenutzerGruppe> userGroups) voidsetAllowAccessAllParticipants(boolean allowAccessAllParticipants) voidsetAllowAccessToAnonymousApplicant(boolean allowAccessToAnonymousApplicant) voidsetAllowAccessToApplicant(boolean allowAccessToApplicant) voidsetAuthenticatorConfigs(List<WorkflowStateAuthenticatorConfig> authenticatorConfigs) voidsetDescription(String description) voidsetEndUserState(EndUserState endUserState) voidsetExternalAccessPermitted(boolean externalAccessPermitted) voidsetFormRecordDeletable(boolean formRecordDeletable) voidvoidsetOrderIndex(int orderIndex) voidsetType(EWorkflowStateType type) voidsetUseSystemAuthentication(boolean useSystemAuthentication) Deprecated.UsesetExternalAccessPermitted(boolean)insteadvoidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) voidsetVersion(WorkflowVersion version) toString()Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersionMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Field Details
-
ATTR_EXTERNAL_ACCESS_PERMITTED
JPA attribute name for theisExternalAccessPermitted()field.- See Also:
-
ATTR_ALLOW_ACCESS_APPLICANT
JPA attribute name for theisAllowAccessToApplicant()field.- See Also:
-
ATTR_ALLOW_ACCESS_TO_ANONYMOUS_APPLICANT
JPA attribute name for theisAllowAccessToAnonymousApplicant()field.- See Also:
-
ATTR_AUTHENTICATOR_CONFIGS
JPA attribute name for thegetAuthenticatorConfigs()field.- See Also:
-
ATTR_ACCESS_USER_GROUPS
JPA attribute name for thegetAccessUserGroups()field.- See Also:
-
ATTR_FORM_RECORD_DELETABLE
JPA attribute name for theisFormRecordDeletable()field.- See Also:
-
ATTR_ORDER_INDEX
JPA attribute name for thegetOrderIndex()field.- See Also:
-
ATTR_TYPE
-
ATTR_VERSION
-
ATTR_END_USER_STATE
JPA attribute name for thegetEndUserState()field.- See Also:
-
ATTR_USE_SYSTEM_AUTHENTICATION
Deprecated.UseATTR_EXTERNAL_ACCESS_PERMITTEDinstead- See Also:
-
COL_EXTERNAL_ACCESS_PERMITTED
Database column name for theisUseSystemAuthentication()field.- See Also:
-
COL_ALLOW_ACCESS_TO_APPLICANT
Database column name for theisAllowAccessToApplicant()field.- See Also:
-
COL_ALLOW_ACCESS_ALL_PARTICIPANTS
Database column name for theisAllowAccessAllParticipants()field.- See Also:
-
COL_ALLOW_ACCESS_TO_ANONYMOUS_APPLICANT
Database column name for theisAllowAccessToAnonymousApplicant()field.- See Also:
-
COL_FORM_RECORD_DELETABLE
Database column name for theisFormRecordDeletable()field.- See Also:
-
COL_NAME
-
COL_ORDER_INDEX
Database column name for thegetOrderIndex()field.- See Also:
-
COL_TYPE
-
COL_VERSION
-
COL_USE_SYSTEM_AUTHENTICATION
Deprecated.UseCOL_EXTERNAL_ACCESS_PERMITTEDinstead- See Also:
-
-
Constructor Details
-
WorkflowState
public WorkflowState()
-
-
Method Details
-
cloneBasics
- Returns:
- A new state instance with all fields that do not reference other entities copied from this instance.
-
isExternalAccessPermitted
public boolean isExternalAccessPermitted()- Returns:
- Whether it is allowed to access form records in this state. If
truethengetAuthenticatorConfigs()determines the available authentication methods
-
setExternalAccessPermitted
public void setExternalAccessPermitted(boolean externalAccessPermitted) - Parameters:
externalAccessPermitted- Whether or not it is allowed to access form records in this state
-
isAllowAccessAllParticipants
public boolean isAllowAccessAllParticipants()- Returns:
- Whether all participants of a form record in this state are allowed to access the form record.
-
setAllowAccessAllParticipants
public void setAllowAccessAllParticipants(boolean allowAccessAllParticipants) - Parameters:
allowAccessAllParticipants- Whether all participants of a form record in this state are allowed to access the form record.
-
isAllowAccessToApplicant
public boolean isAllowAccessToApplicant()- Returns:
- Whether or not the applicant is allowed to access a form record in this state.
-
setAllowAccessToApplicant
public void setAllowAccessToApplicant(boolean allowAccessToApplicant) - Parameters:
allowAccessToApplicant- Whether or not the applicant is allowed to access a form record in this state.
-
isAllowAccessToAnonymousApplicant
public boolean isAllowAccessToAnonymousApplicant()- Returns:
- Whether or not anonymous applicants are allowed to access form records in this state.
-
setAllowAccessToAnonymousApplicant
public void setAllowAccessToAnonymousApplicant(boolean allowAccessToAnonymousApplicant) - Parameters:
allowAccessToAnonymousApplicant- Whether or not anonymous applicants are allowed to access form records in this state.
-
addAuthenticatorConfig
-
getAuthenticatorConfigs
- Returns:
- custom authenticator configuration of this workflow state
-
setAuthenticatorConfigs
- Parameters:
authenticatorConfigs- custom authenticator configuration of this workflow state
-
getAccessUserGroups
-
setAccessUserGroups
-
getBeschreibung
Deprecated.- Specified by:
getBeschreibungin interfaceIDescriptionProviding
-
getDescription
- Specified by:
getDescriptionin interfaceIDescriptionProviding- Returns:
- A human-readable description for this object.
-
setDescription
- Parameters:
description- The description of this item, as entered by the user.
-
getDescription
Deprecated.usegetDescription()- Parameters:
locale- Locale for which to get the description.- Returns:
- The description of this state.
-
getId
-
getName
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
setName
- Parameters:
name- The name of this item, as entered by the user.
-
getName
Deprecated.usegetName()- Parameters:
locale- Locale for which to get the name.- Returns:
- The name of this state.
-
getOrderIndex
public int getOrderIndex()- Returns:
- The 0-based position where this state appears on the UI for managing the states of a workflow version.
-
setOrderIndex
public void setOrderIndex(int orderIndex) - Parameters:
orderIndex- The 0-based position where this state appears on the UI for managing the states of a workflow version.
-
getType
- Returns:
- The type of this state, whether it is a special system state, or a custom state defined by the user.
-
setType
- Parameters:
type- The type of this state, whether it is a special system state, or a custom state defined by the user.
-
getUuid
- Specified by:
getUuidin interfaceIUuidProviding- Returns:
- The UUID of this workflow state that identifies it. Please note that this UUID is unique only within the
WorkflowVersion.getStates()of a certain workflow version. Two states of different workflow version may share the same UUID.
-
getUUID
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of this workflow state that identifies it. Please note that this UUID is unique only within the
WorkflowVersion.getStates()of a certain workflow version. Two states of different workflow version may share the same UUID.
-
setUUID
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of this workflow state that identifies it. Please note that this UUID is unique only within theWorkflowVersion.getStates()of a certain workflow version. Two states of different workflow version may share the same UUID.
-
getUUIDObject
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of this workflow state that identifies it. Please note that this UUID is unique only within the
WorkflowVersion.getStates()of a certain workflow version. Two states of different workflow version may share the same UUID.
-
setUUIDObject
- Parameters:
uuid- The UUID of this workflow state that identifies it. Please note that this UUID is unique only within theWorkflowVersion.getStates()of a certain workflow version. Two states of different workflow version may share the same UUID.
-
getVersion
- Returns:
- The version to which this workflow state belongs, see
WorkflowVersion.getStates().
-
setVersion
- Parameters:
version- The version to which this workflow state belongs.
-
getEndUserState
-
setEndUserState
-
isFormRecordDeletable
public boolean isFormRecordDeletable()- Returns:
- Whether a form record in this state can be deleted manually by a user in the inbox.
-
setFormRecordDeletable
public void setFormRecordDeletable(boolean formRecordDeletable) - Parameters:
formRecordDeletable- Whether a form record in this state can be deleted manually by a user in the inbox.
-
toString
- Overrides:
toStringin classAbstractLockableEntity
-
isUseSystemAuthentication
Deprecated.UseisExternalAccessPermitted()instead- Returns:
- Whether to use the default system authentication or a custom authentication config when accessing the form records in this state
-
setUseSystemAuthentication
Deprecated.UsesetExternalAccessPermitted(boolean)instead- Parameters:
useSystemAuthentication- sets whether to use the default system authentication or a custom authentication config when accessing the form records in this state
-
applyAuthOrderIndex
public void applyAuthOrderIndex()
-
ATTR_EXTERNAL_ACCESS_PERMITTEDinstead