Class NotifyGruHistoryService

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN_SERVICE
      The name of the bean of this service
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanHistoryContentByDate​(java.sql.Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      clean all histories content who have a creation date before the tMinCreationDate
      void create​(NotifyGruHistory notifyGru, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Creation of an instance of Notify GRU
      NotifyGruHistory findByPrimaryKey​(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the Notify GRU Object
      int getNbHistoryToCleanByDate​(java.sql.Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      get nb histories who have a creation date before the tMinCreationDate
      void removeByHistory​(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove Notify GRU value by history
      void removeByTask​(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove Notify GRU value by task
      • Methods inherited from class java.lang.Object

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

      • BEAN_SERVICE

        public static final java.lang.String BEAN_SERVICE
        The name of the bean of this service
        See Also:
        Constant Field Values
    • Constructor Detail

      • NotifyGruHistoryService

        public NotifyGruHistoryService()
    • 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:
        create in interface INotifyGruHistoryService
        Parameters:
        notifyGru - The instance of comment value which contains the informations to store
        plugin - 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:
        removeByHistory in interface INotifyGruHistoryService
        Parameters:
        nIdHistory - the history key
        nIdTask - The task key
        plugin - 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:
        removeByTask in interface INotifyGruHistoryService
        Parameters:
        nIdTask - The task key
        plugin - 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:
        findByPrimaryKey in interface INotifyGruHistoryService
        Parameters:
        nIdHistory - the history id
        nIdTask - the task id
        plugin - the plugin
        Returns:
        the Config Object
      • cleanHistoryContentByDate

        public void cleanHistoryContentByDate​(java.sql.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 INotifyGruHistoryService
        Parameters:
        tMinCreationDate - the creation date minimal
        plugin - the plugin
      • getNbHistoryToCleanByDate

        public int getNbHistoryToCleanByDate​(java.sql.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 INotifyGruHistoryService
        Parameters:
        tMinCreationDate - the history creation date
        plugin - the plugin
        Returns:
        the nb nb histories who have a creation date before the tMinCreationDate