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

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

public class Workflow
extends java.lang.Object
implements AdminWorkgroupResource, IReferenceItem

This is the business class for the object Workflow


Constructor Summary
Workflow()
           
 
Method Summary
 java.util.List<Action> getAllActions()
          return the list of all actions associated to the workflow
 java.util.List<State> getAllStates()
          return the list of all states associated to the workflow
 java.sql.Timestamp getCreationDate()
           
 java.lang.String getDescription()
          Returns the Description
 int getId()
          Returns the IdWorkflow
 java.lang.String getName()
          Returns the Name
 java.lang.String getWorkgroup()
          Gets the Workgroup of the Resource
static void init()
          Initialize the workflow
 boolean isEnabled()
           
 void setAllActions(java.util.List<Action> listActions)
          set the list of all actions associated to the workflow
 void setAllStates(java.util.List<State> listStates)
          set the list of all states associated to the workflow
 void setCreationDate(java.sql.Timestamp dateCreation)
          set the creation date
 void setDescription(java.lang.String strDescription)
          Sets the Description
 void setEnabled(boolean enable)
          set true if the workflow is enabled
 void setId(int nIdWorkflow)
          Sets the IdWorkflow
 void setName(java.lang.String strName)
          Sets the Name
 void setWorkgroup(java.lang.String workGroup)
          set the work group associate to the workflow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Workflow

public Workflow()
Method Detail

init

public static void init()
Initialize the workflow


getId

public int getId()
Returns the IdWorkflow

Specified by:
getId in interface IReferenceItem
Returns:
The IdWorkflow

setId

public void setId(int nIdWorkflow)
Sets the IdWorkflow

Parameters:
nIdWorkflow - The IdWorkflow

getName

public java.lang.String getName()
Returns the Name

Specified by:
getName in interface IReferenceItem
Returns:
The Name

setName

public void setName(java.lang.String strName)
Sets the Name

Parameters:
strName - The Name

getDescription

public java.lang.String getDescription()
Returns the Description

Returns:
The Description

setDescription

public void setDescription(java.lang.String strDescription)
Sets the Description

Parameters:
strDescription - The Description

getAllActions

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

Returns:
the list of all actions associated to the workflow

setAllActions

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

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

getAllStates

public java.util.List<State> getAllStates()
return the list of all states associated to the workflow

Returns:
the list of all states associated to the workflow

setAllStates

public void setAllStates(java.util.List<State> listStates)
set the list of all states associated to the workflow

Parameters:
listStates - the list of all states associated to the workflow

getWorkgroup

public java.lang.String getWorkgroup()
Description copied from interface: AdminWorkgroupResource
Gets the Workgroup of the Resource

Specified by:
getWorkgroup in interface AdminWorkgroupResource
Returns:
the work group associate to the workflow

setWorkgroup

public void setWorkgroup(java.lang.String workGroup)
set the work group associate to the workflow

Parameters:
workGroup - the work group associate to the workflow

getCreationDate

public java.sql.Timestamp getCreationDate()
Returns:
the creation date

setCreationDate

public void setCreationDate(java.sql.Timestamp dateCreation)
set the creation date

Parameters:
dateCreation - the creation date

isEnabled

public boolean isEnabled()
Returns:
true if the workflow is enabled

setEnabled

public void setEnabled(boolean enable)
set true if the workflow is enabled

Parameters:
enable - true if the workflow is enabled


Copyright © 2012 Mairie de Paris. All Rights Reserved.