|
||||||||||
| 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,
java.lang.String strResourceType,
int nIdAction,
java.lang.Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale,
java.lang.String strUserAccessCode)
Perform the information on the various tasks associated with the given action specified in parameter |
java.lang.String |
doValidateTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Test if the information relating to various tasks associated with action are validated |
java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> |
getActions(java.util.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 |
java.util.Map<java.lang.Integer,java.util.List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> |
getActions(java.util.Map<java.lang.Integer,java.util.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 |
java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> |
getAllStateByWorkflow(java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> listStates,
AdminUser user)
returns all state of a given workflow |
java.util.List<java.lang.Integer> |
getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
java.lang.Integer nExternalParentId,
AdminUser user)
Get all authorized resource Id |
java.util.List<java.lang.Integer> |
getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
java.util.List<java.lang.Integer> lListIdWorkflowState,
java.lang.Integer nExternalParentId,
AdminUser user)
Get all authorized resource Id |
java.lang.String |
getDisplayDocumentHistory(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
returns the actions history performed on a resource |
java.lang.String |
getDisplayTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
returns the tasks form |
java.lang.String |
getDocumentHistoryXml(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
returns a xml wich contains the actions history performed on a resource |
java.lang.String |
getUserAccessCode(javax.servlet.http.HttpServletRequest request)
The user access code |
ReferenceList |
getWorkflowsEnabled(AdminUser user,
java.util.Locale locale)
return a referencelist wich contains a list enabled workflow |
boolean |
isAuthorized(int nIdResource,
java.lang.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 |
|---|
java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getActions(java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listActions,
AdminUser user)
nIdResource - the document idstrResourceType - the document typeuser - the adminUsernIdWorkflow - the workflow id
java.util.Map<java.lang.Integer,java.util.List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> getActions(java.util.Map<java.lang.Integer,java.util.List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> mapActions,
AdminUser user)
listIdResource - the list of resource idstrResourceType - the document typenIdExternalParentId - the external parent identifiernIdWorkflow - the workflow iduser - the adminUser
java.lang.String getDisplayDocumentHistory(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
nIdResource - the resource idstrResourceType - the resource typenIdWorkflow - the workflow idrequest - the requestlocale - the locale
java.lang.String getDocumentHistoryXml(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
nIdResource - the resource idstrResourceType - the resource typenIdWorkflow - the workflow idrequest - the requestlocale - the locale
java.lang.String getDisplayTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
nIdResource - the resource idstrResourceType - the resource typerequest - the requestnIdAction - the action idlocale - the locale
java.util.List<java.lang.Integer> getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
java.lang.Integer nExternalParentId,
AdminUser user)
strResourceType - the resource typenIdWorkflow - the workflow idnIdWorkflowState - The workflow state idnExternalParentId - The external parent iduser - the AdminUser
java.util.List<java.lang.Integer> getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
java.util.List<java.lang.Integer> lListIdWorkflowState,
java.lang.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,
java.util.Locale locale)
user - the AdminUserlocale - the locale
java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> getAllStateByWorkflow(java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> listStates,
AdminUser user)
nIdWorkflow - the workflow iduser - the adminUser
java.lang.String getUserAccessCode(javax.servlet.http.HttpServletRequest request)
request - the HTTP request
boolean isAuthorized(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
nIdResource - the document idstrResourceType - the document typenIdWorkflow - the workflow id*user - the AdminUser
boolean canProcessAction(int nIdAction,
javax.servlet.http.HttpServletRequest request)
nIdResource - the id resourcestrResourceType - the resource typenIdAction - the id actionnExternalParentId - the external parent idrequest - the HTTP requestbIsAutomatic - is automatic action
java.lang.String doValidateTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
nIdResource - the resource idstrResourceType - the resource typenIdAction - the action idrequest - the requestlocale - the locale
void doSaveTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
java.lang.Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale,
java.lang.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 | |||||||||