|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWorkflowProvider
IWorkflowProvider.
| Method Summary | |
|---|---|
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)
Perform the information on the various tasks associated with the given action specified in parameter. |
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 |
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. |
| Method Detail |
|---|
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 adminUser
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)
mapActions - the map actionsuser - the adminUser
String 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
String 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 locale
String 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 locale
List<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 AdminUser
List<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 AdminUser
ReferenceList getWorkflowsEnabled(AdminUser user,
Locale locale)
user - the AdminUserlocale - the locale
Collection<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 adminUser
String getUserAccessCode(javax.servlet.http.HttpServletRequest request)
request - the HTTP request
boolean isAuthorized(int nIdResource,
String strResourceType,
int nIdWorkflow,
AdminUser user)
nIdResource - the document idstrResourceType - the document typenIdWorkflow - the workflow id*user - the user
boolean canProcessAction(int nIdAction,
javax.servlet.http.HttpServletRequest request)
nIdAction - the id actionrequest - the HTTP request
String 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
void doSaveTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale,
String strUserAccessCode)
nIdResource - the resource idstrResourceType - the resource typenIdAction - the action idnExternalParentId - the external parent idrequest - the requestlocale - the localestrUserAccessCode - the user access code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||