Class NotifyGruHistoryDAO
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.notifygru.business.NotifyGruHistoryDAO
- All Implemented Interfaces:
INotifyGruHistoryDAO
class NotifyGruHistoryDAO
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanHistoryContentByDate(Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin) clean all histories content who have a creation date before the tMinCreationDatevoiddeleteByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) delete all notifygrus associated width the history specified in parametervoiddeleteByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) delete all notifygrus associated width the task specified in parameterintgetNbHistoryToCleanByDate(Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin) get nb histories who have a creation date before the tMinCreationDatevoidinsert(NotifyGruHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin) insert new history notifygruload(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load a record by primary key
-
Field Details
-
BEAN
- See Also:
-
-
Constructor Details
-
NotifyGruHistoryDAO
public NotifyGruHistoryDAO()
-
-
Method Details
-
insert
insert new history notifygru- Specified by:
insertin interfaceINotifyGruHistoryDAO- Parameters:
history- history notifygruplugin- the plugin
-
load
public NotifyGruHistory load(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load a record by primary key- Specified by:
loadin interfaceINotifyGruHistoryDAO- Parameters:
nIdHistory- the action history idnIdTask- the task idplugin- the plugin- Returns:
- NotifyGruHistory Object
-
deleteByHistory
public void deleteByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) delete all notifygrus associated width the history specified in parameter- Specified by:
deleteByHistoryin interfaceINotifyGruHistoryDAO- Parameters:
nIdHistory- the history idnIdTask- the task idplugin- the plugin
-
deleteByTask
public void deleteByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) delete all notifygrus associated width the task specified in parameter- Specified by:
deleteByTaskin interfaceINotifyGruHistoryDAO- Parameters:
nIdTask- the task idplugin- the plugin
-
cleanHistoryContentByDate
public void cleanHistoryContentByDate(Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin) clean all histories content who have a creation date before the tMinCreationDate- Specified by:
cleanHistoryContentByDatein interfaceINotifyGruHistoryDAO- Parameters:
tMinCreationDate- the creation date minimalplugin- the plugin
-
getNbHistoryToCleanByDate
public int getNbHistoryToCleanByDate(Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin) get nb histories who have a creation date before the tMinCreationDate- Specified by:
getNbHistoryToCleanByDatein interfaceINotifyGruHistoryDAO- Parameters:
tMinCreationDate- the history creation dateplugin- the plugin- Returns:
- the nb nb histories who have a creation date before the tMinCreationDate
-