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

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

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

Action Object


Field Summary
static java.lang.String RESOURCE_TYPE
           
 
Constructor Summary
Action()
           
 
Method Summary
 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
 State getStateAfter()
          Returns the State of the document after processing the action
 State getStateBefore()
          Return the State of the document before processing the action
 Workflow getWorkflow()
           
 boolean isAutomaticState()
           
 void setAutomaticState(java.lang.Boolean automaticState)
          set true return true if the resources of this state is automatic
 void setDescription(java.lang.String strDescription)
          Set the action description
 void setIcon(Icon icon)
          Set the action icon
 void setId(int idAction)
          set the id of the workflow action
 void setName(java.lang.String strName)
          Set the action name
 void setStateAfter(State stateAfter)
          Set the State of the document after processing the action
 void setStateBefore(State stateBefore)
          Set the State of the document before processing the action
 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

Action

public Action()
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 action

setId

public void setId(int idAction)
set the id of the workflow action

Parameters:
idAction - the id of the workflow action

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

getStateBefore

public State getStateBefore()
Return the State of the document before processing the action

Returns:
The StateBefore

setStateBefore

public void setStateBefore(State stateBefore)
Set the State of the document before processing the action

Parameters:
stateBefore - The StateBefore

getStateAfter

public State getStateAfter()
Returns the State of the document after processing the action

Returns:
The StateAfter

setStateAfter

public void setStateAfter(State stateAfter)
Set the State of the document after processing the action

Parameters:
stateAfter - The StateAfter

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

getWorkflow

public Workflow getWorkflow()
Returns:
the workflow associated

setWorkflow

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

Parameters:
workflow - the workflow associated

isAutomaticState

public boolean isAutomaticState()
Returns:
return true if the resources of this state shall be assigned to a workgroup

setAutomaticState

public void setAutomaticState(java.lang.Boolean automaticState)
set true return true if the resources of this state is automatic

Parameters:
requireUserAssociated - true return true if the state is automatic


Copyright © 2010 Mairie de Paris. All Rights Reserved.