java.lang.Object
fr.paris.lutece.plugins.unittree.modules.notification.business.NotificationDAO
All Implemented Interfaces:
INotificationDAO

@ApplicationScoped public class NotificationDAO extends Object implements INotificationDAO
  • Field Summary

    Fields inherited from interface fr.paris.lutece.plugins.unittree.modules.notification.business.INotificationDAO

    BEAN_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    loadByIdUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    retrieve Notification configuration for a given unit
    void
    mergeConfiguration(Notification notification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    update or create a notification configuration
    void
    removeForUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    remove Notification configuration for a given unit

    Methods inherited from class java.lang.Object

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

    • NotificationDAO

      public NotificationDAO()
  • Method Details

    • loadByIdUnit

      public Notification loadByIdUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      retrieve Notification configuration for a given unit
      Specified by:
      loadByIdUnit in interface INotificationDAO
      Parameters:
      nIdUnit - id of the unit
      plugin - the plugin
      Returns:
      Notification the Notification configuration
    • removeForUnit

      public void removeForUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      remove Notification configuration for a given unit
      Specified by:
      removeForUnit in interface INotificationDAO
      Parameters:
      nIdUnit - id of the unit
      plugin - the plugin
    • mergeConfiguration

      public void mergeConfiguration(Notification notification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      update or create a notification configuration
      Specified by:
      mergeConfiguration in interface INotificationDAO
      Parameters:
      notification - the notification confifuration
      plugin - the plugin