Class DemandHome


  • public final class DemandHome
    extends Object
    This class provides instances management methods (create, find, ...) for Project objects
    • Method Detail

      • getByIds

        public static List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> getByIds​(List<Integer> listIds)
        Finds all the demands
        Returns:
        all the demands. An empty collection is returned if no demands has been found.
      • searchIdsByFilter

        public static List<Integer> searchIdsByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
        search demands by filter
        Parameters:
        strKey -
        Returns:
      • searchByFilter

        public static Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> searchByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
        search demands by filter
        Parameters:
        strKey -
        Returns:
      • findByPrimaryKey

        public static fr.paris.lutece.plugins.grubusiness.business.demand.Demand findByPrimaryKey​(int nKey)
        Finds a demand with the specified id and type id
        Parameters:
        nKey - The project primary key
        Returns:
        an instance of Project
      • getDemandIdCustomer

        public static Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> getDemandIdCustomer​(String strCustomerId)
        Finds the demands associated to the specified customer id
        Returns:
        the list which contains the id of all the project objects
      • getDemandByDemandIdAndTypeIdAndCustomerId

        public static fr.paris.lutece.plugins.grubusiness.business.demand.Demand getDemandByDemandIdAndTypeIdAndCustomerId​(String strDemandId,
                                                                                                                           String strDemandTypeId,
                                                                                                                           String strCustomerId)
        Finds the demands associated to the specified demand id and demand type id
        Parameters:
        strDemandId -
        strDemandTypeId -
        Returns:
        the list which contains the id of all the project objects
      • getIdsByCustomerIdAndDemandTypeId

        public static List<Integer> getIdsByCustomerIdAndDemandTypeId​(String strCustomerId,
                                                                      String strNotificationType,
                                                                      String strIdDemandType)
        Load demand ids ordered by date notification
        Parameters:
        strCustomerId -
        strNotificationType -
        strIdDemandType - (Optional can be null)
        Returns:
        The list of demand ids
      • getIdsByStatus

        public static List<Integer> getIdsByStatus​(String strCustomerId,
                                                   List<String> listStatus,
                                                   String strNotificationType,
                                                   String strIdDemandType)
        Load demand ids by status
        Parameters:
        strCustomerId -
        listStatus -
        strNotificationType -
        strIdDemandType -
        Returns:
        The list of demand ids
      • update

        public static fr.paris.lutece.plugins.grubusiness.business.demand.Demand update​(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
        Updates a demand
        Parameters:
        demand - the demand to update
        Returns:
        the updated demand
      • deleteByUid

        public static void deleteByUid​(int nUid)
        Delete a demand by uid
        Parameters:
        nUid -