|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.workflow.service.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 |
void |
doRemoveWorkFlowResource(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow)
Remove in the 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<fr.paris.lutece.portal.business.workflow.Action> |
getActions(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
fr.paris.lutece.portal.business.user.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.portal.business.workflow.State> |
getAllStateByWorkflow(int nIdWorkflow,
fr.paris.lutece.portal.business.user.AdminUser user)
returns all state of a given the 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 |
static WorkflowService |
getInstance()
Returns the instance of the singleton |
java.util.Collection<java.lang.Integer> |
getListIdRessourceByState(int nIdState,
java.lang.String strResourceType,
fr.paris.lutece.portal.business.user.AdminUser user)
return a list wich contains idRessource for a given state |
fr.paris.lutece.util.ReferenceList |
getRefListTaskType(java.util.Locale locale)
Return a reference list wich contains the task types |
fr.paris.lutece.portal.business.workflow.State |
getState(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
fr.paris.lutece.portal.business.user.AdminUser user)
returns the state of a given document of the document in the workflow and the user role |
ITask |
getTaskInstance(java.lang.String strKey,
java.util.Locale locale)
return an instance of Task Object depending on the task type |
java.util.Collection<ITaskType> |
getTaskTypeList()
|
fr.paris.lutece.util.ReferenceList |
getWorkflowsEnabled(fr.paris.lutece.portal.business.user.AdminUser user,
java.util.Locale locale)
return a referencelist wich contains a list enabled workflow |
void |
init()
Initialize the workflow service |
boolean |
isAuthorized(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
fr.paris.lutece.portal.business.user.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void init()
public static WorkflowService getInstance()
public java.util.Collection<fr.paris.lutece.portal.business.workflow.Action> getActions(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
fr.paris.lutece.portal.business.user.AdminUser user)
getActions in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - the document idstrResourceType - the document typeuser - the adminUsernIdWorkflow - the workflow id
public fr.paris.lutece.portal.business.workflow.State getState(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
fr.paris.lutece.portal.business.user.AdminUser user)
getState in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - the document idstrResourceType - the document typeuser - the adminUsernIdWorkflow - the workflow id
public java.util.Collection<fr.paris.lutece.portal.business.workflow.State> getAllStateByWorkflow(int nIdWorkflow,
fr.paris.lutece.portal.business.user.AdminUser user)
getAllStateByWorkflow in interface fr.paris.lutece.portal.service.workflow.IWorkflowServiceuser - the adminUsernIdWorkflow - the workflow id
public boolean isDisplayTasksForm(int nIdAction,
java.util.Locale locale)
isDisplayTasksForm in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdAction - 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)
doProcessAction in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - 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)
getDisplayDocumentHistory in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - the resource idstrResourceType - the resource typerequest - the requestnIdWorkflow - the workflow idlocale - the locale
public java.lang.String getDocumentHistoryXml(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
getDocumentHistoryXml in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - 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)
doSaveTasksForm in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - the resource idstrResourceType - the resource typerequest - the requestnIdAction - the action idlocale - the locale
public ITask getTaskInstance(java.lang.String strKey,
java.util.Locale locale)
strKey - the type task keylocale - the locale
public java.util.Collection<ITaskType> getTaskTypeList()
public fr.paris.lutece.util.ReferenceList getRefListTaskType(java.util.Locale locale)
locale - the locale
public void doRemoveWorkFlowResource(int nIdResource,
java.lang.String strResourceType)
doRemoveWorkFlowResource in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - the resource idstrResourceType - the resource type
public void doRemoveWorkFlowResource(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow)
nIdResource - the resource idstrResourceType - the resource typenIdWorkflow - the workflow id
public java.lang.String getDisplayTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
getDisplayTasksForm in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - the document idstrResourceType - the document typerequest - the requestnIdAction - the action idlocale - the locale
public boolean isAuthorized(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorized in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdResource - the document idstrResourceType - the document typeuser - the AdminUsernIdWorkflow - the workflow id
public fr.paris.lutece.util.ReferenceList getWorkflowsEnabled(fr.paris.lutece.portal.business.user.AdminUser user,
java.util.Locale locale)
getWorkflowsEnabled in interface fr.paris.lutece.portal.service.workflow.IWorkflowServiceuser - the AdminUserlocale - the locale
public java.util.Collection<java.lang.Integer> getListIdRessourceByState(int nIdState,
java.lang.String strResourceType,
fr.paris.lutece.portal.business.user.AdminUser user)
getListIdRessourceByState in interface fr.paris.lutece.portal.service.workflow.IWorkflowServicenIdState - the id StatestrResourceType - the resource typeuser - the AdminUser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||