Class ResourceHistoryDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.modules.ticketing.business.resourcehistory.ResourceHistoryDAO
-
- All Implemented Interfaces:
IResourceHistoryDAO
public class ResourceHistoryDAO extends Object implements IResourceHistoryDAO
ResourceHistoryDAO
-
-
Field Summary
-
Fields inherited from interface fr.paris.lutece.plugins.workflow.modules.ticketing.business.resourcehistory.IResourceHistoryDAO
BEAN_SERVICE
-
-
Constructor Summary
Constructors Constructor Description ResourceHistoryDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteByHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove resourceHistory by historyvoiddeleteByResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove resourceHistory by resourceList<Integer>getIdHistoryListByResource(int idTicket, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of id history for a resource(ticket)voidinsert(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert new recordResourceHistoryload(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load a record by primary keyResourceHistoryloadUnitOld(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load a record by primary key id_history and old unit
-
-
-
Method Detail
-
insert
public void insert(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert new record- Specified by:
insertin interfaceIResourceHistoryDAO- Parameters:
resourceHistory- the ResourceHistory Objectplugin- the plugin
-
load
public ResourceHistory load(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a record by primary key- Specified by:
loadin interfaceIResourceHistoryDAO- Parameters:
nIdHistory- the history idplugin- the plugin- Returns:
- ResourceHistory Object
-
getIdHistoryListByResource
public List<Integer> getIdHistoryListByResource(int idTicket, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id history for a resource(ticket)- Specified by:
getIdHistoryListByResourcein interfaceIResourceHistoryDAO- Parameters:
idTicket- the ticket idplugin- the plugin
-
loadUnitOld
public ResourceHistory loadUnitOld(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a record by primary key id_history and old unit- Specified by:
loadUnitOldin interfaceIResourceHistoryDAO- Parameters:
nIdHistory- the history idplugin- the plugin- Returns:
- ResourceHistory Object
-
deleteByHistory
public void deleteByHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove resourceHistory by history- Specified by:
deleteByHistoryin interfaceIResourceHistoryDAO- Parameters:
nIdHistory- the History idplugin- the plugin
-
deleteByResource
public void deleteByResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove resourceHistory by resource- Specified by:
deleteByResourcein interfaceIResourceHistoryDAO- Parameters:
nIdResource- the resource idstrResourceType- the resource typeplugin- the plugin
-
-