Class NotificationGruService
- java.lang.Object
-
- fr.paris.lutece.plugins.mydashboard.modules.grusupply.service.NotificationGruService
-
public class NotificationGruService extends java.lang.ObjectNotificationGruService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DemandDashboard>filterByDate(java.util.List<DemandDashboard> listDemandDashboards, java.time.LocalDate inputLocalDate)Filter demand by datejava.util.List<DemandDashboard>filterByKeyword(java.util.List<DemandDashboard> listDemandDashboards, java.lang.String inputKeyword, java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> listDemandType)Filter demand by keywordstatic NotificationGruServicegetInstance()fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListDemand(java.lang.String strCustomerId, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType)Gets list of demandfr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListDemandByStatus(java.lang.String strCustomerId, java.lang.String strListStatus, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType, java.lang.String strCategoryCode)Gets list of demand by list of statusjava.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>getListDemandCategories()Get list of demand categoriesjava.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>getListDemandType()Get list of demand typesfr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResultgetListNotification(java.lang.String strIdDemand, java.lang.String strIdDemandType, java.lang.String strCustomerId, java.lang.String strNotificationType)Gets list of notification
-
-
-
Method Detail
-
getInstance
public static NotificationGruService getInstance()
- Returns:
- instance of NotificationGruService
-
getListDemand
public fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult getListDemand(java.lang.String strCustomerId, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType)Gets list of demand- Parameters:
strCustomerId-strIndex-strLimitResult-strNotificationType-- Returns:
- list of demand
-
getListDemandByStatus
public fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult getListDemandByStatus(java.lang.String strCustomerId, java.lang.String strListStatus, java.lang.String strIndex, java.lang.String strLimitResult, java.lang.String strNotificationType, java.lang.String strCategoryCode)Gets list of demand by list of status- Parameters:
strCustomerId-strListStatus-strIndex-strLimitResult-strNotificationType-strCategoryCode-- Returns:
- list of demand by list of status
-
getListNotification
public fr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResult getListNotification(java.lang.String strIdDemand, java.lang.String strIdDemandType, java.lang.String strCustomerId, java.lang.String strNotificationType)Gets list of notification- Parameters:
strIdDemand-strIdDemandType-strIsRead-- Returns:
- list of notification
-
getListDemandType
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getListDemandType()
Get list of demand types- Returns:
- list of demand type
-
getListDemandCategories
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getListDemandCategories()
Get list of demand categories- Returns:
- list of demand categories
-
filterByDate
public java.util.List<DemandDashboard> filterByDate(java.util.List<DemandDashboard> listDemandDashboards, java.time.LocalDate inputLocalDate)
Filter demand by date- Returns:
- list of demand dashboard filtered by date
-
filterByKeyword
public java.util.List<DemandDashboard> filterByKeyword(java.util.List<DemandDashboard> listDemandDashboards, java.lang.String inputKeyword, java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> listDemandType)
Filter demand by keyword- Returns:
- list of demand dashboard filtered by keyword
-
-