Class DemandHome
java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.DemandHome
This class provides instances management methods (create, find, ...) for Project objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteByUid(int nUid) Delete a demand by uidstatic fr.paris.lutece.plugins.grubusiness.business.demand.DemandfindByPrimaryKey(int nKey) Finds a demand with the specified id and type idstatic List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>Finds all the demandsstatic fr.paris.lutece.plugins.grubusiness.business.demand.DemandgetDemandByDemandIdAndTypeIdAndCustomerId(String strDemandId, String strDemandTypeId, String strCustomerId) Finds the demands associated to the specified demand id and demand type idstatic Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>getDemandIdCustomer(String strCustomerId) Finds the demands associated to the specified customer idgetIdsByCustomerIdAndDemandTypeId(String strCustomerId, String strNotificationType, String strIdDemandType, String strDirectionDateOrderBy) Load demand ids ordered by date notificationgetIdsByStatus(String strCustomerId, List<String> listStatus, String strNotificationType, String strIdDemandTypes) Load demand ids by statusstatic voidreassignDemands(String strOldCustomerId, String strNewCustomerId) reassign demandsstatic Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>searchByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter) search demands by filtersearchIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter) search demands by filterstatic fr.paris.lutece.plugins.grubusiness.business.demand.Demandupdate(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand) Updates a demand
-
Method Details
-
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, String strDirectionDateOrderBy) 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 strIdDemandTypes) Load demand ids by status- Parameters:
strCustomerId-listStatus-strNotificationType-strIdDemandTypes-- 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
-
reassignDemands
reassign demands- Parameters:
strOldCustomerId-strNewCustomerId-
-
deleteByUid
public static void deleteByUid(int nUid) Delete a demand by uid- Parameters:
nUid-
-