Class NotificationService
java.lang.Object
fr.paris.lutece.plugins.librarynotifygru.services.NotificationService
NotificationService service
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationService(jakarta.enterprise.inject.Instance<fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider> notifiersInstance) -
Method Summary
Modifier and TypeMethodDescriptionList<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType>get NotificationTypes list from Notifiersvoidinit()fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponsesend(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) call the registred notifiers
-
Constructor Details
-
NotificationService
public NotificationService() -
NotificationService
@Inject public NotificationService(jakarta.enterprise.inject.Instance<fr.paris.lutece.plugins.grubusiness.service.notification.INotifierServiceProvider> notifiersInstance)
-
-
Method Details
-
init
@PostConstruct public void init() -
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 call the registred notifiers- Parameters:
notification-- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-
getNotificationTypesFromNotifiers
public List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> getNotificationTypesFromNotifiers()get NotificationTypes list from Notifiers- Returns:
- the list
-