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> 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 void remove(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          remove resourceHistory 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(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

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


Copyright © 2009 Mairie de Paris. All Rights Reserved.