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 aWorkflowStatethat can be sent to the client.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowStateModel.Builder<T>Builder for configuring aWorkflowStateModelfrom a state entity. 
- 
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. Preferbuilder(WorkflowState)when possible to fill with the data of a given state. 
 - 
 
- 
Method Detail
- 
createAuthenticatorConfigsComparator
public static Comparator<BaseConfigViewModel> createAuthenticatorConfigsComparator(List<BaseConfigViewModel> configs)
 
- 
getAnonymousAuthenticator
public AnonymousConfigViewModel getAnonymousAuthenticator()
 
- 
setAnonymousAuthenticator
public void setAnonymousAuthenticator(AnonymousConfigViewModel anonymousAuthenticator)
 
- 
getDescription
public String getDescription()
 
- 
setDescription
public void setDescription(String description)
 
- 
getId
public Long getId()
 
- 
setId
public void setId(Long id)
 
- 
getName
public String getName()
- Specified by:
 getNamein interfaceINameProviding- Returns:
 - The name of this object.
 
 
- 
setName
public void setName(String name)
 
- 
getNonOrderableAuthenticators
public List<BaseConfigViewModel> getNonOrderableAuthenticators()
 
- 
setNonOrderableAuthenticators
public void setNonOrderableAuthenticators(List<BaseConfigViewModel> nonOrderableAuthenticators)
 
- 
getOrderableAuthenticators
public List<BaseConfigViewModel> getOrderableAuthenticators()
 
- 
setOrderableAuthenticators
public void setOrderableAuthenticators(List<BaseConfigViewModel> orderableAuthenticators)
 
- 
getAuthenticators
public List<BaseConfigViewModel> getAuthenticators()
 
- 
setAuthenticators
public void setAuthenticators(List<BaseConfigViewModel> authenticators)
 
- 
isAllowPasswordAuthenticator
public boolean isAllowPasswordAuthenticator()
 
- 
setAllowPasswordAuthenticator
public void setAllowPasswordAuthenticator(boolean allowPasswordAuthenticator)
 
- 
getPasswordAuthenticator
public PasswordConfigViewModel getPasswordAuthenticator()
 
- 
setPasswordAuthenticator
public void setPasswordAuthenticator(PasswordConfigViewModel passwordAuthenticator)
 
- 
getType
public EWorkflowStateType getType()
 
- 
setType
public void setType(EWorkflowStateType type)
 
- 
getUserGroups
public List<UuidEntityRef> getUserGroups()
 
- 
setUserGroups
public void setUserGroups(List<UuidEntityRef> userGroups)
 
- 
getUserPortalConfig
public UserPortalStateConfigViewModel getUserPortalConfig()
Gets the view model for the user portal configuration of this state.- Returns:
 - The portal state view model.
 
 
- 
setUserPortalStateConfig
public void setUserPortalStateConfig(UserPortalStateConfigViewModel userPortalStateConfig)
Sets the view model for the user portal configuration of this state.- Parameters:
 userPortalStateConfig- The portal state view model.
 
- 
getUuid
public UUID getUuid()
- Specified by:
 getUuidin interfaceIUuidProviding- Returns:
 - The UUID that identifies this instance.
 
 
- 
setUuid
public void setUuid(UUID uuid)
 
- 
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
public List<BaseConfigViewModel> getSelectedOrderableAuthenticators()
 
- 
setSelectedOrderableAuthenticators
public void setSelectedOrderableAuthenticators(List<BaseConfigViewModel> orderableAuthenticators)
 
- 
setPortalStateConfigFromPresetIfMissing
public void setPortalStateConfigFromPresetIfMissing(EPortalStatePreset preset)
 
- 
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 public void setAuthenticatorsValid(boolean authenticatorsValid)
Deprecated. 
- 
getDescription
@Deprecated public String getDescription(Locale locale)
Deprecated.usegetDescription() 
- 
getName
@Deprecated public String getName(Locale locale)
Deprecated.usegetName() 
- 
toWorkflowState
public WorkflowState toWorkflowState(Function<UUID,BenutzerGruppe> findUserGroupByUuid, Function<UUID,ClientAuthenticator> findClientAuthenticatorByUuid, Function<UUID,SystemAuthenticator> findSystemAuthenticatorByUuid)
 
- 
builder
public static WorkflowStateModel.Builder<WorkflowState> builder(WorkflowState state)
Creates a new builder for aWorkflowStateModel.- Parameters:
 state- The state to create the model for.- Returns:
 - The new builder.
 
 
- 
builder
@Deprecated public static WorkflowStateModel.Builder<Status> builder(Status state)
Deprecated.Creates a new builder for aWorkflowStateModel.- Parameters:
 state- The state to create the model for.- Returns:
 - The new builder.
 
 
 - 
 
 -