public interface IWorkflowProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcessAction(int nIdAction,
javax.servlet.http.HttpServletRequest request)
Check if the action can be proceed for the given resource.
|
void |
doSaveTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale,
String strUserAccessCode)
Deprecated.
This method should not be used. Use
WorkflowService.doProcessAction instead. |
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(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(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 |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale,
String strTemplate)
Deprecated.
|
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(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listActions, AdminUser user)
listActions - the list actionsuser - the adminUserMap<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> getActions(Map<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> mapActions, AdminUser user)
mapActions - 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 locale@Deprecated String getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale, String strTemplate)
nIdResource - the resource idstrResourceType - the resource typenIdWorkflow - the workflow idrequest - the requestlocale - the localestrTemplate - The templateString 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 nIdAction,
javax.servlet.http.HttpServletRequest request)
nIdAction - 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 locale@Deprecated void doSaveTasksForm(int nIdResource, String strResourceType, int nIdAction, Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, Locale locale, String strUserAccessCode)
WorkflowService.doProcessAction instead.nIdResource - the resource idstrResourceType - the resource typenIdAction - the action idnExternalParentId - the external parent idrequest - the requestlocale - the localestrUserAccessCode - the user access codeCopyright © 2016 City of Paris. All rights reserved.