public interface IWorkflowService
Modifier and Type | Method and Description |
---|---|
boolean |
canAutomaticActionBeProcessed(int nIdResource,
String strResourceType,
int nIdAction)
Check if an automatic action can be processed or not
|
boolean |
canProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId)
Check if the action can be proceed for the given resource
|
void |
create(Workflow workflow)
Creation of an instance of workflow
|
void |
doProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale,
boolean bIsAutomatic,
String strUserAccessCode)
Deprecated.
|
default void |
doProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale,
boolean bIsAutomatic,
String strUserAccessCode,
fr.paris.lutece.api.user.User user)
Proceed action given in parameter
|
void |
doProcessAutomaticReflexiveActions(int nIdResource,
String strResourceType,
int nIdState,
Integer nIdExternalParent,
Locale locale)
Deprecated.
|
default void |
doProcessAutomaticReflexiveActions(int nIdResource,
String strResourceType,
int nIdState,
Integer nIdExternalParent,
Locale locale,
fr.paris.lutece.api.user.User user)
Proceed automatic reflexive actions of state given in parameter
|
void |
doRemoveWorkFlowResource(int nIdResource,
String strResourceType)
Remove in every workflows the resource specified in parameter
|
void |
doRemoveWorkFlowResourceByListId(List<Integer> lListIdResource,
String strResourceType,
Integer nIdWorflow)
Remove list of resource by list of id resource
|
void |
executeActionAutomatic(int nIdResource,
String strResourceType,
int nIdWorkflow,
Integer nExternalParentId)
Deprecated.
|
default void |
executeActionAutomatic(int nIdResource,
String strResourceType,
int nIdWorkflow,
Integer nExternalParentId,
fr.paris.lutece.api.user.User user)
Execute action automatic
|
Workflow |
findByPrimaryKey(int nIdWorkflow)
Load the workflow Object
|
Collection<Action> |
getActions(int nIdResource,
String strResourceType,
int nIdWorkflow)
returns a list of actions possible for a given resource based on the status of the resource in the workflow, the user role
and if the prerequisites are satisfied.
|
Map<Integer,List<Action>> |
getActions(List<Integer> listIdResource,
String strResourceType,
Integer nIdExternalParentId,
int nIdWorkflow)
returns a list of actions possible for a given resource based on the status of the resource in the workflow and the user role
|
Collection<State> |
getAllStateByWorkflow(int nIdWorkflow)
returns all state of a given workflow
|
ResourceWorkflow |
getInitialResourceWorkflow(int nIdResource,
String strResourceType,
Workflow workflow,
Integer nExternalParentId)
Create a ResourceWorkflow Object wich contains the association of resource and the initial state of the workflow
|
List<Workflow> |
getListWorkflowsByFilter(WorkflowFilter filter)
return the workflow list by filter
|
Map<String,String> |
getMapTaskTypes(Locale locale)
Return a map which contains the task types
|
List<Action> |
getMassActions(int nIdWorkflow)
Get the list of mass actions from a given id workflow
|
List<Action> |
getMassActions(int nIdWorkflow,
int stateId)
Get the list of mass actions following a state from a given id workflow
|
List<Integer> |
getResourceIdListByIdState(int nIdState,
String strResourceType)
Get the list of ids of resources of a given type that are in a given state
|
State |
getState(int nIdResource,
String strResourceType,
int nIdWorkflow,
Integer nIdExternalParentId)
returns the state of a given resource
|
boolean |
isDisplayTasksForm(int nIdAction,
Locale locale)
Return true if a form is associate to the action
|
void |
remove(int nIdWorkflow)
Remove workflow which is specified in parameter
|
void |
update(Workflow workflow)
Update of workflow which is specified in parameter
|
void create(Workflow workflow)
workflow
- The instance of workflow which contains the informations to storevoid update(Workflow workflow)
workflow
- The instance of workflow which contains the informations to updatevoid remove(int nIdWorkflow)
nIdWorkflow
- the workflow to removeWorkflow findByPrimaryKey(int nIdWorkflow)
nIdWorkflow
- the workflow idList<Workflow> getListWorkflowsByFilter(WorkflowFilter filter)
filter
- the filterCollection<Action> getActions(int nIdResource, String strResourceType, int nIdWorkflow)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idMap<Integer,List<Action>> getActions(List<Integer> listIdResource, String strResourceType, Integer nIdExternalParentId, int nIdWorkflow)
listIdResource
- the list of resource idstrResourceType
- the resource typenIdExternalParentId
- the external parent identifiernIdWorkflow
- the workflow idState getState(int nIdResource, String strResourceType, int nIdWorkflow, Integer nIdExternalParentId)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idnIdExternalParentId
- the external parent idCollection<State> getAllStateByWorkflow(int nIdWorkflow)
nIdWorkflow
- the workflow idList<Action> getMassActions(int nIdWorkflow)
nIdWorkflow
- the id workflowList<Action> getMassActions(int nIdWorkflow, int stateId)
nIdWorkflow
- the workflow idstateId
- the state idMap<String,String> getMapTaskTypes(Locale locale)
locale
- the localeResourceWorkflow getInitialResourceWorkflow(int nIdResource, String strResourceType, Workflow workflow, Integer nExternalParentId)
nIdResource
- the resource idstrResourceType
- the resource typeworkflow
- the workflownExternalParentId
- the id external parentboolean isDisplayTasksForm(int nIdAction, Locale locale)
nIdAction
- the action idlocale
- the loacleboolean canProcessAction(int nIdResource, String strResourceType, int nIdAction, Integer nExternalParentId)
nIdResource
- the id resourcestrResourceType
- the resource typenIdAction
- the id actionnExternalParentId
- the external parent id@Deprecated void doProcessAction(int nIdResource, String strResourceType, int nIdAction, Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, Locale locale, boolean bIsAutomatic, String strUserAccessCode)
nIdResource
- the resource idstrResourceType
- the resource typenIdAction
- the action idnExternalParentId
- the external parent id*request
- the requestlocale
- localebIsAutomatic
- true if action is automaticstrUserAccessCode
- the user access codedefault void doProcessAction(int nIdResource, String strResourceType, int nIdAction, Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, Locale locale, boolean bIsAutomatic, String strUserAccessCode, fr.paris.lutece.api.user.User user)
nIdResource
- the resource idstrResourceType
- the resource typenIdAction
- the action idnExternalParentId
- the external parent id*request
- the requestlocale
- localebIsAutomatic
- true if action is automaticstrUserAccessCode
- the user access codethe
- user the user@Deprecated void doProcessAutomaticReflexiveActions(int nIdResource, String strResourceType, int nIdState, Integer nIdExternalParent, Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typenIdState
- the state idnIdExternalParent
- the external parent id*locale
- localedefault void doProcessAutomaticReflexiveActions(int nIdResource, String strResourceType, int nIdState, Integer nIdExternalParent, Locale locale, fr.paris.lutece.api.user.User user)
nIdResource
- the resource idstrResourceType
- the resource typenIdState
- the state idnIdExternalParent
- the external parent id*locale
- localeuser
- the uservoid doRemoveWorkFlowResource(int nIdResource, String strResourceType)
nIdResource
- the resource idstrResourceType
- the resource typevoid doRemoveWorkFlowResourceByListId(List<Integer> lListIdResource, String strResourceType, Integer nIdWorflow)
lListIdResource
- the list of resource idstrResourceType
- the resource typenIdWorflow
- the workflow idList<Integer> getResourceIdListByIdState(int nIdState, String strResourceType)
nIdState
- The id of the state of resources to getstrResourceType
- The type of resources to get@Deprecated void executeActionAutomatic(int nIdResource, String strResourceType, int nIdWorkflow, Integer nExternalParentId)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idnExternalParentId
- the external parent iddefault void executeActionAutomatic(int nIdResource, String strResourceType, int nIdWorkflow, Integer nExternalParentId, fr.paris.lutece.api.user.User user)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idnExternalParentId
- the external parent iduser
- the userboolean canAutomaticActionBeProcessed(int nIdResource, String strResourceType, int nIdAction)
nIdResource
- The id of the resourcestrResourceType
- The resource typenIdAction
- The id of the actionCopyright © 2020 City of Paris. All rights reserved.