java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.grusupply.service.NotificationGruService

public class NotificationGruService extends Object
NotificationGruService
  • Method Details

    • 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 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

      public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getListDemandType()
      Get list of demand types
      Returns:
      list of demand type
    • getListDemandTypeByTagAndCategory

      public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getListDemandTypeByTagAndCategory(String tag, String category)
      Get list of demand types matching the given category, and also containing an entry in its metadata as such : - the given tag for key - "true" for value
      Parameters:
      tag - - the tag. if tag is blank, the result will be an empty list.
      category - - the category. if category is blank, no filter will be applied on the category.
      Returns:
      list of filtered demand type
    • getListUntaggedDemandTypeByCategory

      public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getListUntaggedDemandTypeByCategory(List<String> tags, String category)
      Get list of demand types matching the given category, and also NOT containing an entry in its metadata as such : - key contained in the given tags list - "true" for value
      Parameters:
      tags - - the tags that should NOT be present in the metadata.
      category - - the category. if category is blank, no filter will be applied on the category.
      Returns:
      list of filtered demand types
    • 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