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 WorkflowStateModelstatic WorkflowStateModelforWorkflowState(WorkflowState workflowState, Locale locale) getDescription(Locale locale) Deprecated.getId()getName()Deprecated.usegetName()getType()getUuid()booleanbooleanbooleanboolean@javax.validation.constraints.AssertTrue(message="{workflow.validaton.change.state.empty.authenticator}") booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAllowAccessToAnonymousApplicant(boolean allowAccessToAnonymousApplicant) voidsetAllowAccessToApplicant(boolean allowAccessToApplicant) voidsetAllowAuthenticatedUser(boolean allowAuthenticatedUser) voidsetAllowPasswordAuthenticator(boolean allowPasswordAuthenticator) voidsetAnonymousAuthenticator(AnonymousConfigViewModel anonymousAuthenticator) voidsetAuthenticators(List<BaseConfigViewModel> authenticators) voidsetAuthenticatorsValid(boolean authenticatorsValid) Deprecated.voidsetDescription(String description) voidsetExternalAccessPermitted(boolean externalAccessPermitted) voidsetFormRecordDeletable(boolean formRecordDeletable) voidvoidvoidsetNonOrderableAuthenticators(List<BaseConfigViewModel> nonOrderableAuthenticators) voidsetOrderableAuthenticators(List<BaseConfigViewModel> orderableAuthenticators) voidsetPasswordAuthenticator(PasswordConfigViewModel passwordAuthenticator) voidsetSelectedOrderableAuthenticators(List<BaseConfigViewModel> orderableAuthenticators) voidsetType(EWorkflowStateType type) voidsetUserGroups(List<UuidEntityRef> userGroups) voidtoString()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:
getNamein 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:
getUuidin 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()