public interface IActionService
Modifier and Type | Method and Description |
---|---|
void |
create(Action action)
Creation of an instance of action
|
void |
createLinkedActions(Action action)
Create the links between actions
|
void |
decrementOrderByOne(int nOrder,
int nIdWorkflow)
decrements the order of all the next states after the one which will be removed
|
Action |
findByPrimaryKey(int nIdAction)
Load the Action Object
|
Action |
findByPrimaryKeyWithoutIcon(int nIdAction)
Load the Action Object without loading the contents of the icon
|
int |
findMaximumOrderByWorkflowId(int nWorkflowId)
return the maximum order number of that states in a given workflow
|
List<Action> |
findStatesAfterOrder(int nOrder,
int nIdWorkflow)
Finds all the actions which have an order greater to a given order
|
List<Action> |
findStatesBetweenOrders(int nOrder1,
int nOrder2,
int nIdWorkflow)
Finds all the actions which have an order lower to a given order
|
List<Action> |
getListActionByFilter(ActionFilter filter)
Select actions by filter
|
Collection<Integer> |
getListIdsLinkedAction(int nIdAction)
Load the list of IDs linked to the given ID action.
|
void |
initializeActionOrder(int nIdWorkflow)
Initialize the display order of actions using their ids
|
void |
remove(int nIdAction)
Remove action which is specified in parameter
|
void |
removeLinkedActions(int nIdAction)
Remove the links between actions
|
void |
update(Action action)
Update of action which is specified in parameter
|
void create(Action action)
action
- The instance of action which contains the informations to storevoid update(Action action)
action
- The instance of action which contains the informations to updatevoid remove(int nIdAction)
nIdAction
- The action id which contains the informations to removevoid createLinkedActions(Action action)
action
- the actionvoid removeLinkedActions(int nIdAction)
nIdAction
- the ID actionAction findByPrimaryKey(int nIdAction)
nIdAction
- the action idAction findByPrimaryKeyWithoutIcon(int nIdAction)
nIdAction
- the action idList<Action> getListActionByFilter(ActionFilter filter)
filter
- the action filterCollection<Integer> getListIdsLinkedAction(int nIdAction)
nIdAction
- the ID actionint findMaximumOrderByWorkflowId(int nWorkflowId)
nWorkflowId
- the workflow idvoid decrementOrderByOne(int nOrder, int nIdWorkflow)
nOrder
- the ordernIdWorkflow
- the workflow idList<Action> findStatesBetweenOrders(int nOrder1, int nOrder2, int nIdWorkflow)
nOrder1
- the order 1nOrder2
- the order 2nIdWorkflow
- the workflow idList<Action> findStatesAfterOrder(int nOrder, int nIdWorkflow)
nOrder
- the ordernIdWorkflow
- the workflow idvoid initializeActionOrder(int nIdWorkflow)
nIdWorkflow
- the workflow idCopyright © 2020 City of Paris. All rights reserved.