|
||||||||||
| 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.DemandTypeService
public class DemandTypeService
DemandTypeService
| Constructor Summary | |
|---|---|
protected |
DemandTypeService()
Constructor |
| Method Summary | |
|---|---|
boolean |
checkRoleForDemandType(DemandType demandType,
javax.servlet.http.HttpServletRequest request)
Check if the user has the role in order to view the demand type |
int |
create(DemandType demandType)
Create a new demand type |
void |
doReorderDemandTypes()
Reorder all demand types |
void |
doReorderDemandTypesGreaterOrder(int nCurrentOrder,
int nOldOrder)
Reorder the demand types that are greater or equal to the nCurrentOrder. |
void |
doReorderDemandTypesLowerOrder(int nCurrentOrder,
int nOldOrder)
Reorder the demand types that have a lower order than the nCurrentOrder . |
List<DemandType> |
findAll()
Find all demand types |
List<DemandType> |
findByFilter(DemandTypeFilter dtFilter)
Find the demand types given a filter |
DemandType |
findByOrder(int nOrder)
Find a demand type by its order |
DemandType |
findByPrimaryKey(int nIdDemandType)
Find a demand type by its primary key |
fr.paris.lutece.util.ReferenceList |
findDemandTypes()
Find all demand types as a ReferenceList |
Map<String,List<DemandType>> |
findForLuteceUser(javax.servlet.http.HttpServletRequest request)
Find the list of demand types for the lutece user ordered by id category |
List<DemandType> |
findForLuteceUser(javax.servlet.http.HttpServletRequest request,
int nIdCategory)
Find the list of demand types for the lutece user and a category |
int |
findMaxOrder()
Find the max order + 1 |
List<DemandType> |
findNoDateEndDemandTypes()
Find the list of demand types that have not a date end |
fr.paris.lutece.util.ReferenceList |
getOperatorsList()
Get the list of operators as a ReferenceList |
fr.paris.lutece.util.ReferenceList |
getRolesList()
Get the list of MyLutece role as a ReferenceList |
static DemandTypeService |
getService()
Get the instance of DemandTypeService |
fr.paris.lutece.util.ReferenceList |
getTargetsList()
Get the list of targets as a ReferenceList |
static void |
init()
Initialize the service |
boolean |
isWellOrdered()
Check if the list of demand types are well ordered |
void |
remove(int nIdDemandType)
Remove a demand type |
void |
update(DemandType demandType)
Update a demand type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DemandTypeService()
| Method Detail |
|---|
public static DemandTypeService getService()
DemandTypeService
DemandTypeServicepublic static void init()
public int create(DemandType demandType)
demandType - the demand type
public void update(DemandType demandType)
demandType - the demand typepublic void remove(int nIdDemandType)
nIdDemandType - the ID demand typepublic DemandType findByPrimaryKey(int nIdDemandType)
nIdDemandType - the id demand type
DemandTypepublic DemandType findByOrder(int nOrder)
nOrder - the order
DemandTypepublic List<DemandType> findAll()
DemandTypepublic fr.paris.lutece.util.ReferenceList findDemandTypes()
ReferenceList
ReferenceListpublic int findMaxOrder()
public List<DemandType> findByFilter(DemandTypeFilter dtFilter)
dtFilter - the filter
DemandType
public List<DemandType> findForLuteceUser(javax.servlet.http.HttpServletRequest request,
int nIdCategory)
request - HttpServletRequestnIdCategory - the category Id Selected
public Map<String,List<DemandType>> findForLuteceUser(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest
public List<DemandType> findNoDateEndDemandTypes()
public fr.paris.lutece.util.ReferenceList getRolesList()
ReferenceList
ReferenceListpublic fr.paris.lutece.util.ReferenceList getOperatorsList()
ReferenceList
ReferenceListpublic fr.paris.lutece.util.ReferenceList getTargetsList()
ReferenceList
ReferenceListpublic void doReorderDemandTypes()
public void doReorderDemandTypesGreaterOrder(int nCurrentOrder,
int nOldOrder)
nCurrentOrder.
nOldOrder is ignored in the process.
nCurrentOrder - the current ordernOldOrder - the order to ignore
public void doReorderDemandTypesLowerOrder(int nCurrentOrder,
int nOldOrder)
nCurrentOrder .
nOldOrder is ignored in the process.
nCurrentOrder - the current ordernOldOrder - the order to ignore
public boolean checkRoleForDemandType(DemandType demandType,
javax.servlet.http.HttpServletRequest request)
demandType - the demand typerequest - HttpServletRequest
public boolean isWellOrdered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||