Class ResourceHistoryDAO
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.ticketing.business.resourcehistory.ResourceHistoryDAO
- All Implemented Interfaces:
IResourceHistoryDAO
ResourceHistoryDAO
-
Field Summary
Fields inherited from interface fr.paris.lutece.plugins.workflow.modules.ticketing.business.resourcehistory.IResourceHistoryDAO
BEAN_SERVICE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByHistory(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 resourcegetIdHistoryListByResource(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 recordload(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load a record by primary keyloadUnitOld(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load a record by primary key id_history and old unit
-
Constructor Details
-
ResourceHistoryDAO
public ResourceHistoryDAO()
-
-
Method Details
-
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
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
-