|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.content.workflow.WorkflowStateConfig
@StableMinor(version="6.1", sinceVersion="4.0") public class WorkflowStateConfig
Value class for content's workflow state information.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
permissionsScope
|
Constructor Summary | |
---|---|
WorkflowStateConfig(org.w3c.dom.Node stateElement)
Constructs a WorkflowStateConfig, parsing its data from a state XML Element. |
Method Summary | |
---|---|
java.lang.String |
getColorLight()
Returns the light color for displaying this state. |
java.lang.String |
getColorStrong()
Returns the strong color for displaying this state. |
java.lang.String |
getDescription()
Returns the description for this state. |
java.lang.String |
getId()
Returns the identifier for this state. |
java.lang.String |
getImageLarge()
Returns the href for the large image icon to be used for this state. |
java.lang.String |
getImageSmall()
Returns the href for the small image icon to be used for this state. |
java.lang.String |
getName()
Returns the name for this state. |
protected java.util.Collection<java.lang.String> |
getPermissions(java.lang.Enum<?> scope)
Returns all permissions available for a given scope. |
java.util.Collection<java.lang.String> |
getPermissions(StateScope stateScope)
Returns all permissions available for a given scope. |
java.util.Collection<java.lang.String> |
getPermissionsScopeAll()
Deprecated. Since 6.0.2, replaced by getPermissions(Enum) |
java.util.Collection<java.lang.String> |
getPermissionsScopeAssignedTo()
Deprecated. Since 6.0.2, replaced by getPermissions(Enum) |
protected java.util.EnumSet<StateScope> |
getScopes()
Returns the scopes for a permission object. |
WorkflowTransitionConfig |
getTransition(java.lang.String transitionId)
Returns the specified transition defined in this workflow state. |
java.util.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 java.util.Set<java.lang.String> |
readPermissionsRoles(org.w3c.dom.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 java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> permissionsScope
Constructor Detail |
---|
public WorkflowStateConfig(org.w3c.dom.Node stateElement) throws PortalException
stateElement
- the state XML element that contains the state's data.
PortalException
Method Detail |
---|
public java.lang.String getColorLight()
null
if this state
has no light color defined.public java.lang.String getColorStrong()
null
if this state
has no strong color defined.public java.lang.String getDescription()
null
if not defined.WorkflowConfig.getResource()
public java.lang.String getId()
public java.lang.String getImageLarge()
null
if not defined.public java.lang.String getImageSmall()
null
if not defined.public java.lang.String getName()
WorkflowConfig.getResource()
public boolean isPublished()
lumis.content.workflow
public boolean isArchived()
lumis.content.workflow
public boolean isStart()
lumis.content.workflow
public java.util.List<WorkflowTransitionConfig> getTransitions()
public WorkflowTransitionConfig getTransition(java.lang.String transitionId) throws WorkflowException
transitionId
- the transition's id.
WorkflowException
- if the transition was not found.@Deprecated public java.util.Collection<java.lang.String> getPermissionsScopeAll()
getPermissions(Enum)
@Deprecated public java.util.Collection<java.lang.String> getPermissionsScopeAssignedTo()
getPermissions(Enum)
protected java.util.EnumSet<StateScope> getScopes()
public java.util.Collection<java.lang.String> getPermissions(StateScope stateScope)
stateScope
- the scope to have the permissions returned
protected java.util.Set<java.lang.String> readPermissionsRoles(org.w3c.dom.Node[] permissionNodes) throws PortalException
permissionNodes
- the nodes containing the permissions definition.
PortalException
protected java.util.Collection<java.lang.String> getPermissions(java.lang.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 |