public interface IContextService
Modifier and Type | Method and Description |
---|---|
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.
|
List<Context> |
findActiveContexts()
Find active contexts
|
List<Context> |
findAll()
Find all contexts
|
Context |
findByPrimaryKey(int nIdContext)
Find context by its primary key
|
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
|
@Transactional(value="contextinclude.transactionManager") void create(Context context)
context
- the context@Transactional(value="contextinclude.transactionManager") void update(Context context)
context
- a context@Transactional(value="contextinclude.transactionManager") void remove(int nIdContext)
nIdContext
- the id contextContext findByPrimaryKey(int nIdContext)
nIdContext
- the id contextContext
List<Context> findActiveContexts()
Context
List<Context> findByRelativePriority(OperatorEnum operator, int nPriority)
operator
- the operatornPriority
- the priority to compare toContext
boolean isWellOrdered()
void doReorderContexts()
void doReorderContextsGreaterPriority(int nCurrentPriority)
nCurrentPriority
- the current priorityCopyright © 2016 City of Paris. All rights reserved.