|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.crm.service.demand.DemandService
public class DemandService
DemandService
| Constructor Summary | |
|---|---|
protected |
DemandService()
Constructor |
| Method Summary | |
|---|---|
int |
countByFilter(DemandFilter dFilter)
Count results by filter |
int |
create(Demand demand)
Create a new demand |
List<Demand> |
findAll()
Find all demands |
List<Demand> |
findByFilter(DemandFilter dFilter)
Find by filter |
Map<String,List<Demand>> |
findByFilterMap(DemandFilter dFilter,
Locale locale,
PaginationFilterSortManager paginationFilterSortManager)
Find by filter with map |
List<Demand> |
findByFilterWithPagination(DemandFilter dFilter,
IPaginationProperties paginationProperties)
Find by filter with pagination |
Map<String,List<Demand>> |
findByIdCRMUser(int nIdCRMUser,
Locale locale,
int nIdStatusToSort,
List<DemandSort> listDemandSort)
Find the demands given an user crm id, results can be sorted |
Demand |
findByPrimaryKey(int nIdDemand)
Find a demand by its primary key |
static DemandService |
getService()
Get an instance of DemandService |
void |
remove(int nIdDemand)
Remove a demand |
void |
removeByIdDemandType(int nIdDemandType)
Remove the demands given an id demand type |
void |
removeWithItsResource(int nIdDemand,
boolean bByDaemon)
Remove a demand and its resource |
void |
update(Demand demand)
Update a demand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DemandService()
| Method Detail |
|---|
public static DemandService getService()
DemandService
DemandServicepublic Demand findByPrimaryKey(int nIdDemand)
nIdDemand - the id demand
Demandpublic int create(Demand demand)
demand - the demand
public void update(Demand demand)
demand - the demandpublic void remove(int nIdDemand)
nIdDemand - the id demand
public void removeWithItsResource(int nIdDemand,
boolean bByDaemon)
nIdDemand - the id demandpublic void removeByIdDemandType(int nIdDemandType)
nIdDemandType - the id demand typepublic List<Demand> findAll()
Demandpublic List<Demand> findByFilter(DemandFilter dFilter)
dFilter - the filter
Demand
public Map<String,List<Demand>> findByIdCRMUser(int nIdCRMUser,
Locale locale,
int nIdStatusToSort,
List<DemandSort> listDemandSort)
nIdCRMUser - the user crm idlocale - LocalenIdStatusToSort - the id status of demands that will be sortedlistDemandSort - the sorts to apply
public Map<String,List<Demand>> findByFilterMap(DemandFilter dFilter,
Locale locale,
PaginationFilterSortManager paginationFilterSortManager)
nIdCRMUser - the user crm idlocale - Locale
public List<Demand> findByFilterWithPagination(DemandFilter dFilter,
IPaginationProperties paginationProperties)
dFilter - the filterpaginationProperties - the pagination properties
Demandpublic int countByFilter(DemandFilter dFilter)
dFilter - the filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||