Class NotificationStoreNotifierRestService

java.lang.Object
fr.paris.lutece.plugins.librarynotifygru.services.NotificationStoreNotifierRestService
All Implemented Interfaces:
fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider

@ApplicationScoped public class NotificationStoreNotifierRestService extends Object implements fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
  • Constructor Details

    • NotificationStoreNotifierRestService

      public NotificationStoreNotifierRestService(INotificationTransportProvider transportProvider)
      Constructor with INotificationTransportProvider in parameters
      Parameters:
      transportProvider - INotificationTransportProvider
    • NotificationStoreNotifierRestService

      @Inject public NotificationStoreNotifierRestService(jakarta.enterprise.inject.Instance<INotificationTransportProvider> providers, String providerName)
  • Method Details

    • process

      public fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponse process(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Specified by:
      process in interface fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getName

      public String getName()
      Specified by:
      getName in interface fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
    • getNotificationTypes

      public List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> getNotificationTypes()
      Specified by:
      getNotificationTypes in interface fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
    • setTransportProvider

      public void setTransportProvider(INotificationTransportProvider transportProvider)
      setter of transportProvider parameter
      Parameters:
      transportProvider - INotificationTransportProvider
    • send

      public fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponse send(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Send a Notification GRU can throw AppException in case of problem with the JSON request
      Parameters:
      notification - the notification
      Returns:
      the notifyGruResponse
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider