fr.paris.lutece.portal.business.workflow
Class State

java.lang.Object
  extended by fr.paris.lutece.portal.business.workflow.State
All Implemented Interfaces:
IReferenceItem, RBACResource

public class State
extends java.lang.Object
implements IReferenceItem, RBACResource


Field Summary
static java.lang.String RESOURCE_TYPE
           
 
Constructor Summary
State()
           
 
Method Summary
 java.util.List<Action> getAllActions()
          return the list of all actions associated to the state
 java.lang.String getDescription()
          Returns the action description
 Icon getIcon()
          Returns the action icon
 int getId()
          return the item id
 java.lang.String getName()
          Returns the action name
 java.lang.String getResourceId()
          RBAC resource implmentation
 java.lang.String getResourceTypeCode()
          RBAC resource implementation
 Workflow getWorkflow()
           
 java.lang.Boolean isInitialState()
           
 java.lang.Boolean isRequiredWorkgroupAssigned()
           
 void setAllActions(java.util.List<Action> listActions)
          set the list of all actions associated to the state
 void setDescription(java.lang.String strDescription)
          Set the action description
 void setIcon(Icon icon)
          Set the action icon
 void setId(int idState)
          set the id of the workflow state
 void setInitialState(java.lang.Boolean isInitialState)
          set true if the state is the initial state of the workflow
 void setName(java.lang.String strName)
          Set the action name
 void setRequiredWorkgroupAssigned(java.lang.Boolean requireUserAssociated)
          set true return true if the resources of this state shall be assigned to a workgroup
 void setWorkflow(Workflow workflow)
          set the the workflow associated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

public static final java.lang.String RESOURCE_TYPE
See Also:
Constant Field Values
Constructor Detail

State

public State()
Method Detail

getId

public int getId()
Description copied from interface: IReferenceItem
return the item id

Specified by:
getId in interface IReferenceItem
Returns:
the id of the workflow state

setId

public void setId(int idState)
set the id of the workflow state

Parameters:
idState - the id of the workflow state

getWorkflow

public Workflow getWorkflow()
Returns:
the workflow associated

setWorkflow

public void setWorkflow(Workflow workflow)
set the the workflow associated

Parameters:
workflow - the workflow associated

getName

public java.lang.String getName()
Returns the action name

Specified by:
getName in interface IReferenceItem
Returns:
the action name

setName

public void setName(java.lang.String strName)
Set the action name

Parameters:
strName - the action name

getDescription

public java.lang.String getDescription()
Returns the action description

Returns:
the action description

setDescription

public void setDescription(java.lang.String strDescription)
Set the action description

Parameters:
strDescription - The Description

getIcon

public Icon getIcon()
Returns the action icon

Returns:
The Icon

setIcon

public void setIcon(Icon icon)
Set the action icon

Parameters:
icon - the icon

getAllActions

public java.util.List<Action> getAllActions()
return the list of all actions associated to the state

Returns:
the list of all actions associated to the state

setAllActions

public void setAllActions(java.util.List<Action> listActions)
set the list of all actions associated to the state

Parameters:
listActions - the list of all actions associated to the state

isInitialState

public java.lang.Boolean isInitialState()
Returns:
true if the state is the initial state of the workflow

setInitialState

public void setInitialState(java.lang.Boolean isInitialState)
set true if the state is the initial state of the workflow

Parameters:
isInitialState - true if the state is the initial state of the workflow

getResourceTypeCode

public java.lang.String getResourceTypeCode()
RBAC resource implementation

Specified by:
getResourceTypeCode in interface RBACResource
Returns:
The resource type code

getResourceId

public java.lang.String getResourceId()
RBAC resource implmentation

Specified by:
getResourceId in interface RBACResource
Returns:
The resourceId

isRequiredWorkgroupAssigned

public java.lang.Boolean isRequiredWorkgroupAssigned()
Returns:
return true if the resources of this state shall be assigned to a workgroup

setRequiredWorkgroupAssigned

public void setRequiredWorkgroupAssigned(java.lang.Boolean requireUserAssociated)
set true return true if the resources of this state shall be assigned to a workgroup

Parameters:
requireUserAssociated - true return true if the resources of this state shall be assigned to to a workgroup


Copyright © 2012 Mairie de Paris. All Rights Reserved.