|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.workflow.WorkflowService
public class WorkflowService
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.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 |
static WorkflowService |
getInstance()
Returns the unique instance of the service |
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 |
isAvailable()
|
boolean |
isDisplayTasksForm(int nIdAction,
java.util.Locale locale)
return true if a form is associate to the action |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WorkflowService getInstance()
public boolean isAvailable()
public 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
public State getState(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
nIdResource - the document idstrResourceType - the document typeuser - the adminUsernIdWorkflow - the workflow id
public boolean isDisplayTasksForm(int nIdAction,
java.util.Locale locale)
nIdAction - the action idlocale - the loacle
public 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
public 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
public 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 id
public void doRemoveWorkFlowResource(int nIdResource,
java.lang.String strResourceType)
nIdResource - the resource idstrResourceType - the resource type
public 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
public boolean isAuthorized(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
nIdResource - the document idstrResourceType - the document typeuser - the AdminUsernIdWorkflow - the workflow id
public ReferenceList getWorkflowsEnabled(AdminUser user,
java.util.Locale locale)
user - the AdminUserlocale - the locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||