Class CrmNotificationService
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.modules.notifygru.service.CrmNotificationService
-
public class CrmNotificationService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CrmNotificationService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponseerror(java.lang.String strMessage, javax.ws.rs.core.Response.Status status, java.lang.Throwable ex)Build an error responsestatic fr.paris.lutece.plugins.crm.business.notification.NotificationgetCrmNotification(fr.paris.lutece.plugins.grubusiness.business.notification.Notification gruNotification)get CRM notification from GRU notificationstatic fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponsestore(fr.paris.lutece.plugins.grubusiness.business.notification.Notification gruNotification, java.util.Locale locale)Stores a notification and the associated demand
-
-
-
Method Detail
-
store
public static fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponse store(fr.paris.lutece.plugins.grubusiness.business.notification.Notification gruNotification, java.util.Locale locale)Stores a notification and the associated demand- Parameters:
notification- the notification to store
-
getCrmNotification
public static fr.paris.lutece.plugins.crm.business.notification.Notification getCrmNotification(fr.paris.lutece.plugins.grubusiness.business.notification.Notification gruNotification)
get CRM notification from GRU notification- Parameters:
gruNotification-- Returns:
- the notification
-
error
public static fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponse error(java.lang.String strMessage, javax.ws.rs.core.Response.Status status, java.lang.Throwable ex)Build an error response- Parameters:
strMessage- The error messageex- An exception- Returns:
- The response
-
-