|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.contextinclude.service.ContextService
public class ContextService
ContextService
| Field Summary | |
|---|---|
static java.lang.String |
BEAN_SERVICE
The Constant BEAN_SERVICE. |
| Constructor Summary | |
|---|---|
ContextService()
|
|
| Method Summary | |
|---|---|
void |
create(Context context)
Create a new context |
void |
doReorderContexts()
Reorder all demand types |
void |
doReorderContextsGreaterPriority(int nCurrentPriority)
Reorder the contexts that are greater or equal to the nCurrentPriority. |
java.util.List<Context> |
findActiveContexts()
Find active contexts |
java.util.List<Context> |
findAll()
Find all contexts |
Context |
findByPrimaryKey(int nIdContext)
Find context by its primary key |
java.util.List<Context> |
findByRelativePriority(OperatorEnum operator,
int nPriority)
Find by relative priority |
boolean |
isWellOrdered()
Check if the list of contexts are well ordered |
void |
remove(int nIdContext)
Remove a context |
void |
update(Context context)
Update a context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BEAN_SERVICE
| Constructor Detail |
|---|
public ContextService()
| Method Detail |
|---|
@Transactional(value="contextinclude.transactionManager") public void create(Context context)
create in interface IContextServicecontext - the context@Transactional(value="contextinclude.transactionManager") public void update(Context context)
update in interface IContextServicecontext - a context@Transactional(value="contextinclude.transactionManager") public void remove(int nIdContext)
remove in interface IContextServicenIdContext - the id contextpublic Context findByPrimaryKey(int nIdContext)
findByPrimaryKey in interface IContextServicenIdContext - the id context
Contextpublic java.util.List<Context> findAll()
findAll in interface IContextServiceContextpublic java.util.List<Context> findActiveContexts()
findActiveContexts in interface IContextServiceContext
public java.util.List<Context> findByRelativePriority(OperatorEnum operator,
int nPriority)
findByRelativePriority in interface IContextServiceoperator - the operatornPriority - the priority to compare to
Contextpublic boolean isWellOrdered()
isWellOrdered in interface IContextServicepublic void doReorderContexts()
doReorderContexts in interface IContextServicepublic void doReorderContextsGreaterPriority(int nCurrentPriority)
doReorderContextsGreaterPriority in interface IContextServicenCurrentPriority - the current priority
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||