Class NotifyGruHistoryDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.modules.notifygru.business.NotifyGruHistoryDAO
-
- All Implemented Interfaces:
INotifyGruHistoryDAO
public class NotifyGruHistoryDAO extends Object implements INotifyGruHistoryDAO
class NotifyGruHistoryDAO
-
-
Constructor Summary
Constructors Constructor Description NotifyGruHistoryDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanHistoryContentByDate(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 notifygruNotifyGruHistoryload(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load a record by primary key
-
-
-
Field Detail
-
BEAN
public static final String BEAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
insert
public void insert(NotifyGruHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-