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
ConstructorsConstructorDescriptionSimple ConstructorNotificationStoreTransportRest(IHttpTransportProvider httpTransport) Constructor with IHttpTransportProvider parameter -
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.plugins.grubusiness.business.demand.DemandCategorycreateCategory(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory category) Create categoryfr.paris.lutece.plugins.grubusiness.business.demand.DemandTypecreateDemandType(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType) Create demand typefr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatuscreateStatus(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status) Create statusvoiddeleteAllDemandsAndNotifications(String strCustomerId) Deleting all demands from a user by their customer id Also removing elements that are linked to user demands (Notification, NotificationContent, NotificationEvent, File..)voiddeleteCategory(int nCategoryId) Delete categoryvoiddeleteDemandType(int nDemandTypeId) Delete demand typedeleteNotificationByCuid(String strCustomerId) delete all notifications of a customervoiddeleteStatus(int nStatusId) Delete statusList<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>Gets list of categoriesfr.paris.lutece.plugins.grubusiness.business.demand.DemandCategorygetCategory(int nCategoryId) Get category by idfr.paris.lutece.plugins.grubusiness.business.demand.DemandTypegetDemandType(int nDemandTypeId) Get demand type by idList<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>Gets list of demand typesfr.paris.lutece.util.ReferenceListGets list of generic statusfr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListDemand(String strCustomerId, String strIdDemandType, String strIndex, String strLimitResult, String strNotificationType, String strDirectionDateOrderBy) List of demand by customer id, type demand id and indexfr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResultgetListNotification(String strCustomerId, String strIdDemand, String strIdDemandType, String strNotificationType) List of notification by demand id, customer id and type demand idfr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListOfDemandByStatus(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 indexfr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatusgetStatus(int nStatusId) Get status by idList<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>Gets list of statusfr.paris.lutece.plugins.grubusiness.business.demand.DemandCategorymodifyCategory(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory category) Modify categoryfr.paris.lutece.plugins.grubusiness.business.demand.DemandTypemodifyDemandType(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType) Modify demand typefr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatusmodifyStatus(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status) Modify statusvoidreassignNotifications(String oldCustomerId, String newCustomerId) Re-assign notifications to consolidated identity after a mergeMethods inherited from class fr.paris.lutece.plugins.notificationstore.v1.web.rs.service.AbstractTransportRest
setHttpTransport
-
Constructor Details
-
NotificationStoreTransportRest
public NotificationStoreTransportRest()Simple Constructor -
NotificationStoreTransportRest
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:INotificationStoreTransportProviderList of demand by customer id, type demand id and index- Specified by:
getListDemandin interfaceINotificationStoreTransportProviderstrIndex- (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:INotificationStoreTransportProviderList of demand by list of status, customer id, type demand id and index- Specified by:
getListOfDemandByStatusin interfaceINotificationStoreTransportProviderstrListStatus- (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:INotificationStoreTransportProviderList of notification by demand id, customer id and type demand id- Specified by:
getListNotificationin interfaceINotificationStoreTransportProvider- Returns:
- list of notification
- 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:INotificationStoreTransportProviderdelete all notifications of a customer- Specified by:
deleteNotificationByCuidin interfaceINotificationStoreTransportProvider- 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.NotificationExceptionDescription copied from interface:INotificationStoreTransportProviderGets list of categories- Specified by:
getCategoriesListin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderGet category by id- Specified by:
getCategoryin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderCreate category- Specified by:
createCategoryin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderModify category- Specified by:
modifyCategoryin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderDelete category- Specified by:
deleteCategoryin interfaceINotificationStoreTransportProvider- 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.NotificationExceptionDescription copied from interface:INotificationStoreTransportProviderGets list of status- Specified by:
getStatusListin interfaceINotificationStoreTransportProvider- 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.NotificationExceptionDescription copied from interface:INotificationStoreTransportProviderGets list of generic status- Specified by:
getGenericStatusListin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderGet status by id- Specified by:
getStatusin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderCreate status- Specified by:
createStatusin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderModify status- Specified by:
modifyStatusin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderDelete status- Specified by:
deleteStatusin interfaceINotificationStoreTransportProvider- 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.NotificationExceptionDescription copied from interface:INotificationStoreTransportProviderGets list of demand types- Specified by:
getDemandTypesin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderGet demand type by id- Specified by:
getDemandTypein interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderCreate demand type- Specified by:
createDemandTypein interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderModify demand type- Specified by:
modifyDemandTypein interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderDelete demand type- Specified by:
deleteDemandTypein interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderDeleting all demands from a user by their customer id Also removing elements that are linked to user demands (Notification, NotificationContent, NotificationEvent, File..)- Specified by:
deleteAllDemandsAndNotificationsin interfaceINotificationStoreTransportProvider- 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:INotificationStoreTransportProviderRe-assign notifications to consolidated identity after a merge- Specified by:
reassignNotificationsin interfaceINotificationStoreTransportProvider- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-