Class NotificationGruService
java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.grusupply.service.NotificationGruService
NotificationGruService
-
Method Summary
Modifier and TypeMethodDescriptionfilterByDate(List<DemandDashboard> listDemandDashboards, LocalDate inputLocalDate) Filter demand by datefilterByKeyword(List<DemandDashboard> listDemandDashboards, String inputKeyword, List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> listDemandType) Filter demand by keywordstatic NotificationGruServicefr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListDemand(String strCustomerId, String strIndex, String strLimitResult, String strNotificationType) Gets list of demandfr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResultgetListDemandByStatus(String strCustomerId, String strListStatus, String strIdsDemandType, String strIndex, String strLimitResult, String strNotificationType, String strCategoryCode) Gets list of demand by list of statusList<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>Get list of demand categoriesList<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>Get list of demand typesfr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResultgetListNotification(String strCustomerId, List<Map<String, String>> listDemandPairs, String strNotificationType) Get list of notification
-
Method Details
-
getInstance
- Returns:
- instance of NotificationGruService
-
getListDemand
public fr.paris.lutece.plugins.grubusiness.business.web.rs.DemandResult getListDemand(String strCustomerId, String strIndex, String strLimitResult, 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(String strCustomerId, String strListStatus, String strIdsDemandType, String strIndex, String strLimitResult, String strNotificationType, String strCategoryCode) Gets list of demand by list of status- Parameters:
strCustomerId-strListStatus-strIdsDemandType-strIndex-strLimitResult-strNotificationType-strCategoryCode-- Returns:
- list of demand by list of status
-
getListNotification
public fr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResult getListNotification(String strCustomerId, List<Map<String, String>> listDemandPairs, String strNotificationType) Get list of notification- Parameters:
strCustomerId-listDemandPairs- list of maps with keys "demandId" and "demandTypeId"strNotificationType-- Returns:
- list of notification
-
getListDemandType
Get list of demand types- Returns:
- list of demand type
-
getListDemandCategories
public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getListDemandCategories()Get list of demand categories- Returns:
- list of demand categories
-
filterByDate
public List<DemandDashboard> filterByDate(List<DemandDashboard> listDemandDashboards, LocalDate inputLocalDate) Filter demand by date- Returns:
- list of demand dashboard filtered by date
-
filterByKeyword
public List<DemandDashboard> filterByKeyword(List<DemandDashboard> listDemandDashboards, String inputKeyword, List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> listDemandType) Filter demand by keyword- Returns:
- list of demand dashboard filtered by keyword
-