Package de.xima.fc.entities
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 String
JPA attribute name for thegetAccessUserGroups()
field.static final String
JPA attribute name for theisAllowAccessToApplicant()
field.static final String
JPA attribute name for theisAllowAccessToAnonymousApplicant()
field.static final String
JPA attribute name for thegetAuthenticatorConfigs()
field.static final String
JPA attribute name for theisExternalAccessPermitted()
field.static final String
JPA attribute name for theisFormRecordDeletable()
field.static final String
JPA attribute name for thegetOrderIndex()
field.static final String
JPA attribute name for thegetType()
field.static final String
Deprecated.static final String
JPA attribute name for thegetVersion()
field.static final String
Database column name for theisAllowAccessToAnonymousApplicant()
field.static final String
Database column name for theisAllowAccessToApplicant()
field.static final String
Database column name for theisUseSystemAuthentication()
field.static final String
Database column name for theisFormRecordDeletable()
field.static final String
Database column name for thegetName()
field.static final String
Database column name for thegetOrderIndex()
field.static final String
Database column name for thegetType()
field.static final String
Deprecated.UseCOL_EXTERNAL_ACCESS_PERMITTED
insteadstatic final String
Database column name for thegetVersion()
field.Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.getDescription
(Locale locale) Deprecated.usegetDescription()
getId()
getName()
Deprecated.usegetName()
int
getType()
getUuid()
getUUID()
boolean
boolean
boolean
boolean
boolean
Deprecated.UseisExternalAccessPermitted()
insteadvoid
setAccessUserGroups
(List<BenutzerGruppe> userGroups) void
setAllowAccessToAnonymousApplicant
(boolean allowAccessToAnonymousApplicant) void
setAllowAccessToApplicant
(boolean allowAccessToApplicant) void
setAuthenticatorConfigs
(List<WorkflowStateAuthenticatorConfig> authenticatorConfigs) void
setDescription
(String description) void
setExternalAccessPermitted
(boolean externalAccessPermitted) void
setFormRecordDeletable
(boolean formRecordDeletable) void
void
setOrderIndex
(int orderIndex) void
setType
(EWorkflowStateType type) void
setUseSystemAuthentication
(boolean useSystemAuthentication) Deprecated.UsesetExternalAccessPermitted(boolean)
insteadvoid
void
setUUIDObject
(UUID uuid) void
setVersion
(WorkflowVersion version) toString()
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods 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
JPA attribute name for thegetType()
field.- See Also:
-
ATTR_VERSION
JPA attribute name for thegetVersion()
field.- See Also:
-
ATTR_USE_SYSTEM_AUTHENTICATION
Deprecated.UseATTR_EXTERNAL_ACCESS_PERMITTED
instead- 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_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
Database column name for thegetName()
field.- See Also:
-
COL_ORDER_INDEX
Database column name for thegetOrderIndex()
field.- See Also:
-
COL_TYPE
Database column name for thegetType()
field.- See Also:
-
COL_VERSION
Database column name for thegetVersion()
field.- See Also:
-
COL_USE_SYSTEM_AUTHENTICATION
Deprecated.UseCOL_EXTERNAL_ACCESS_PERMITTED
instead- 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 or not it is allowed to access form records in this state. If
true
thengetAuthenticatorConfigs()
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
-
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.
-
getAuthenticatorConfigs
- Returns:
- custom authenticator configuration of this workflow state
-
getAccessUserGroups
-
getBeschreibung
Deprecated.- Specified by:
getBeschreibung
in interfaceIDescriptionProviding
-
getDescription
- Specified by:
getDescription
in interfaceIDescriptionProviding
- Returns:
- A human-readable description for this object.
-
getDescription
Deprecated.usegetDescription()
- Parameters:
locale
- Locale for which to get the description.- Returns:
- The description of this state.
-
getId
- Specified by:
getId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
getName
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this object.
-
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.
-
getType
- Returns:
- The type of this state, whether it is a special system state, or a custom state defined by the user.
-
getUuid
- Specified by:
getUuid
in 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
- Specified by:
getUUID
in 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.
-
getUUIDObject
- Specified by:
getUUIDObject
in 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.
-
getVersion
- Returns:
- The version to which this workflow state belongs, see
WorkflowVersion.getStates()
.
-
isFormRecordDeletable
public boolean isFormRecordDeletable()- Returns:
- Whether a form record in this state can be deleted manually by a user in the inbox.
-
setAuthenticatorConfigs
- Parameters:
authenticatorConfigs
- custom authenticator configuration of this workflow state
-
setAccessUserGroups
-
setDescription
- Parameters:
description
- The description of this item, as entered by the user.
-
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.
-
setName
- Parameters:
name
- The name of this item, as entered by the user.
-
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.
-
setType
- Parameters:
type
- The type of this state, whether it is a special system state, or a custom state defined by the user.
-
setUUID
- Specified by:
setUUID
in 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.
-
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.
-
setVersion
- Parameters:
version
- The version to which this workflow state belongs.
-
toString
- Overrides:
toString
in 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 or not 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_PERMITTED
instead