|
||||||||||
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,
boolean isAutomatic)
Deprecated. |
void |
doProcessAction(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
java.lang.Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale,
boolean isAutomatic)
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 workflow the resource specified in parameter |
void |
doRemoveWorkFlowResourceByListId(java.util.List<java.lang.Integer> lListIdResource,
java.lang.String strResourceType,
java.lang.Integer nIdWorflow)
|
java.lang.String |
doSaveTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Deprecated. |
java.lang.String |
doSaveTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
java.lang.Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Perform the information on the various tasks associated with the given action specified in parameter |
void |
executeActionAutomatic(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow)
Deprecated. |
void |
executeActionAutomatic(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
java.lang.Integer nExternalParentId)
Execute action automatic |
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.HashMap<java.lang.Integer,java.util.List<fr.paris.lutece.portal.business.workflow.Action>> |
getActions(java.util.List<java.lang.Integer> listIdResssource,
java.lang.String strResourceType,
java.lang.Integer nIdExternalParentId,
int nIdWorkflow,
fr.paris.lutece.portal.business.user.AdminUser user)
|
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.util.List<java.lang.Integer> |
getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
fr.paris.lutece.portal.business.user.AdminUser user)
Deprecated. |
java.util.List<java.lang.Integer> |
getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
java.lang.Integer nExternalParentId,
fr.paris.lutece.portal.business.user.AdminUser user)
|
java.util.List<java.lang.Integer> |
getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
java.util.List<java.lang.Integer> lListIdWorkflowState,
java.lang.Integer nExternalParentId,
fr.paris.lutece.portal.business.user.AdminUser user)
|
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 which 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)
Deprecated. |
java.util.Map<java.lang.String,java.lang.Object> |
getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
Build the advanced parameters management |
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)
Deprecated. |
fr.paris.lutece.portal.business.workflow.State |
getState(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
java.lang.Integer nIdExternalParentId,
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.HashMap<java.lang.Integer,java.util.List<fr.paris.lutece.portal.business.workflow.Action>> getActions(java.util.List<java.lang.Integer> listIdResssource, java.lang.String strResourceType, java.lang.Integer nIdExternalParentId, int nIdWorkflow, fr.paris.lutece.portal.business.user.AdminUser user)
getActions
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
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.IWorkflowService
nIdResource
- 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, java.lang.Integer nIdExternalParentId, fr.paris.lutece.portal.business.user.AdminUser user)
getState
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
nIdResource
- the document idstrResourceType
- the document typeuser
- the adminUsernIdWorkflow
- the workflow idnIdExternalParentId
- the external parent id
@Deprecated 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.IWorkflowService
nIdResource
- the document idstrResourceType
- the document typeuser
- the adminUsernIdWorkflow
- the workflow id
public void executeActionAutomatic(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, java.lang.Integer nExternalParentId)
executeActionAutomatic
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
nIdResource
- the document idstrResourceType
- the document typenIdWorkflow
- the workflow idnExternalParentId
- the external parent id@Deprecated public void executeActionAutomatic(int nIdResource, java.lang.String strResourceType, int nIdWorkflow)
executeActionAutomatic
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
nIdResource
- the document idstrResourceType
- the document typenIdWorkflow
- the workflow idpublic 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.IWorkflowService
user
- the adminUsernIdWorkflow
- the workflow id
public boolean isDisplayTasksForm(int nIdAction, java.util.Locale locale)
isDisplayTasksForm
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
nIdAction
- the action idlocale
- the loacle
public void doProcessAction(int nIdResource, java.lang.String strResourceType, int nIdAction, java.lang.Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, java.util.Locale locale, boolean isAutomatic)
doProcessAction
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdAction
- the action idnExternalParentId
- the external parent idisAutomatic
- is automatic actionlocale
- locale@Deprecated public void doProcessAction(int nIdResource, java.lang.String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, java.util.Locale locale, boolean isAutomatic)
doProcessAction
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdAction
- the action idisAutomatic
- is automatic actionlocale
- localepublic 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.IWorkflowService
nIdResource
- 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.IWorkflowService
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdWorkflow
- the workflow idlocale
- the locale
@Deprecated 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.IWorkflowService
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdAction
- the action idlocale
- the locale
public java.lang.String doSaveTasksForm(int nIdResource, java.lang.String strResourceType, int nIdAction, java.lang.Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
doSaveTasksForm
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdAction
- the action idlocale
- the localenExternalParentId
- the external parent id
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.IWorkflowService
nIdResource
- the resource idstrResourceType
- the resource typepublic void doRemoveWorkFlowResource(int nIdResource, java.lang.String strResourceType, int nIdWorkflow)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idpublic void doRemoveWorkFlowResourceByListId(java.util.List<java.lang.Integer> lListIdResource, java.lang.String strResourceType, java.lang.Integer nIdWorflow)
doRemoveWorkFlowResourceByListId
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
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.IWorkflowService
nIdResource
- the resource idstrResourceType
- the resource 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.IWorkflowService
nIdResource
- the document idstrResourceType
- the document typeuser
- the AdminUsernIdWorkflow
- the workflow id
public java.util.List<java.lang.Integer> getAuthorizedResourceList(java.lang.String strResourceType, int nIdWorkflow, java.util.List<java.lang.Integer> lListIdWorkflowState, java.lang.Integer nExternalParentId, fr.paris.lutece.portal.business.user.AdminUser user)
getAuthorizedResourceList
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
public java.util.List<java.lang.Integer> getAuthorizedResourceList(java.lang.String strResourceType, int nIdWorkflow, int nIdWorkflowState, java.lang.Integer nExternalParentId, fr.paris.lutece.portal.business.user.AdminUser user)
getAuthorizedResourceList
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
strResourceType
- nIdWorkflow
- nIdWorkflowState
- nExternalParentId
- user
-
@Deprecated public java.util.List<java.lang.Integer> getAuthorizedResourceList(java.lang.String strResourceType, int nIdWorkflow, int nIdWorkflowState, fr.paris.lutece.portal.business.user.AdminUser user)
getAuthorizedResourceList
in interface fr.paris.lutece.portal.service.workflow.IWorkflowService
strResourceType
- the resource typenIdWorkflow
- the workflow idnIdWorkflowState
- The workflow state id or -1 for all workflow statesuser
- the AdminUser
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.IWorkflowService
user
- the AdminUserlocale
- the locale
@Deprecated 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.IWorkflowService
nIdState
- the id StatestrResourceType
- the resource typeuser
- the AdminUser
public java.util.Map<java.lang.String,java.lang.Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
user
- the current user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |