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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for configuring aWorkflowStateModelfrom a state entity. -
Field Summary
Fields inherited from interface INameProviding
ATTR_NAME, COL_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowStateModel.Builder<Status> Deprecated.builder(WorkflowState state) Creates a new builder for aWorkflowStateModel.static Comparator<BaseConfigViewModel> getDescription(Locale locale) Deprecated.getId()getName()Deprecated.usegetName()getType()Gets the view model for the user portal configuration of this state.getUuid()booleanbooleanbooleanbooleanbooleanboolean@AssertTrue(message="{workflow.validaton.change.state.empty.authenticator}") booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAllowAccessAllParticipants(boolean allowAccessAllParticipants) voidsetAllowAccessToAnonymousApplicant(boolean allowAccessToAnonymousApplicant) voidsetAllowAccessToApplicant(boolean allowAccessToApplicant) voidsetAllowAuthenticatedUser(boolean allowAuthenticatedUser) voidsetAllowPasswordAuthenticator(boolean allowPasswordAuthenticator) voidsetAllowPasswordGeneratorOption(boolean allowPasswordGeneratorOption) voidsetAnonymousAuthenticator(AnonymousConfigViewModel anonymousAuthenticator) voidsetAuthenticators(List<BaseConfigViewModel> authenticators) voidsetAuthenticatorsValid(boolean authenticatorsValid) Deprecated.voidsetDescription(String description) voidsetEndUserStateConfig(EndUserStateConfigViewModel endUserStateConfig) Sets the view model for the user portal configuration of this state.voidsetEndUserStateConfigFromPresetIfMissing(EEndUserStatePreset preset, Locale clientLocale) voidsetExternalAccessPermitted(boolean externalAccessPermitted) voidsetFormRecordDeletable(boolean formRecordDeletable) voidsetGeneratedPasswordAuthenticator(GeneratedPasswordConfigViewModel generatedPasswordAuthenticator) 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> findUserGroupByUuid, Function<UUID, ClientAuthenticator> findClientAuthenticatorByUuid, Function<UUID, SystemAuthenticator> findSystemAuthenticatorByUuid)
-
Constructor Details
-
WorkflowStateModel
public WorkflowStateModel()Creates a new empty workflow state model. Preferbuilder(WorkflowState)when possible to fill with the data of a given state.
-
-
Method Details
-
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) -
isAllowPasswordGeneratorOption
public boolean isAllowPasswordGeneratorOption() -
setAllowPasswordGeneratorOption
public void setAllowPasswordGeneratorOption(boolean allowPasswordGeneratorOption) -
getGeneratedPasswordAuthenticator
-
setGeneratedPasswordAuthenticator
public void setGeneratedPasswordAuthenticator(GeneratedPasswordConfigViewModel generatedPasswordAuthenticator) -
getPasswordAuthenticator
-
setPasswordAuthenticator
-
getType
-
setType
-
getUserGroups
-
setUserGroups
-
getUserPortalConfig
Gets the view model for the user portal configuration of this state.- Returns:
- The end user state view model.
-
setEndUserStateConfig
Sets the view model for the user portal configuration of this state.- Parameters:
endUserStateConfig- The end user state view model.
-
isAllowAccessAllParticipants
public boolean isAllowAccessAllParticipants() -
setAllowAccessAllParticipants
public void setAllowAccessAllParticipants(boolean allowAccessAllParticipants) -
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
-
setEndUserStateConfigFromPresetIfMissing
public void setEndUserStateConfigFromPresetIfMissing(EEndUserStatePreset preset, Locale clientLocale) -
isAuthenticatorsValid
@AssertTrue(message="{workflow.validaton.change.state.empty.authenticator}") public @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> findUserGroupByUuid, Function<UUID, ClientAuthenticator> findClientAuthenticatorByUuid, Function<UUID, SystemAuthenticator> findSystemAuthenticatorByUuid) -
builder
Creates a new builder for aWorkflowStateModel.- Parameters:
state- The state to create the model for.- Returns:
- The new builder.
-
builder
Deprecated.Creates a new builder for aWorkflowStateModel.- Parameters:
state- The state to create the model for.- Returns:
- The new builder.
-
getDescription()