|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.content.workflow.WorkflowStateConfig
@StableMinor(version="6.2", sinceVersion="4.0") public class WorkflowStateConfig
Value class for content's workflow state information.
Field Summary | |
---|---|
protected Map<String,Collection<String>> |
permissionsScope
|
Constructor Summary | |
---|---|
WorkflowStateConfig(Node stateElement)
Constructs a WorkflowStateConfig, parsing its data from a state XML Element. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,Collection<String>> permissionsScope
Constructor Detail |
---|
public WorkflowStateConfig(Node stateElement) throws PortalException
stateElement
- the state XML element that contains the state's data.
PortalException
Method Detail |
---|
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 returned
protected 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 returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |