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

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

public final class ResourceWorkflowHome
extends java.lang.Object

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


Method Summary
static void create(ResourceWorkflow resourceWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of resoureceWorkflow
static ResourceWorkflow findByPrimaryKey(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the resourceWorkflow Object
static java.util.List<java.lang.Integer> getAllResourceIdByWorkflow(int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select All resourceWorkflow Object associated to the workflow
static java.util.List<ResourceWorkflow> getAllResourceWorkflowByState(int nIdState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select All resourceWorkflow Object associated to the state
static java.util.List<ResourceWorkflow> getAllResourceWorkflowByWorkflow(int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select All resourceWorkflow Object associated to the workflow
static java.util.HashMap<java.lang.Integer,java.lang.Integer> getListIdStateByListId(java.util.List<java.lang.Integer> lListIdRessource, int nIdWorflow, java.lang.String strResourceType, java.lang.Integer nIdExternalParentId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select id state by list id resource
static java.util.List<java.lang.Integer> getListResourceIdWorkflowByFilter(ResourceWorkflowFilter resourceWorkflowFilter, java.util.List<java.lang.Integer> lListIdWorkflowState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select Resource Workflow id by filter
static java.util.List<java.lang.Integer> getListResourceIdWorkflowByFilter(ResourceWorkflowFilter resourceWorkflowFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select ResourceWorkflow ID by filter
static java.util.List<ResourceWorkflow> getListResourceWorkflowByFilter(ResourceWorkflowFilter resourceWorkflowFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select ResourceWorkflow by filter
static void remove(ResourceWorkflow resourceWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove resourceWorkflow which is specified in parameter
static void removeByListIdResource(java.util.List<java.lang.Integer> listIdResource, java.lang.String strResourceType, java.lang.Integer nIdWorflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete record and workflow list by list id resource
static void update(ResourceWorkflow resourceWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of resourceWorkflow 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(ResourceWorkflow resourceWorkflow,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of resoureceWorkflow

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

update

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

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

remove

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

Parameters:
resourceWorkflow - The instance of resourceWorkflow which contains the informations to remove
plugin - the Plugin

removeByListIdResource

public static void removeByListIdResource(java.util.List<java.lang.Integer> listIdResource,
                                          java.lang.String strResourceType,
                                          java.lang.Integer nIdWorflow,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete record and workflow list by list id resource

Parameters:
listIdResource - list of resource id
strResourceType - the resource type
nIdWorflow - the worflow id
plugin - the plugin

findByPrimaryKey

public static ResourceWorkflow findByPrimaryKey(int nIdResource,
                                                java.lang.String strResourceType,
                                                int nIdWorkflow,
                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the resourceWorkflow Object

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

getAllResourceWorkflowByWorkflow

public static java.util.List<ResourceWorkflow> getAllResourceWorkflowByWorkflow(int nIdWorkflow,
                                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select All resourceWorkflow Object associated to the workflow

Parameters:
nIdWorkflow - workflow id
plugin - the plugin
Returns:
List of resourceWorkflow Object

getAllResourceIdByWorkflow

public static java.util.List<java.lang.Integer> getAllResourceIdByWorkflow(int nIdWorkflow,
                                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select All resourceWorkflow Object associated to the workflow

Parameters:
nIdWorkflow - workflow id
plugin - the plugin
Returns:
List of Id resource

getAllResourceWorkflowByState

public static java.util.List<ResourceWorkflow> getAllResourceWorkflowByState(int nIdState,
                                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select All resourceWorkflow Object associated to the state

Parameters:
nIdState - state
plugin - the plugin
Returns:
List of resourceWorkflow Object

getListResourceWorkflowByFilter

public static java.util.List<ResourceWorkflow> getListResourceWorkflowByFilter(ResourceWorkflowFilter resourceWorkflowFilter,
                                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select ResourceWorkflow by filter

Parameters:
resourceWorkflowFilter - the filter
plugin - the plugin
Returns:
ResourceWorkflow List

getListResourceIdWorkflowByFilter

public static java.util.List<java.lang.Integer> getListResourceIdWorkflowByFilter(ResourceWorkflowFilter resourceWorkflowFilter,
                                                                                  java.util.List<java.lang.Integer> lListIdWorkflowState,
                                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select Resource Workflow id by filter

Parameters:
resourceWorkflowFilter - the filter
lListIdWorkflowState - list of workflow state
plugin - the plugin
Returns:
ResourceWorkflow list id

getListResourceIdWorkflowByFilter

public static java.util.List<java.lang.Integer> getListResourceIdWorkflowByFilter(ResourceWorkflowFilter resourceWorkflowFilter,
                                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select ResourceWorkflow ID by filter

Parameters:
resourceWorkflowFilter - the filter
plugin - the plugin
Returns:
ResourceWorkflow ID List

getListIdStateByListId

public static java.util.HashMap<java.lang.Integer,java.lang.Integer> getListIdStateByListId(java.util.List<java.lang.Integer> lListIdRessource,
                                                                                            int nIdWorflow,
                                                                                            java.lang.String strResourceType,
                                                                                            java.lang.Integer nIdExternalParentId,
                                                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select id state by list id resource

Parameters:
lListIdResource - the resource list id
nIdWorflow - The worflow id
strResourceType - the ressource type
nIdExternalParentId - the external parent id
plugin - the plugin
Returns:


Copyright © 2012 Mairie de Paris. All Rights Reserved.