Class NotificationStoreService
- java.lang.Object
-
- fr.paris.lutece.portal.service.cache.AbstractCacheableService
-
- fr.paris.lutece.plugins.notificationstore.v1.web.service.NotificationStoreService
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService,fr.paris.lutece.portal.service.util.LuteceService,java.lang.Cloneable,net.sf.ehcache.event.CacheEventListener
public class NotificationStoreService extends fr.paris.lutece.portal.service.cache.AbstractCacheableServiceNotificationStoreService
-
-
Constructor Summary
Constructors Constructor Description NotificationStoreService()Simple ConstructorNotificationStoreService(INotificationStoreTransportProvider transportProvider)Constructor with IIdentityTransportProvider in parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.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 statusvoiddeleteCategory(int nCategoryId)Delete categoryvoiddeleteDemandType(int nDemandTypeId)Delete demand typejava.lang.StringdeleteNotificationByCuid(java.lang.String strCustomerId)List of notification by demand id, customer id and type demand idvoiddeleteStatus(int nStatusId)Delete statusjava.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>getCategoriesList()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 idfr.paris.lutece.plugins.grubusiness.business.demand.DemandTypegetDemandType(java.lang.String strTypeId)get demand type data.java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>getDemandTypes()Gets list of demand typesfr.paris.lutece.util.ReferenceListgetGenericStatusList()Gets list of generic statusfr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListDemand(java.lang.String strCustomerId, java.lang.String strIdDemandType, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType)List of demand by customer id, type demand id and indexfr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListDemand(java.lang.String strCustomerId, java.lang.String strIdDemandType, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType, java.lang.String strDirectionDateOrderBy)List of demand by customer id, type demand id and indexfr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResultgetListNotification(java.lang.String strCustomerId, java.lang.String strIdDemand, java.lang.String strIdDemandType, java.lang.String strNotificationType)List of notification by demand id, customer id and type demand idfr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListOfDemandByStatus(java.lang.String strCustomerId, java.lang.String strListStatus, java.lang.String strIdDemandType, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType, java.lang.String strCategoryCode)List of demand by list of status, customer id, type demand id and indexjava.lang.StringgetName()get namefr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatusgetStatus(int nStatusId)Get status by idjava.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>getStatusList()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(java.lang.String oldCustomerId, java.lang.String newCustomerId)Re-assign notifications to consolidated identity after a mergevoidsetTransportProvider(INotificationStoreTransportProvider transportProvider)setter of transportProvider parameter-
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
-
-
-
-
Constructor Detail
-
NotificationStoreService
public NotificationStoreService()
Simple Constructor
-
NotificationStoreService
public NotificationStoreService(INotificationStoreTransportProvider transportProvider)
Constructor with IIdentityTransportProvider in parameters- Parameters:
transportProvider- INotificationStoreTransportProvider
-
-
Method Detail
-
setTransportProvider
public void setTransportProvider(INotificationStoreTransportProvider transportProvider)
setter of transportProvider parameter- Parameters:
transportProvider- INotificationStoreTransportProvider
-
getListDemand
public fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult getListDemand(java.lang.String strCustomerId, java.lang.String strIdDemandType, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationExceptionList of demand by customer id, type demand id and index- Parameters:
strCustomerId-strIdDemandType-strIndex- (Not required)strLimitResult-strNotificationType- (Not required)- Returns:
- list of demand
- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-
getListDemand
public fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult getListDemand(java.lang.String strCustomerId, java.lang.String strIdDemandType, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType, java.lang.String strDirectionDateOrderBy) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationExceptionList of demand by customer id, type demand id and index- Parameters:
strCustomerId-strIdDemandType-strIndex- (Not required)strLimitResult-strNotificationType- (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(java.lang.String strCustomerId, java.lang.String strListStatus, java.lang.String strIdDemandType, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType, java.lang.String strCategoryCode) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationExceptionList of demand by list of status, customer id, type demand id and index- Parameters:
strCustomerId-strListStatus- (separated by , )strIdDemandType-strIndex- (Not required)strLimitResult-strNotificationType- (Not required)strCategoryCode-- 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(java.lang.String strCustomerId, java.lang.String strIdDemand, java.lang.String strIdDemandType, java.lang.String strNotificationType) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationExceptionList of notification by demand id, customer id and type demand id- Parameters:
strCustomerId-strIdDemand-strIdDemandType-strNotificationType-- Returns:
- list of notification
- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-
deleteNotificationByCuid
public java.lang.String deleteNotificationByCuid(java.lang.String strCustomerId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationExceptionList of notification by demand id, customer id and type demand id- Parameters:
strCustomerId-strIdDemand-strIdDemandType-- Returns:
- list of notification
- 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.NotificationExceptionGet category by id- Parameters:
nCategoryId-- 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.NotificationExceptionCreate category- Parameters:
category-- 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.NotificationExceptionModify category- Parameters:
category-- 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.NotificationExceptionDelete category- Parameters:
nCategoryId-- 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.NotificationExceptionGet demand type by id- Parameters:
nDemandTypeId-- 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.NotificationExceptionCreate demand type- Parameters:
demand- type- 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.NotificationExceptionModify demand type- Parameters:
demand- type- 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.NotificationExceptionDelete demand type- Parameters:
nDemandTypeId-- 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.NotificationExceptionGet status by id- Parameters:
nStatusId-- 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.NotificationExceptionCreate status- Parameters:
status-- 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.NotificationExceptionModify status- Parameters:
status-- 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.NotificationExceptionDelete status- Parameters:
nStatusId-- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-
reassignNotifications
public void reassignNotifications(java.lang.String oldCustomerId, java.lang.String newCustomerId) throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationExceptionRe-assign notifications to consolidated identity after a merge- Parameters:
oldCustomerId-newCustomerId-- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-
getName
public java.lang.String getName()
get name- Returns:
- the name
-
getDemandType
public fr.paris.lutece.plugins.grubusiness.business.demand.DemandType getDemandType(java.lang.String strTypeId)
get demand type data.- Parameters:
strDemandTypeId-- Returns:
- the demand type
-
getCategoriesList
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getCategoriesList()
Gets list of categories- Returns:
- list of categories
-
getStatusList
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> getStatusList() throws fr.paris.lutece.plugins.grubusiness.service.notification.NotificationExceptionGets list of status- 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.NotificationExceptionGets list of generic status- Returns:
- list of generic status
- Throws:
fr.paris.lutece.plugins.grubusiness.service.notification.NotificationException
-
getDemandTypes
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypes()
Gets list of demand types- Returns:
- list of demand types
-
-