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 Summary
ConstructorsConstructorDescriptionNotificationStoreNotifierRestService(INotificationTransportProvider transportProvider) Constructor with INotificationTransportProvider in parametersNotificationStoreNotifierRestService(jakarta.enterprise.inject.Instance<INotificationTransportProvider> providers, String providerName) -
Method Summary
Modifier and TypeMethodDescriptiongetName()List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType>booleanfr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponseprocess(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponsesend(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) Send a Notification GRU can throw AppException in case of problem with the JSON requestvoidsetTransportProvider(INotificationTransportProvider transportProvider) setter of transportProvider parameter
-
Constructor Details
-
NotificationStoreNotifierRestService
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:
processin interfacefr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-
getName
- Specified by:
getNamein interfacefr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
-
getNotificationTypes
public List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> getNotificationTypes()- Specified by:
getNotificationTypesin interfacefr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
-
setTransportProvider
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:
isEnabledin interfacefr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
-