Package de.xima.fc.workflow
Class WorkflowStateModel
- java.lang.Object
-
- de.xima.fc.workflow.WorkflowStateModel
-
- All Implemented Interfaces:
INameProviding
,IUuidProviding
,Serializable
public final class WorkflowStateModel extends Object implements Serializable, IUuidProviding, INameProviding
View model of aWorkflowState
that can be sent to the client.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
-
Constructor Summary
Constructors Constructor Description WorkflowStateModel()
Creates a new empty workflow state model.
-
Method Summary
-
-
-
Constructor Detail
-
WorkflowStateModel
public WorkflowStateModel()
Creates a new empty workflow state model. PreferforWorkflowState(WorkflowState, Locale)
when possible to fill with the data of a given state.
-
-
Method Detail
-
getAnonymousAuthenticator
public AnonymousConfigViewModel getAnonymousAuthenticator()
-
getDescription
public String getDescription()
-
getDescription
@Deprecated public String getDescription(Locale locale)
Deprecated.usegetDescription()
-
getId
public Long getId()
-
getName
public String getName()
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this object.
-
getName
@Deprecated public String getName(Locale locale)
Deprecated.usegetName()
-
getNonOrderableAuthenticators
public List<BaseConfigViewModel> getNonOrderableAuthenticators()
-
getOrderableAuthenticators
public List<BaseConfigViewModel> getOrderableAuthenticators()
-
getPasswordAuthenticator
public PasswordConfigViewModel getPasswordAuthenticator()
-
getType
public EWorkflowStateType getType()
-
getUserGroups
public List<UuidEntityRef> getUserGroups()
-
getUuid
public UUID getUuid()
- Specified by:
getUuid
in interfaceIUuidProviding
- Returns:
- The UUID that identifies this instance.
-
isExternalAccessPermitted
public boolean isExternalAccessPermitted()
-
isFormRecordDeletable
public boolean isFormRecordDeletable()
-
isShowAnonymousAuthenticatorOption
public boolean isShowAnonymousAuthenticatorOption()
-
isShowFormRecordsUnprotectedHint
public boolean isShowFormRecordsUnprotectedHint()
-
isShowUserGroupsOption
public boolean isShowUserGroupsOption()
-
setAnonymousAuthenticator
public void setAnonymousAuthenticator(AnonymousConfigViewModel anonymousAuthenticator)
-
setDescription
public void setDescription(String description)
-
setExternalAccessPermitted
public void setExternalAccessPermitted(boolean externalAccessPermitted)
-
setFormRecordDeletable
public void setFormRecordDeletable(boolean formRecordDeletable)
-
setId
public void setId(Long id)
-
setName
public void setName(String name)
-
setNonOrderableAuthenticators
public void setNonOrderableAuthenticators(List<BaseConfigViewModel> nonOrderableAuthenticators)
-
setOrderableAuthenticators
public void setOrderableAuthenticators(List<BaseConfigViewModel> orderableAuthenticators)
-
getSelectedOrderableAuthenticators
public List<BaseConfigViewModel> getSelectedOrderableAuthenticators()
-
setSelectedOrderableAuthenticators
public void setSelectedOrderableAuthenticators(List<BaseConfigViewModel> orderableAuthenticators)
-
setPasswordAuthenticator
public void setPasswordAuthenticator(PasswordConfigViewModel passwordAuthenticator)
-
setType
public void setType(EWorkflowStateType type)
-
setUserGroups
public void setUserGroups(List<UuidEntityRef> userGroups)
-
setUuid
public void setUuid(UUID uuid)
-
toWorkflowState
public WorkflowState toWorkflowState(Function<UUID,BenutzerGruppe> userGroupDao, Function<UUID,ClientAuthenticator> clientAuthDao, Function<UUID,SystemAuthenticator> systemAuthDao)
-
forWorkflowState
public static WorkflowStateModel forWorkflowState(WorkflowState workflowState, Locale locale)
-
forState
public static WorkflowStateModel forState(Status state, Locale locale)
-
createAuthenticatorConfigsComparator
public static Comparator<BaseConfigViewModel> createAuthenticatorConfigsComparator(List<BaseConfigViewModel> configs)
-
-