|
||||||||||
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 |
create(Demand demand)
Create a new demand |
java.util.List<Demand> |
findAll()
Find all demands |
java.util.List<Demand> |
findByFilter(DemandFilter dFilter)
Find by filter |
java.util.Map<java.lang.String,java.util.List<Demand>> |
findByIdCRMUser(int nIdCRMUser,
java.util.Locale locale)
Find the demands given an user crm id |
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)
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
DemandService
public Demand findByPrimaryKey(int nIdDemand)
nIdDemand
- the id demand
Demand
public int create(Demand demand)
demand
- the demand
public void update(Demand demand)
demand
- the demandpublic void remove(int nIdDemand)
nIdDemand
- the id demandpublic void removeWithItsResource(int nIdDemand)
nIdDemand
- the id demandpublic void removeByIdDemandType(int nIdDemandType)
nIdDemandType
- the id demand typepublic java.util.List<Demand> findAll()
Demand
public java.util.List<Demand> findByFilter(DemandFilter dFilter)
dFilter
- the filter
Demand
public java.util.Map<java.lang.String,java.util.List<Demand>> findByIdCRMUser(int nIdCRMUser, java.util.Locale locale)
nIdCRMUser
- the user crm idlocale
- Locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |