Class NotificationStoreNotifierRestService
- java.lang.Object
-
- fr.paris.lutece.plugins.librarynotifygru.services.NotificationStoreNotifierRestService
-
- All Implemented Interfaces:
fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
public class NotificationStoreNotifierRestService extends java.lang.Object implements fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
-
-
Constructor Summary
Constructors Constructor Description NotificationStoreNotifierRestService(INotificationTransportProvider transportProvider)Constructor with INotificationTransportProvider in parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType>getNotificationTypes()fr.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 Detail
-
NotificationStoreNotifierRestService
public NotificationStoreNotifierRestService(INotificationTransportProvider transportProvider)
Constructor with INotificationTransportProvider in parameters- Parameters:
transportProvider- INotificationTransportProvider
-
-
Method Detail
-
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
public java.lang.String getName()
- Specified by:
getNamein interfacefr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider
-
getNotificationTypes
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> getNotificationTypes()
- Specified by:
getNotificationTypesin interfacefr.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.NotificationExceptionSend 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
-
-