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

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

public final class WorkflowHome
extends java.lang.Object

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


Method Summary
static void create(fr.paris.lutece.portal.business.workflow.Workflow workflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of workflow
static fr.paris.lutece.portal.business.workflow.Workflow findByPrimaryKey(int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the workflow Object
static java.util.List<fr.paris.lutece.portal.business.workflow.Workflow> getListWorkflowsByFilter(WorkflowFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return the workflow list by filter
static void remove(int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove workflow which is specified in parameter
static void update(fr.paris.lutece.portal.business.workflow.Workflow workflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of workflow 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.Workflow workflow,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of workflow

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

update

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

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

remove

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

Parameters:
nIdWorkflow - the workflow to remove
plugin - the Plugin

findByPrimaryKey

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

Parameters:
nIdWorkflow - the workflow id
plugin - the plugin
Returns:
the State Object

getListWorkflowsByFilter

public static java.util.List<fr.paris.lutece.portal.business.workflow.Workflow> getListWorkflowsByFilter(WorkflowFilter filter,
                                                                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the workflow list by filter

Parameters:
filter - the filter
plugin - the plugin
Returns:
the workflow list


Copyright © 2011 Mairie de Paris. All Rights Reserved.