Class DemandHome
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.business.DemandHome
-
public final class DemandHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Project objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>getByIds(java.util.List<java.lang.Integer> listIds)Finds all the demandsstatic fr.paris.lutece.plugins.grubusiness.business.demand.DemandgetDemandByDemandIdAndTypeIdAndCustomerId(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.String strCustomerId)Finds the demands associated to the specified demand id and demand type idstatic java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>getDemandIdCustomer(java.lang.String strCustomerId)Finds the demands associated to the specified customer idstatic java.util.List<java.lang.Integer>getIdsByCustomerIdAndDemandTypeId(java.lang.String strCustomerId, java.lang.String strNotificationType, java.lang.String strIdDemandType, java.lang.String strDirectionDateOrderBy)Load demand ids ordered by date notificationstatic java.util.List<java.lang.Integer>getIdsByStatus(java.lang.String strCustomerId, java.util.List<java.lang.String> listStatus, java.lang.String strNotificationType, java.lang.String strIdDemandType)Load demand ids by statusstatic voidreassignDemands(java.lang.String strOldCustomerId, java.lang.String strNewCustomerId)reassign demandsstatic java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand>searchByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)search demands by filterstatic java.util.List<java.lang.Integer>searchIdsByFilter(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 Detail
-
getByIds
public static java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> getByIds(java.util.List<java.lang.Integer> listIds)
Finds all the demands- Returns:
- all the demands. An empty collection is returned if no demands has been found.
-
searchIdsByFilter
public static java.util.List<java.lang.Integer> searchIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
search demands by filter- Parameters:
strKey-- Returns:
-
searchByFilter
public static java.util.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 java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> getDemandIdCustomer(java.lang.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(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.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 java.util.List<java.lang.Integer> getIdsByCustomerIdAndDemandTypeId(java.lang.String strCustomerId, java.lang.String strNotificationType, java.lang.String strIdDemandType, java.lang.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 java.util.List<java.lang.Integer> getIdsByStatus(java.lang.String strCustomerId, java.util.List<java.lang.String> listStatus, java.lang.String strNotificationType, java.lang.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
-
reassignDemands
public static void reassignDemands(java.lang.String strOldCustomerId, java.lang.String strNewCustomerId)reassign demands- Parameters:
strOldCustomerId-strNewCustomerId-
-
deleteByUid
public static void deleteByUid(int nUid)
Delete a demand by uid- Parameters:
nUid-
-
-