fr.paris.lutece.plugins.workflow.business
Interface IResourceHistoryDAO

All Known Implementing Classes:
ResourceHistoryDAO

public interface IResourceHistoryDAO

IResourceHistoryDAO


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
 

Method Detail

insert

void insert(ResourceHistory resourceHistory,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
resourceHistory - instance of the ResourceHistory object to insert
plugin - the plugin

load

ResourceHistory load(int nIdHistory,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the Resource History Object

Parameters:
nIdHistory - the history id
plugin - the plugin
Returns:
the Resource History Object

selectByResource

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

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

selectByAction

java.util.List<ResourceHistory> selectByAction(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

delete

void delete(int nIdHistory,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the ResourceHistory Object

Parameters:
nIdHistory - the history id
plugin - the plugin

deleteByListIdResource

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

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

getListHistoryIdByListIdResourceId

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.