public interface IWorkflowProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.api.user.User user)
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,
fr.paris.lutece.api.user.User user)
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,
fr.paris.lutece.api.user.User 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,
fr.paris.lutece.api.user.User 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,
fr.paris.lutece.api.user.User user)
returns all state of a given workflow.
|
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> |
getAuthorizedActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listActions,
fr.paris.lutece.api.user.User user)
Returns authorized action list
|
List<Integer> |
getAuthorizedResourceList(String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
Integer nExternalParentId,
fr.paris.lutece.api.user.User user)
Get all authorized resource Id.
|
List<Integer> |
getAuthorizedResourceList(String strResourceType,
int nIdWorkflow,
List<Integer> lListIdWorkflowState,
Integer nExternalParentId,
fr.paris.lutece.api.user.User user)
Get all authorized resource Id.
|
String |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale,
Map<String,Object> model,
String strTemplate,
fr.paris.lutece.api.user.User user)
returns the actions history performed on a resource.
|
String |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.api.user.User user)
returns the actions history performed on a resource.
|
String |
getDisplayTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.api.user.User user)
returns the tasks form.
|
String |
getDocumentHistoryXml(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.api.user.User user)
returns a xml wich contains the actions history performed on a resource.
|
String |
getUserAccessCode(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.api.user.User user)
The user access code.
|
ReferenceList |
getWorkflowsEnabled(fr.paris.lutece.api.user.User user,
Locale locale)
return a referencelist wich contains a list enabled workflow.
|
boolean |
isAuthorized(int nIdResource,
String strResourceType,
int nIdWorkflow,
fr.paris.lutece.api.user.User 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, fr.paris.lutece.api.user.User user)
nIdResource - the id of the documentstrResourceType - the type of the documentlistActions - the list actionsuser - the UserMap<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, fr.paris.lutece.api.user.User user)
strResourceType - the type of the documentmapActions - the map actionsuser - the nUserCollection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getAuthorizedActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listActions, fr.paris.lutece.api.user.User user)
listActions - nIdWorkflowState - user - String getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale, fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typenIdWorkflow - the workflow idrequest - the requestlocale - the localeuser - the UserString getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale, Map<String,Object> model, String strTemplate, fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typenIdWorkflow - the workflow idrequest - the requestlocale - the localemodel - The model to add to the default modelstrTemplate - The templateuser - the UserString getDocumentHistoryXml(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale, fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typenIdWorkflow - the workflow idrequest - the requestlocale - the localeuser - String getDisplayTasksForm(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, Locale locale, fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typenIdAction - the action idrequest - the requestlocale - the localeuser - the UserList<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, int nIdWorkflowState, Integer nExternalParentId, fr.paris.lutece.api.user.User user)
strResourceType - the resource typenIdWorkflow - the workflow idnIdWorkflowState - The workflow state idnExternalParentId - The external parent iduser - the UserList<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, List<Integer> lListIdWorkflowState, Integer nExternalParentId, fr.paris.lutece.api.user.User user)
strResourceType - the resource typenIdWorkflow - the workflow idlListIdWorkflowState - The list workflow state idnExternalParentId - he external parent iduser - the UserReferenceList getWorkflowsEnabled(fr.paris.lutece.api.user.User user, Locale locale)
user - the Userlocale - the localeCollection<fr.paris.lutece.plugins.workflowcore.business.state.State> getAllStateByWorkflow(Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> listStates, fr.paris.lutece.api.user.User user)
listStates - the list statesuser - the UserString getUserAccessCode(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.api.user.User user)
request - the HTTP requestuser - the RBACUserboolean isAuthorized(int nIdResource,
String strResourceType,
int nIdWorkflow,
fr.paris.lutece.api.user.User 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,
fr.paris.lutece.api.user.User user)
nIdResource - the id of the resourcestrResourceType - the type of the resourcenIdAction - the id actionrequest - the HTTP requestuser - the UserString doValidateTasksForm(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, Locale locale, fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typenIdAction - the action idrequest - the requestlocale - the localeuser - the userCopyright © 2020 City of Paris. All rights reserved.