|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWorkflowService
WorkflowService
| Method Summary | |
|---|---|
void |
doProcessAction(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Proceed action given in parameter |
void |
doRemoveWorkFlowResource(int nIdResource,
java.lang.String strResourceType)
Remove in all workflows the resource specified in parameter |
java.lang.String |
doSaveTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Perform the information on the various tasks associated with the given action specified in parameter |
java.util.Collection<Action> |
getActions(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
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<State> |
getAllStateByWorkflow(int nIdWorkflow,
AdminUser user)
returns all state of a given workflow |
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.util.Collection<java.lang.Integer> |
getListIdRessourceByState(int nIdState,
java.lang.String strResourceType,
AdminUser user)
return a list wich contains idRessource for a given state |
State |
getState(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
returns the state of a given document of the document in the workflow and the user role |
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 |
boolean |
isDisplayTasksForm(int nIdAction,
java.util.Locale locale)
return true if a form is associate to the action |
| Method Detail |
|---|
java.util.Collection<Action> getActions(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
nIdResource - the document idstrResourceType - the document typeuser - the adminUsernIdWorkflow - the workflow id
State getState(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
nIdResource - the document idstrResourceType - the document typeuser - the adminUsernIdWorkflow - the workflow id
boolean isDisplayTasksForm(int nIdAction,
java.util.Locale locale)
nIdAction - the action idlocale - the loacle
void doProcessAction(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 - locale
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 typerequest - the requestnIdWorkflow - the workflow idlocale - 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 typerequest - the requestnIdWorkflow - the workflow idlocale - the locale
java.lang.String doSaveTasksForm(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
void doRemoveWorkFlowResource(int nIdResource,
java.lang.String strResourceType)
nIdResource - the resource idstrResourceType - the resource type
java.lang.String getDisplayTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
nIdResource - the document idstrResourceType - the document typerequest - the requestnIdAction - the action idlocale - the locale
boolean isAuthorized(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
nIdResource - the document idstrResourceType - the document typeuser - the AdminUsernIdWorkflow - the workflow id
ReferenceList getWorkflowsEnabled(AdminUser user,
java.util.Locale locale)
user - the AdminUserlocale - the locale
java.util.Collection<State> getAllStateByWorkflow(int nIdWorkflow,
AdminUser user)
user - the adminUsernIdWorkflow - the workflow id
java.util.Collection<java.lang.Integer> getListIdRessourceByState(int nIdState,
java.lang.String strResourceType,
AdminUser user)
nIdState - the id StatestrResourceType - the resource typeuser - the AdminUser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||