Class CrmNotificationService


  • public class CrmNotificationService
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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
      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
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CrmNotificationService

        public CrmNotificationService()
    • 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 message
        ex - An exception
        Returns:
        The response