public interface IWorkflowProvider
Modifier and Type | Method and Description |
---|---|
boolean |
canProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request)
Check if the action can be proceed for the given resource.
|
String |
doValidateTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Test if the information relating to various tasks associated with action are validated.
|
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> |
getActions(int nIdResource,
String strResourceType,
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listActions,
AdminUser user)
returns a list of actions possible for a given document based on the status of the document in the workflow and the user role.
|
Map<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> |
getActions(String strResourceType,
Map<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> mapActions,
AdminUser user)
returns a list of actions possible for a given document based on the status of the document in the workflow and the user role.
|
Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> |
getAllStateByWorkflow(Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> listStates,
AdminUser user)
returns all state of a given workflow.
|
List<Integer> |
getAuthorizedResourceList(String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
Integer nExternalParentId,
AdminUser user)
Get all authorized resource Id.
|
List<Integer> |
getAuthorizedResourceList(String strResourceType,
int nIdWorkflow,
List<Integer> lListIdWorkflowState,
Integer nExternalParentId,
AdminUser user)
Get all authorized resource Id.
|
String |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale)
returns the actions history performed on a resource.
|
String |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale,
Map<String,Object> model,
String strTemplate)
returns the actions history performed on a resource.
|
String |
getDisplayTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
Locale locale)
returns the tasks form.
|
String |
getDocumentHistoryXml(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale)
returns a xml wich contains the actions history performed on a resource.
|
String |
getUserAccessCode(javax.servlet.http.HttpServletRequest request)
The user access code.
|
ReferenceList |
getWorkflowsEnabled(AdminUser user,
Locale locale)
return a referencelist wich contains a list enabled workflow.
|
boolean |
isAuthorized(int nIdResource,
String strResourceType,
int nIdWorkflow,
AdminUser user)
Check that a given user is allowed to view a resource depending the state of the resource.
|
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getActions(int nIdResource, String strResourceType, Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listActions, AdminUser user)
nIdResource
- the id of the documentstrResourceType
- the type of the documentlistActions
- the list actionsuser
- the adminUserMap<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> getActions(String strResourceType, Map<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> mapActions, AdminUser user)
strResourceType
- the type of the documentmapActions
- the map actionsuser
- the adminUserString getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idrequest
- the requestlocale
- the localeString getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale, Map<String,Object> model, String strTemplate)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idrequest
- the requestlocale
- the localemodel
- The model to add to the default modelstrTemplate
- The templateString getDocumentHistoryXml(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idrequest
- the requestlocale
- the localeString getDisplayTasksForm(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typenIdAction
- the action idrequest
- the requestlocale
- the localeList<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, int nIdWorkflowState, Integer nExternalParentId, AdminUser user)
strResourceType
- the resource typenIdWorkflow
- the workflow idnIdWorkflowState
- The workflow state idnExternalParentId
- The external parent iduser
- the AdminUserList<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, List<Integer> lListIdWorkflowState, Integer nExternalParentId, AdminUser user)
strResourceType
- the resource typenIdWorkflow
- the workflow idlListIdWorkflowState
- The list workflow state idnExternalParentId
- he external parent iduser
- the AdminUserReferenceList getWorkflowsEnabled(AdminUser user, Locale locale)
user
- the AdminUserlocale
- the localeCollection<fr.paris.lutece.plugins.workflowcore.business.state.State> getAllStateByWorkflow(Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> listStates, AdminUser user)
listStates
- the list statesuser
- the adminUserString getUserAccessCode(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestboolean isAuthorized(int nIdResource, String strResourceType, int nIdWorkflow, AdminUser user)
nIdResource
- the document idstrResourceType
- the document typenIdWorkflow
- the workflow id*user
- the userboolean canProcessAction(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request)
nIdResource
- the id of the resourcestrResourceType
- the type of the resourcenIdAction
- the id actionrequest
- the HTTP requestString doValidateTasksForm(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typenIdAction
- the action idrequest
- the requestlocale
- the localeCopyright © 2020 City of Paris. All rights reserved.