@StableMinor(version="12.1", sinceVersion="4.0") public class WorkflowStateConfig extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Collection<String>> |
permissionsScope |
Constructor and Description |
---|
WorkflowStateConfig(Node stateElement)
Constructs a WorkflowStateConfig, parsing its data from a state XML Element.
|
Modifier and Type | Method and Description |
---|---|
String |
getColorLight()
Returns the light color for displaying this state.
|
String |
getColorStrong()
Returns the strong color for displaying this state.
|
String |
getDescription()
Returns the description for this state.
|
String |
getId()
Returns the identifier for this state.
|
String |
getImageLarge()
Returns the href for the large image icon to be used for this state.
|
String |
getImageSmall()
Returns the href for the small image icon to be used for this state.
|
String |
getName()
Returns the name for this state.
|
protected Collection<String> |
getPermissions(Enum<?> scope)
Returns all permissions available for a given scope.
|
Collection<String> |
getPermissions(StateScope stateScope)
Returns all permissions available for a given scope.
|
Collection<String> |
getPermissionsScopeAll()
Deprecated.
Since 6.0.2, replaced by
getPermissions(StateScope) . |
Collection<String> |
getPermissionsScopeAssignedTo()
Deprecated.
Since 6.0.2, replaced by
getPermissions(StateScope) . |
protected EnumSet<StateScope> |
getScopes()
Returns the scopes for a permission object.
|
WorkflowTransitionConfig |
getTransition(String transitionId)
Returns the specified transition defined in this workflow state.
|
List<WorkflowTransitionConfig> |
getTransitions()
Returns all transitions defined for this state.
|
boolean |
isArchived()
Indicates if this state is an archival state.
|
boolean |
isPublished()
Indicates if this state is a published state.
|
boolean |
isStart()
Indicates if this state was defined as the workflow's start state.
|
protected Set<String> |
readPermissionsRoles(Node[] permissionNodes)
Returns an unmodifiable permission roles set.
|
protected Map<String,Collection<String>> permissionsScope
public WorkflowStateConfig(Node stateElement) throws PortalException
stateElement
- the state XML element that contains the state's data.PortalException
public String getColorLight()
null
if this state
has no light color defined.public String getColorStrong()
null
if this state
has no strong color defined.public String getDescription()
null
if not defined.WorkflowConfig.getResource()
public String getId()
public String getImageLarge()
null
if not defined.public String getImageSmall()
null
if not defined.public String getName()
WorkflowConfig.getResource()
public boolean isPublished()
lumis.content.workflow
public boolean isArchived()
lumis.content.workflow
public boolean isStart()
lumis.content.workflow
public List<WorkflowTransitionConfig> getTransitions()
public WorkflowTransitionConfig getTransition(String transitionId) throws WorkflowException
transitionId
- the transition's id.WorkflowException
- if the transition was not found.@Deprecated public Collection<String> getPermissionsScopeAll()
getPermissions(StateScope)
.@Deprecated public Collection<String> getPermissionsScopeAssignedTo()
getPermissions(StateScope)
.protected EnumSet<StateScope> getScopes()
public Collection<String> getPermissions(StateScope stateScope)
stateScope
- the scope to have the permissions returnedprotected Set<String> readPermissionsRoles(Node[] permissionNodes) throws PortalException
permissionNodes
- the nodes containing the permissions definition.PortalException
protected Collection<String> getPermissions(Enum<?> scope)
scope
- the scope to have the permissions returnedLumisXP 12.1.0.191010 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.