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 a
WorkflowState
that can be sent to the client.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<BaseConfigViewModel>
static WorkflowStateModel
static WorkflowStateModel
forWorkflowState
(WorkflowState workflowState, Locale locale) getDescription
(Locale locale) Deprecated.getId()
getName()
Deprecated.usegetName()
getType()
getUuid()
boolean
boolean
boolean
boolean
@javax.validation.constraints.AssertTrue(message="{workflow.validaton.change.state.empty.authenticator}") boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAllowAccessToAnonymousApplicant
(boolean allowAccessToAnonymousApplicant) void
setAllowAccessToApplicant
(boolean allowAccessToApplicant) void
setAllowAuthenticatedUser
(boolean allowAuthenticatedUser) void
setAllowPasswordAuthenticator
(boolean allowPasswordAuthenticator) void
setAnonymousAuthenticator
(AnonymousConfigViewModel anonymousAuthenticator) void
setAuthenticators
(List<BaseConfigViewModel> authenticators) void
setAuthenticatorsValid
(boolean authenticatorsValid) Deprecated.void
setDescription
(String description) void
setExternalAccessPermitted
(boolean externalAccessPermitted) void
setFormRecordDeletable
(boolean formRecordDeletable) void
void
void
setNonOrderableAuthenticators
(List<BaseConfigViewModel> nonOrderableAuthenticators) void
setOrderableAuthenticators
(List<BaseConfigViewModel> orderableAuthenticators) void
setPasswordAuthenticator
(PasswordConfigViewModel passwordAuthenticator) void
setSelectedOrderableAuthenticators
(List<BaseConfigViewModel> orderableAuthenticators) void
setType
(EWorkflowStateType type) void
setUserGroups
(List<UuidEntityRef> userGroups) void
toString()
toWorkflowState
(Function<UUID, BenutzerGruppe> userGroupDao, Function<UUID, ClientAuthenticator> clientAuthDao, Function<UUID, SystemAuthenticator> systemAuthDao)
-
Constructor Details
-
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 Details
-
forWorkflowState
-
forState
-
createAuthenticatorConfigsComparator
public static Comparator<BaseConfigViewModel> createAuthenticatorConfigsComparator(List<BaseConfigViewModel> configs) -
getAnonymousAuthenticator
-
setAnonymousAuthenticator
-
getDescription
-
setDescription
-
getId
-
setId
-
getName
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this object.
-
setName
-
getNonOrderableAuthenticators
-
setNonOrderableAuthenticators
-
getOrderableAuthenticators
-
setOrderableAuthenticators
-
getAuthenticators
-
setAuthenticators
-
isAllowPasswordAuthenticator
public boolean isAllowPasswordAuthenticator() -
setAllowPasswordAuthenticator
public void setAllowPasswordAuthenticator(boolean allowPasswordAuthenticator) -
getPasswordAuthenticator
-
setPasswordAuthenticator
-
getType
-
setType
-
getUserGroups
-
setUserGroups
-
getUuid
- Specified by:
getUuid
in interfaceIUuidProviding
- Returns:
- The UUID that identifies this instance.
-
setUuid
-
isExternalAccessPermitted
public boolean isExternalAccessPermitted() -
setExternalAccessPermitted
public void setExternalAccessPermitted(boolean externalAccessPermitted) -
isAllowAccessToApplicant
public boolean isAllowAccessToApplicant() -
setAllowAccessToApplicant
public void setAllowAccessToApplicant(boolean allowAccessToApplicant) -
isAllowAccessToAnonymousApplicant
public boolean isAllowAccessToAnonymousApplicant() -
setAllowAccessToAnonymousApplicant
public void setAllowAccessToAnonymousApplicant(boolean allowAccessToAnonymousApplicant) -
isAllowAuthenticatedUser
public boolean isAllowAuthenticatedUser() -
setAllowAuthenticatedUser
public void setAllowAuthenticatedUser(boolean allowAuthenticatedUser) -
isFormRecordDeletable
public boolean isFormRecordDeletable() -
setFormRecordDeletable
public void setFormRecordDeletable(boolean formRecordDeletable) -
isShowPasswordOption
public boolean isShowPasswordOption() -
isShowAllowAccessToApplicant
public boolean isShowAllowAccessToApplicant() -
isShowAllowAuthenticatedUser
public boolean isShowAllowAuthenticatedUser() -
isShowAnonymousAuthenticatorOption
public boolean isShowAnonymousAuthenticatorOption() -
isShowFormRecordsUnprotectedHint
public boolean isShowFormRecordsUnprotectedHint() -
isShowUserGroupsOption
public boolean isShowUserGroupsOption() -
getSelectedOrderableAuthenticators
-
setSelectedOrderableAuthenticators
-
isAuthenticatorsValid
@AssertTrue(message="{workflow.validaton.change.state.empty.authenticator}") public @javax.validation.constraints.AssertTrue(message="{workflow.validaton.change.state.empty.authenticator}") boolean isAuthenticatorsValid() -
setAuthenticatorsValid
Deprecated. -
getDescription
Deprecated.usegetDescription()
-
getName
Deprecated.usegetName()
-
toString
-
toWorkflowState
public WorkflowState toWorkflowState(Function<UUID, BenutzerGruppe> userGroupDao, Function<UUID, ClientAuthenticator> clientAuthDao, Function<UUID, SystemAuthenticator> systemAuthDao)
-
getDescription()