Class NotificationGruService
- java.lang.Object
-
- fr.paris.lutece.plugins.mydashboard.modules.grusupply.service.NotificationGruService
-
public class NotificationGruService extends Object
NotificationGruService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DemandDashboard>filterByDate(List<DemandDashboard> listDemandDashboards, LocalDate inputLocalDate)Filter demand by dateList<DemandDashboard>filterByKeyword(List<DemandDashboard> listDemandDashboards, String inputKeyword, List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> listDemandType)Filter demand by keywordstatic NotificationGruServicegetInstance()fr.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 strIndex, String strLimitResult, String strNotificationType, String strCategoryCode)Gets list of demand by list of statusList<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>getListDemandCategories()Get list of demand categoriesList<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>getListDemandType()Get list of demand typesfr.paris.lutece.plugins.grubusiness.business.web.rs.NotificationResultgetListNotification(String strIdDemand, String strIdDemandType, String strCustomerId, 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(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 strIndex, String strLimitResult, String strNotificationType, 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(String strIdDemand, String strIdDemandType, String strCustomerId, String strNotificationType)
Gets list of notification- Parameters:
strIdDemand-strIdDemandType-strIsRead-- Returns:
- list of notification
-
getListDemandType
public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> 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
-
-