public final class WorkflowService extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
boolean bIsAutomatic)
Deprecated.
use canProcessAction( int, String, int, Integer, HttpServletRequest, User )
|
boolean |
canProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
boolean bIsAutomatic,
fr.paris.lutece.api.user.User user)
Check if the action can be proceed for the given resource
|
void |
doProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale,
boolean bIsAutomatic)
Deprecated.
use doProcessAction( int, String, int, Integer, HttpServletRequest, Locale, boolean, User )
|
void |
doProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale,
boolean bIsAutomatic,
fr.paris.lutece.api.user.User user)
Proceed action given in parameter
|
void |
doProcessAutomaticReflexiveActions(int nIdResource,
String strResourceType,
int nIdState,
Integer nIdExternalParent,
Locale locale)
Deprecated.
use doProcessAutomaticReflexiveActions( int, String, int, Integer, Locale, User )
|
void |
doProcessAutomaticReflexiveActions(int nIdResource,
String strResourceType,
int nIdState,
Integer nIdExternalParent,
Locale locale,
fr.paris.lutece.api.user.User user)
Proceed automatic reflexive actions of state given in parameter.
|
void |
doRemoveWorkFlowResource(int nIdResource,
String strResourceType)
Remove in every workflows the resource specified in parameter
|
void |
doRemoveWorkFlowResourceByListId(List<Integer> lListIdResource,
String strResourceType,
Integer nIdWorflow)
Remove list of resource workflow by list id
|
String |
doSaveTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Deprecated.
use doSaveTasksForm( int, String, int, Integer, HttpServletRequest, Locale, User )
|
String |
doSaveTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.api.user.User user)
Perform the information on the various tasks associated with the given action specified in parameter
|
void |
executeActionAutomatic(int nIdResource,
String strResourceType,
int nIdWorkflow,
Integer nExternalParentId)
Deprecated.
use executeActionAutomatic( int, String, int, Integer, User )
|
void |
executeActionAutomatic(int nIdResource,
String strResourceType,
int nIdWorkflow,
Integer nExternalParentId,
fr.paris.lutece.api.user.User user)
Execute action automatic
|
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> |
getActions(int nIdResource,
String strResourceType,
int nIdWorkflow,
AdminUser user)
Deprecated.
use getActions( int, String, int, User )
|
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> |
getActions(int nIdResource,
String strResourceType,
int nIdWorkflow,
fr.paris.lutece.api.user.User 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
|
Map<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> |
getActions(List<Integer> listIdResource,
String strResourceType,
Integer nIdExternalParentId,
int nIdWorkflow,
AdminUser user)
Deprecated.
getActions( List, String, Integer, int, User )
|
Map<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> |
getActions(List<Integer> listIdResource,
String strResourceType,
Integer nIdExternalParentId,
int nIdWorkflow,
fr.paris.lutece.api.user.User 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
|
Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> |
getAllStateByWorkflow(int nIdWorkflow,
AdminUser user)
Deprecated.
use getAllStateByWorkflow( int, User )
|
Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> |
getAllStateByWorkflow(int nIdWorkflow,
fr.paris.lutece.api.user.User user)
returns all state of a given workflow
|
List<Integer> |
getAuthorizedResourceList(String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
Integer nExternalParentId,
AdminUser user)
Deprecated.
use getAuthorizedResourceList( String, int, int, Integer, User )
|
List<Integer> |
getAuthorizedResourceList(String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
Integer nExternalParentId,
fr.paris.lutece.api.user.User user)
Get all authorized resource Id
|
List<Integer> |
getAuthorizedResourceList(String strResourceType,
int nIdWorkflow,
List<Integer> lListIdWorkflowState,
Integer nExternalParentId,
AdminUser user)
Deprecated.
use getAuthorizedResourceList( String, int, List, Integer, User )
|
List<Integer> |
getAuthorizedResourceList(String strResourceType,
int nIdWorkflow,
List<Integer> lListIdWorkflowState,
Integer nExternalParentId,
fr.paris.lutece.api.user.User user)
Get all authorized resource Id by list of state
|
String |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Deprecated.
use getDisplayDocumentHistory( int, String, int, HttpServletRequest, Locale, User )
|
String |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale,
Map<String,Object> model,
String strTemplate)
Deprecated.
use getDisplayDocumentHistory( int, String, int, HttpServletRequest, Locale, Map, String, User )
|
String |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale,
Map<String,Object> model,
String strTemplate,
fr.paris.lutece.api.user.User user)
returns the actions history performed on a resource
|
String |
getDisplayDocumentHistory(int nIdResource,
String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.api.user.User user)
returns the actions history performed on a resource
|
String |
getDisplayTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Deprecated.
use getDisplayTasksForm( int, String, int, HttpServletRequest, Locale, User )
|
String |
getDisplayTasksForm(int nIdResource,
String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.api.user.User user)
returns the tasks form
|
static WorkflowService |
getInstance()
Returns the unique instance of the service
|
List<fr.paris.lutece.plugins.workflowcore.business.action.Action> |
getMassActions(int nIdWorkflow)
Get the list of mass actions from a given id workflow
|
Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> |
getMassActions(int nIdWorkflow,
int nIdState,
fr.paris.lutece.api.user.User user)
Get the list of mass actions from a given id workflow
|
List<Integer> |
getResourceIdListByIdState(int nIdState,
String strResourceType)
Get the list of ids of resources of a given type that are in a given state
|
List<Integer> |
getResourceIdListByIdState(int nIdState,
String strResourceType,
int nExternalParentId)
Get the list of ids of resources of a given type that are in a given state
and have a specific external parent id
|
fr.paris.lutece.plugins.workflowcore.business.state.State |
getState(int nIdResource,
String strResourceType,
int nIdWorkflow,
Integer nIdExternalParentId)
returns the state of a given document of the document in the workflow and the user role
|
ReferenceList |
getWorkflowsEnabled(AdminUser user,
Locale locale)
Deprecated.
use getWorkflowsEnabled( User, Locale )
|
ReferenceList |
getWorkflowsEnabled(fr.paris.lutece.api.user.User user,
Locale locale)
return a reference list which contains a list enabled workflow
|
boolean |
isAuthorized(int nIdResource,
String strResourceType,
int nIdWorkflow,
AdminUser user)
Deprecated.
use isAuthorized( int, String, int, User )
|
boolean |
isAuthorized(int nIdResource,
String strResourceType,
int nIdWorkflow,
fr.paris.lutece.api.user.User user)
Check that a given user is allowed to view a resource depending the state of the resource
|
boolean |
isAvailable()
Check if the workflow service is available.
|
boolean |
isDisplayTasksForm(int nIdAction,
Locale locale)
return true if a form is associate to the action
|
public static WorkflowService getInstance()
public boolean isAvailable()
public Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getActions(int nIdResource, String strResourceType, int nIdWorkflow, fr.paris.lutece.api.user.User user)
nIdResource - the document idstrResourceType - the document typeuser - the adminUsernIdWorkflow - the workflow id@Deprecated public Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getActions(int nIdResource, String strResourceType, int nIdWorkflow, AdminUser user)
nIdResource - the document idstrResourceType - the document typeuser - the adminUsernIdWorkflow - the workflow idpublic Map<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> getActions(List<Integer> listIdResource, String strResourceType, Integer nIdExternalParentId, int nIdWorkflow, fr.paris.lutece.api.user.User user)
listIdResource - the list of resource idstrResourceType - the document typenIdExternalParentId - the external parent identifiernIdWorkflow - the workflow iduser - the User@Deprecated public Map<Integer,List<fr.paris.lutece.plugins.workflowcore.business.action.Action>> getActions(List<Integer> listIdResource, String strResourceType, Integer nIdExternalParentId, int nIdWorkflow, AdminUser user)
listIdResource - the list of resource idstrResourceType - the document typenIdExternalParentId - the external parent identifiernIdWorkflow - the workflow iduser - the Userpublic boolean isDisplayTasksForm(int nIdAction,
Locale locale)
nIdAction - the action idlocale - the loacle@Deprecated public void doProcessAction(int nIdResource, String strResourceType, int nIdAction, Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, Locale locale, boolean bIsAutomatic)
nIdResource - the resource idstrResourceType - the resource typenIdAction - the action idnExternalParentId - the external parent idrequest - the requestlocale - localebIsAutomatic - Is automaticpublic void doProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
Locale locale,
boolean bIsAutomatic,
fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typenIdAction - the action idnExternalParentId - the external parent idrequest - the requestlocale - localebIsAutomatic - Is automaticuser - The User@Deprecated public String getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale)
nIdResource - the resource idstrResourceType - the resource typerequest - the requestnIdWorkflow - the workflow idlocale - the localepublic String getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale, fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typerequest - the requestnIdWorkflow - the workflow idlocale - the localeuser - The User@Deprecated public String getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale, Map<String,Object> model, String strTemplate)
nIdResource - the resource idstrResourceType - the resource typerequest - the requestnIdWorkflow - the workflow idlocale - the localemodel - The model to add to the default modelstrTemplate - The templatepublic String getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale, Map<String,Object> model, String strTemplate, fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typerequest - the requestnIdWorkflow - the workflow idlocale - the localemodel - The model to add to the default modelstrTemplate - The templateuser - The User@Deprecated public String doSaveTasksForm(int nIdResource, String strResourceType, int nIdAction, Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, Locale locale)
nIdResource - the resource idstrResourceType - the resource typenExternalParentId - the external parent idrequest - the requestnIdAction - the action idlocale - the localepublic String doSaveTasksForm(int nIdResource, String strResourceType, int nIdAction, Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, Locale locale, fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typenExternalParentId - the external parent idrequest - the requestnIdAction - the action idlocale - the localeuser - the userpublic List<Integer> getResourceIdListByIdState(int nIdState, String strResourceType)
nIdState - The id of the state of resources to getstrResourceType - The type of resources to getpublic List<Integer> getResourceIdListByIdState(int nIdState, String strResourceType, int nExternalParentId)
nIdState - The id of the state of resources to getstrResourceType - The type of resources to getpublic void doRemoveWorkFlowResource(int nIdResource,
String strResourceType)
nIdResource - the resource idstrResourceType - the resource typepublic void doRemoveWorkFlowResourceByListId(List<Integer> lListIdResource, String strResourceType, Integer nIdWorflow)
lListIdResource - list of id resourcestrResourceType - the ressource typenIdWorflow - the workflow id@Deprecated public String getDisplayTasksForm(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, Locale locale)
nIdResource - the document idstrResourceType - the document typerequest - the requestnIdAction - the action idlocale - the localepublic String getDisplayTasksForm(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, Locale locale, fr.paris.lutece.api.user.User user)
nIdResource - the document idstrResourceType - the document typerequest - the requestnIdAction - the action idlocale - the localeuser - the userpublic boolean isAuthorized(int nIdResource,
String strResourceType,
int nIdWorkflow,
fr.paris.lutece.api.user.User user)
nIdResource - the document idstrResourceType - the document typeuser - the UsernIdWorkflow - the workflow id@Deprecated public boolean isAuthorized(int nIdResource, String strResourceType, int nIdWorkflow, AdminUser user)
nIdResource - the document idstrResourceType - the document typeuser - the UsernIdWorkflow - the workflow idpublic List<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, int nIdWorkflowState, Integer nExternalParentId, fr.paris.lutece.api.user.User user)
strResourceType - the resource typenIdWorkflow - the workflow idnIdWorkflowState - The workflow state id or -1 for all workflow statesnExternalParentId - The external parent iduser - the User@Deprecated public List<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, int nIdWorkflowState, Integer nExternalParentId, AdminUser user)
strResourceType - the resource typenIdWorkflow - the workflow idnIdWorkflowState - The workflow state id or -1 for all workflow statesnExternalParentId - The external parent iduser - the Userpublic List<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, List<Integer> lListIdWorkflowState, Integer nExternalParentId, fr.paris.lutece.api.user.User user)
strResourceType - the resource typenIdWorkflow - the workflow idlListIdWorkflowState - The workflow state id or null for all workflow statesnExternalParentId - the externbal parent identifieruser - the User@Deprecated public List<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, List<Integer> lListIdWorkflowState, Integer nExternalParentId, AdminUser user)
strResourceType - the resource typenIdWorkflow - the workflow idlListIdWorkflowState - The workflow state id or null for all workflow statesnExternalParentId - the externbal parent identifieruser - the Userpublic ReferenceList getWorkflowsEnabled(fr.paris.lutece.api.user.User user, Locale locale)
user - the Userlocale - the locale@Deprecated public ReferenceList getWorkflowsEnabled(AdminUser user, Locale locale)
user - the Userlocale - the localepublic Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> getAllStateByWorkflow(int nIdWorkflow, fr.paris.lutece.api.user.User user)
user - the usernIdWorkflow - the workflow id@Deprecated public Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> getAllStateByWorkflow(int nIdWorkflow, AdminUser user)
user - the adminUsernIdWorkflow - the workflow idpublic fr.paris.lutece.plugins.workflowcore.business.state.State getState(int nIdResource,
String strResourceType,
int nIdWorkflow,
Integer nIdExternalParentId)
nIdResource - the document idstrResourceType - the document typenIdWorkflow - the workflow idnIdExternalParentId - the external parent id@Deprecated public void executeActionAutomatic(int nIdResource, String strResourceType, int nIdWorkflow, Integer nExternalParentId)
nIdResource - the document idstrResourceType - the document typenIdWorkflow - the workflow idnExternalParentId - the external parent idpublic void executeActionAutomatic(int nIdResource,
String strResourceType,
int nIdWorkflow,
Integer nExternalParentId,
fr.paris.lutece.api.user.User user)
nIdResource - the document idstrResourceType - the document typenIdWorkflow - the workflow idnExternalParentId - the external parent iduser - the userpublic List<fr.paris.lutece.plugins.workflowcore.business.action.Action> getMassActions(int nIdWorkflow)
nIdWorkflow - the id workflowpublic Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getMassActions(int nIdWorkflow, int nIdState, fr.paris.lutece.api.user.User user)
nIdWorkflow - the id workflownIdState - user - @Deprecated public boolean canProcessAction(int nIdResource, String strResourceType, int nIdAction, Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, boolean bIsAutomatic)
nIdResource - the id resourcestrResourceType - the resource typenIdAction - the id actionnExternalParentId - the external parent idrequest - the HTTP requestbIsAutomatic - is automatic actionpublic boolean canProcessAction(int nIdResource,
String strResourceType,
int nIdAction,
Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
boolean bIsAutomatic,
fr.paris.lutece.api.user.User user)
nIdResource - the id resourcestrResourceType - the resource typenIdAction - the id actionnExternalParentId - the external parent idrequest - the HTTP requestbIsAutomatic - is automatic actionuser - the RBACUser@Deprecated public void doProcessAutomaticReflexiveActions(int nIdResource, String strResourceType, int nIdState, Integer nIdExternalParent, Locale locale)
nIdResource - the resource idstrResourceType - the resource typenIdState - the state of the resource idnIdExternalParent - the external parent id*locale - localepublic void doProcessAutomaticReflexiveActions(int nIdResource,
String strResourceType,
int nIdState,
Integer nIdExternalParent,
Locale locale,
fr.paris.lutece.api.user.User user)
nIdResource - the resource idstrResourceType - the resource typenIdState - the state of the resource idnIdExternalParent - the external parent id*locale - localeuser - the userCopyright © 2023 City of Paris. All rights reserved.