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

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.business.ResourceHistoryDAO
All Implemented Interfaces:
IResourceHistoryDAO

public class ResourceHistoryDAO
extends java.lang.Object
implements IResourceHistoryDAO

class ResourceHistoryDAO


Constructor Summary
ResourceHistoryDAO()
           
 
Method Summary
 void delete(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the ResourceHistory Object
 void deleteByListIdResource(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
 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
 void insert(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 ResourceHistory load(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the Resource History Object
 java.util.List<ResourceHistory> selectByAction(int nIdAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all ResourceHistory Object for a given resource
 java.util.List<ResourceHistory> selectByResource(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load all ResourceHistory Object for a given resource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceHistoryDAO

public ResourceHistoryDAO()
Method Detail

insert

public void insert(ResourceHistory resourceHistory,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IResourceHistoryDAO
Insert a new record in the table.

Specified by:
insert in interface IResourceHistoryDAO
Parameters:
resourceHistory - instance of the ResourceHistory object to insert
plugin - the plugin

load

public ResourceHistory load(int nIdHistory,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IResourceHistoryDAO
Load the Resource History Object

Specified by:
load in interface IResourceHistoryDAO
Parameters:
nIdHistory - the history id
plugin - the plugin
Returns:
the Resource History Object

selectByResource

public java.util.List<ResourceHistory> selectByResource(int nIdResource,
                                                        java.lang.String strResourceType,
                                                        int nIdWorkflow,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IResourceHistoryDAO
Load all ResourceHistory Object for a given resource

Specified by:
selectByResource in interface IResourceHistoryDAO
Parameters:
nIdResource - the resource id
strResourceType - the resource type
nIdWorkflow - the workflow id
plugin - the plugin
Returns:
the list of ResourceHistory

selectByAction

public java.util.List<ResourceHistory> selectByAction(int nIdAction,
                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IResourceHistoryDAO
Load all ResourceHistory Object for a given resource

Specified by:
selectByAction in interface IResourceHistoryDAO
Parameters:
nIdAction - the action id
plugin - the plugin
Returns:
the list of ResourceHistory

delete

public void delete(int nIdHistory,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IResourceHistoryDAO
Delete the ResourceHistory Object

Specified by:
delete in interface IResourceHistoryDAO
Parameters:
nIdHistory - the history id
plugin - the plugin

deleteByListIdResource

public void deleteByListIdResource(java.util.List<java.lang.Integer> listIdResource,
                                   java.lang.String strResourceType,
                                   java.lang.Integer nIdWorflow,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IResourceHistoryDAO
Delete ResourceHistory list by list of id resource

Specified by:
deleteByListIdResource in interface IResourceHistoryDAO
Parameters:
listIdResource - the resource list id
strResourceType - the resource type
nIdWorflow - the workflow id
plugin - the plugin

getListHistoryIdByListIdResourceId

public 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)
Description copied from interface: IResourceHistoryDAO
Get list history id by list of id resource

Specified by:
getListHistoryIdByListIdResourceId in interface IResourceHistoryDAO
Parameters:
listIdResource - the resource list id
strResourceType - the resource type
nIdWorflow - the workflow id
plugin - the plugin
Returns:
list of history id


Copyright © 2012 Mairie de Paris. All Rights Reserved.