Class NotifyGruHistoryService
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.modules.notifygru.service.NotifyGruHistoryService
-
- All Implemented Interfaces:
INotifyGruHistoryService
public class NotifyGruHistoryService extends Object implements INotifyGruHistoryService
NotifyGruHistoryService
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_SERVICEThe name of the bean of this service
-
Constructor Summary
Constructors Constructor Description NotifyGruHistoryService()
-
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 tMinCreationDatevoidcreate(NotifyGruHistory notifyGru, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creation of an instance of Notify GRUNotifyGruHistoryfindByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the Notify GRU ObjectintgetNbHistoryToCleanByDate(Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)get nb histories who have a creation date before the tMinCreationDatevoidremoveByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove Notify GRU value by historyvoidremoveByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove Notify GRU value by task
-
-
-
Field Detail
-
BEAN_SERVICE
public static final String BEAN_SERVICE
The name of the bean of this service- See Also:
- Constant Field Values
-
-
Method Detail
-
create
@Transactional("workflow-notifygru.transactionManager") public void create(NotifyGruHistory notifyGru, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creation of an instance of Notify GRU- Specified by:
createin interfaceINotifyGruHistoryService- Parameters:
notifyGru- The instance of comment value which contains the informations to storeplugin- the plugin
-
removeByHistory
@Transactional("workflow-notifygru.transactionManager") public void removeByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove Notify GRU value by history- Specified by:
removeByHistoryin interfaceINotifyGruHistoryService- Parameters:
nIdHistory- the history keynIdTask- The task keyplugin- the Plugin
-
removeByTask
@Transactional("workflow-notifygru.transactionManager") public void removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove Notify GRU value by task- Specified by:
removeByTaskin interfaceINotifyGruHistoryService- Parameters:
nIdTask- The task keyplugin- the Plugin
-
findByPrimaryKey
public NotifyGruHistory findByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the Notify GRU Object- Specified by:
findByPrimaryKeyin interfaceINotifyGruHistoryService- Parameters:
nIdHistory- the history idnIdTask- the task idplugin- the plugin- Returns:
- the Config Object
-
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 interfaceINotifyGruHistoryService- 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 interfaceINotifyGruHistoryService- Parameters:
tMinCreationDate- the history creation dateplugin- the plugin- Returns:
- the nb nb histories who have a creation date before the tMinCreationDate
-
-