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

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

public final class ResourceHistoryHome
extends java.lang.Object

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


Method Summary
static void create(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of resoureceHistory
static ResourceHistory findByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the resource history Object
static java.util.List<ResourceHistory> getAllHistoryByAction(int nIdAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all ResourceHistory Object for a given resource
static java.util.List<ResourceHistory> getAllHistoryByResource(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all ResourceHistory Object for a given resource
static ResourceHistory getLastHistoryResource(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the last resource history depending creation date
static java.util.List<java.lang.Integer> getListHistoryIdByListIdResourceId(java.util.List<java.lang.Integer> listIdResource, java.lang.String strResourceType, java.lang.Integer nIdWorflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get list history id by list of id resource
static void remove(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove resourceHistory 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 ResourceHistory list by list of id resource
 
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(ResourceHistory resourceHistory,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of resoureceHistory

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

remove

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

Parameters:
nIdHistory - History id 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 ResourceHistory list by list of id resource

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

getListHistoryIdByListIdResourceId

public static java.util.List<java.lang.Integer> getListHistoryIdByListIdResourceId(java.util.List<java.lang.Integer> listIdResource,
                                                                                   java.lang.String strResourceType,
                                                                                   java.lang.Integer nIdWorflow,
                                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get list history id by list of id resource

Parameters:
listIdResource - the resource list id
strResourceType - the resource type
nIdWorflow - the workflow id
plugin - the plugin
Returns:
list of history id

findByPrimaryKey

public static ResourceHistory findByPrimaryKey(int nIdHistory,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the resource history Object

Parameters:
nIdHistory - the resource history key
plugin - the plugin
Returns:
the resource workflow Object

getAllHistoryByResource

public static java.util.List<ResourceHistory> getAllHistoryByResource(int nIdResource,
                                                                      java.lang.String strResourceType,
                                                                      int nIdWorkflow,
                                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all ResourceHistory Object for a given resource

Parameters:
nIdResource - the resource id
strResourceType - the resource type
nIdWorkflow - the workflow id
plugin - the plugin
Returns:
the list of ResourceHistory

getAllHistoryByAction

public static java.util.List<ResourceHistory> getAllHistoryByAction(int nIdAction,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all ResourceHistory Object for a given resource

Parameters:
nIdAction - the action id
plugin - the plugin
Returns:
the list of ResourceHistory

getLastHistoryResource

public static ResourceHistory getLastHistoryResource(int nIdResource,
                                                     java.lang.String strResourceType,
                                                     int nIdWorkflow,
                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the last resource history depending creation date

Parameters:
nIdResource - the resource id
strResourceType - the resource type
nIdWorkflow - the workflow id
plugin - the plugin
Returns:
the list of ResourceHistory


Copyright © 2012 Mairie de Paris. All Rights Reserved.