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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cleanHistoryContentByDate(Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    clean all histories content who have a creation date before the tMinCreationDate
    void
    deleteByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    delete all notifygrus associated width the history specified in parameter
    void
    deleteByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    delete all notifygrus associated width the task specified in parameter
    int
    getNbHistoryToCleanByDate(Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    get nb histories who have a creation date before the tMinCreationDate
    void
    insert(NotifyGruHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    insert new history notifygru
    load(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load a record by primary key

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • NotifyGruHistoryDAO

      public NotifyGruHistoryDAO()
  • Method Details

    • insert

      public void insert(NotifyGruHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      insert new history notifygru
      Specified by:
      insert in interface INotifyGruHistoryDAO
      Parameters:
      history - history notifygru
      plugin - 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:
      load in interface INotifyGruHistoryDAO
      Parameters:
      nIdHistory - the action history id
      nIdTask - the task id
      plugin - 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:
      deleteByHistory in interface INotifyGruHistoryDAO
      Parameters:
      nIdHistory - the history id
      nIdTask - the task id
      plugin - 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:
      deleteByTask in interface INotifyGruHistoryDAO
      Parameters:
      nIdTask - the task id
      plugin - 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:
      cleanHistoryContentByDate in interface INotifyGruHistoryDAO
      Parameters:
      tMinCreationDate - the creation date minimal
      plugin - 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:
      getNbHistoryToCleanByDate in interface INotifyGruHistoryDAO
      Parameters:
      tMinCreationDate - the history creation date
      plugin - the plugin
      Returns:
      the nb nb histories who have a creation date before the tMinCreationDate