Class NotificationStoreTransportRest

java.lang.Object
fr.paris.lutece.plugins.notificationstore.v1.web.rs.service.AbstractTransportRest
fr.paris.lutece.plugins.notificationstore.v1.web.rs.service.NotificationStoreTransportRest
All Implemented Interfaces:
INotificationStoreTransportProvider

public class NotificationStoreTransportRest extends AbstractTransportRest implements INotificationStoreTransportProvider
NotificationStoreTransportRest
  • Constructor Summary

    Constructors
    Constructor
    Description
    Simple Constructor
    Constructor with IHttpTransportProvider parameter
  • Method Summary

    Modifier and Type
    Method
    Description
    fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory
    createCategory(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory category)
    Create category
    fr.paris.lutece.plugins.grubusiness.business.demand.DemandType
    createDemandType(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType)
    Create demand type
    fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus
    createStatus(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status)
    Create status
    void
    Deleting all demands from a user by their customer id Also removing elements that are linked to user demands (Notification, NotificationContent, NotificationEvent, File..)
    void
    deleteCategory(int nCategoryId)
    Delete category
    void
    deleteDemandType(int nDemandTypeId)
    Delete demand type
    delete all notifications of a customer
    void
    deleteStatus(int nStatusId)
    Delete status
    List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>
    Gets list of categories
    fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory
    getCategory(int nCategoryId)
    Get category by id
    fr.paris.lutece.plugins.grubusiness.business.demand.DemandType
    getDemandType(int nDemandTypeId)
    Get demand type by id
    List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>
    Gets list of demand types
    fr.paris.lutece.util.ReferenceList
    Gets list of generic status
    fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult
    getListDemand(String strCustomerId, String strIdDemandType, String strIndex, String strLimitResult, String strNotificationType, String strDirectionDateOrderBy)
    List of demand by customer id, type demand id and index
    fr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResult
    getListNotification(String strCustomerId, String strIdDemand, String strIdDemandType, String strNotificationType)
    List of notification by demand id, customer id and type demand id
    fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult
    getListOfDemandByStatus(String strCustomerId, String strListStatus, String strIdDemandType, String strIndex, String strLimitResult, String strNotificationType, String strCategoryCode)
    List of demand by list of status, customer id, type demand id and index
    fr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResult
    getNotificationsByDemandList(String strCustomerId, List<Map<String,String>> listDemandPairs, String strNotificationType)
    List of notifications for a list of (demandId, demandTypeId) pairs and a customer id
    fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus
    getStatus(int nStatusId)
    Get status by id
    List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>
    Gets list of status
    fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory
    modifyCategory(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory category)
    Modify category
    fr.paris.lutece.plugins.grubusiness.business.demand.DemandType
    modifyDemandType(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType)
    Modify demand type
    fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus
    modifyStatus(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status)
    Modify status
    void
    reassignNotifications(String oldCustomerId, String newCustomerId)
    Re-assign notifications to consolidated identity after a merge

    Methods inherited from class fr.paris.lutece.plugins.notificationstore.v1.web.rs.service.AbstractTransportRest

    setHttpTransport

    Methods inherited from class java.lang.Object

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

    • NotificationStoreTransportRest

      public NotificationStoreTransportRest()
      Simple Constructor
    • NotificationStoreTransportRest

      public NotificationStoreTransportRest(IHttpTransportProvider httpTransport)
      Constructor with IHttpTransportProvider parameter
      Parameters:
      httpTransport - the provider to use
  • Method Details

    • getListDemand

      public fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult getListDemand(String strCustomerId, String strIdDemandType, String strIndex, String strLimitResult, String strNotificationType, String strDirectionDateOrderBy) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      List of demand by customer id, type demand id and index
      Specified by:
      getListDemand in interface INotificationStoreTransportProvider
      strIndex - (Not required)
      Returns:
      list of demand
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getListOfDemandByStatus

      public fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult getListOfDemandByStatus(String strCustomerId, String strListStatus, String strIdDemandType, String strIndex, String strLimitResult, String strNotificationType, String strCategoryCode) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      List of demand by list of status, customer id, type demand id and index
      Specified by:
      getListOfDemandByStatus in interface INotificationStoreTransportProvider
      strListStatus - (separated by , )
      strIndex - (Not required)
      Returns:
      list of demand
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getListNotification

      public fr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResult getListNotification(String strCustomerId, String strIdDemand, String strIdDemandType, String strNotificationType) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      List of notification by demand id, customer id and type demand id
      Specified by:
      getListNotification in interface INotificationStoreTransportProvider
      Returns:
      list of notification
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getNotificationsByDemandList

      public fr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResult getNotificationsByDemandList(String strCustomerId, List<Map<String,String>> listDemandPairs, String strNotificationType) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      List of notifications for a list of (demandId, demandTypeId) pairs and a customer id
      Specified by:
      getNotificationsByDemandList in interface INotificationStoreTransportProvider
      listDemandPairs - list of maps with keys "demandId" and "demandTypeId"
      strNotificationType - (Not required)
      Returns:
      list of notifications
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • deleteNotificationByCuid

      public String deleteNotificationByCuid(String strCustomerId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      delete all notifications of a customer
      Specified by:
      deleteNotificationByCuid in interface INotificationStoreTransportProvider
      Returns:
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getCategoriesList

      public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getCategoriesList() throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Gets list of categories
      Specified by:
      getCategoriesList in interface INotificationStoreTransportProvider
      Returns:
      list of categories
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getCategory

      public fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory getCategory(int nCategoryId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Get category by id
      Specified by:
      getCategory in interface INotificationStoreTransportProvider
      Returns:
      the category
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • createCategory

      public fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory createCategory(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory category) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Create category
      Specified by:
      createCategory in interface INotificationStoreTransportProvider
      Returns:
      the category created
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • modifyCategory

      public fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory modifyCategory(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory category) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Modify category
      Specified by:
      modifyCategory in interface INotificationStoreTransportProvider
      Returns:
      the category modified
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • deleteCategory

      public void deleteCategory(int nCategoryId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Delete category
      Specified by:
      deleteCategory in interface INotificationStoreTransportProvider
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getStatusList

      public List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> getStatusList() throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Gets list of status
      Specified by:
      getStatusList in interface INotificationStoreTransportProvider
      Returns:
      list of status
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getGenericStatusList

      public fr.paris.lutece.util.ReferenceList getGenericStatusList() throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Gets list of generic status
      Specified by:
      getGenericStatusList in interface INotificationStoreTransportProvider
      Returns:
      list of generic status
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getStatus

      public fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus getStatus(int nStatusId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Get status by id
      Specified by:
      getStatus in interface INotificationStoreTransportProvider
      Returns:
      the status
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • createStatus

      public fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus createStatus(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Create status
      Specified by:
      createStatus in interface INotificationStoreTransportProvider
      Returns:
      the status created
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • modifyStatus

      public fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus modifyStatus(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Modify status
      Specified by:
      modifyStatus in interface INotificationStoreTransportProvider
      Returns:
      the status modified
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • deleteStatus

      public void deleteStatus(int nStatusId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Delete status
      Specified by:
      deleteStatus in interface INotificationStoreTransportProvider
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getDemandTypes

      public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypes() throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Gets list of demand types
      Specified by:
      getDemandTypes in interface INotificationStoreTransportProvider
      Returns:
      list of demand types
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • getDemandType

      public fr.paris.lutece.plugins.grubusiness.business.demand.DemandType getDemandType(int nDemandTypeId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Get demand type by id
      Specified by:
      getDemandType in interface INotificationStoreTransportProvider
      Returns:
      the demand type
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • createDemandType

      public fr.paris.lutece.plugins.grubusiness.business.demand.DemandType createDemandType(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Create demand type
      Specified by:
      createDemandType in interface INotificationStoreTransportProvider
      Returns:
      the demand type created
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • modifyDemandType

      public fr.paris.lutece.plugins.grubusiness.business.demand.DemandType modifyDemandType(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Modify demand type
      Specified by:
      modifyDemandType in interface INotificationStoreTransportProvider
      Returns:
      the demand type modified
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • deleteDemandType

      public void deleteDemandType(int nDemandTypeId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Delete demand type
      Specified by:
      deleteDemandType in interface INotificationStoreTransportProvider
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • deleteAllDemandsAndNotifications

      public void deleteAllDemandsAndNotifications(String strCustomerId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Deleting all demands from a user by their customer id Also removing elements that are linked to user demands (Notification, NotificationContent, NotificationEvent, File..)
      Specified by:
      deleteAllDemandsAndNotifications in interface INotificationStoreTransportProvider
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
    • reassignNotifications

      public void reassignNotifications(String oldCustomerId, String newCustomerId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
      Description copied from interface: INotificationStoreTransportProvider
      Re-assign notifications to consolidated identity after a merge
      Specified by:
      reassignNotifications in interface INotificationStoreTransportProvider
      Throws:
      fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException