fr.paris.lutece.plugins.workflow.business
Class StateHome

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.business.StateHome

public final class StateHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for State objects


Method Summary
static void create(fr.paris.lutece.portal.business.workflow.State state, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of state
static fr.paris.lutece.portal.business.workflow.State findByPrimaryKey(int nIdState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the state Object
static fr.paris.lutece.portal.business.workflow.State findByResource(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the state Object from the given resource
static fr.paris.lutece.portal.business.workflow.State getInitialState(int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return the initial state of the workflow
static java.util.List<fr.paris.lutece.portal.business.workflow.State> getListStateByFilter(StateFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select states by filter
static void remove(int nIdState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove state which is specified in parameter
static void update(fr.paris.lutece.portal.business.workflow.State state, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of state which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(fr.paris.lutece.portal.business.workflow.State state,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of state

Parameters:
state - The instance of state which contains the informations to store
plugin - the plugin

update

public static void update(fr.paris.lutece.portal.business.workflow.State state,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of state which is specified in parameter

Parameters:
state - The instance of state which contains the informations to update
plugin - the Plugin

remove

public static void remove(int nIdState,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove state which is specified in parameter

Parameters:
nIdState - The state id to remove
plugin - the Plugin

findByPrimaryKey

public static fr.paris.lutece.portal.business.workflow.State findByPrimaryKey(int nIdState,
                                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the state Object

Parameters:
nIdState - the state id
plugin - the plugin
Returns:
the State Object

findByResource

public static fr.paris.lutece.portal.business.workflow.State findByResource(int nIdResource,
                                                                            java.lang.String strResourceType,
                                                                            int nIdWorkflow,
                                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the state Object from the given resource

Parameters:
nIdResource - the resource id
strResourceType - the resource type
nIdWorkflow - the workflow id
plugin - the plugin
Returns:
the state Object

getListStateByFilter

public static java.util.List<fr.paris.lutece.portal.business.workflow.State> getListStateByFilter(StateFilter filter,
                                                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select states by filter

Parameters:
filter - the state filter
plugin - the plugin
Returns:
State List

getInitialState

public static fr.paris.lutece.portal.business.workflow.State getInitialState(int nIdWorkflow,
                                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the initial state of the workflow

Parameters:
nIdWorkflow - yhe workflow id
plugin - the plugin
Returns:
return the initial state of the workflow


Copyright © 2011 Mairie de Paris. All Rights Reserved.