Class WorkflowService

java.lang.Object
fr.paris.lutece.portal.service.workflow.WorkflowService

public final class WorkflowService extends Object
WorkflowService
  • Method Summary

    Modifier and Type
    Method
    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
    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 )
    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, 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.action.Action>
    getActions(int nIdResource, String strResourceType, int nIdWorkflow, AdminUser user)
    Deprecated.
    use getActions( int, String, 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
    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 )
    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
    Collection<fr.paris.lutece.plugins.workflowcore.business.state.State>
    getAllStateByWorkflow(int nIdWorkflow, AdminUser user)
    Deprecated.
    use getAllStateByWorkflow( int, User )
    getAuthorizedResourceList(String strResourceType, int nIdWorkflow, int nIdWorkflowState, Integer nExternalParentId, fr.paris.lutece.api.user.User user)
    Get all authorized resource Id
    getAuthorizedResourceList(String strResourceType, int nIdWorkflow, int nIdWorkflowState, Integer nExternalParentId, AdminUser user)
    Deprecated.
    use getAuthorizedResourceList( String, int, int, Integer, User )
    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
    getAuthorizedResourceList(String strResourceType, int nIdWorkflow, List<Integer> lListIdWorkflowState, Integer nExternalParentId, AdminUser user)
    Deprecated.
    use getAuthorizedResourceList( String, int, List, Integer, User )
    getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale)
    Deprecated.
    use getDisplayDocumentHistory( int, String, int, HttpServletRequest, Locale, User )
    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
    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 )
    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
    getDisplayTasksForm(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, Locale locale)
    Deprecated.
    use getDisplayTasksForm( int, String, int, HttpServletRequest, Locale, User )
    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
    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
    getResourceIdListByIdState(int nIdState, String strResourceType)
    Get the list of ids of resources of a given type that are in a given state
    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
    fr.paris.lutece.plugins.workflowcore.business.state.State
    getState(int nIdResource, String strResourceType, int nIdWorkflow, Integer nIdExternalParentId, Locale locale)
    returns the state of a given document of the document in the workflow and the user role
    getWorkflowsEnabled(fr.paris.lutece.api.user.User user, Locale locale)
    return a reference list which contains a list enabled workflow
    Deprecated.
    use getWorkflowsEnabled( User, Locale )
    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
    isAuthorized(int nIdResource, String strResourceType, int nIdWorkflow, AdminUser user)
    Deprecated.
    use isAuthorized( int, String, int, User )
    boolean
    Check if the workflow service is available.
    boolean
    isDisplayTasksForm(int nIdAction, Locale locale)
    return true if a form is associate to the action

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getInstance

      public static WorkflowService getInstance()
      Returns the unique instance of the service
      Returns:
      The instance of the service
    • isAvailable

      public boolean isAvailable()
      Check if the workflow service is available. To be available, the following conditions must be verified :
      • the Bean service is not null
      • the plugin-workflow must be enable
      Returns:
      true if the workflow service is available
    • getActions

      public 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
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      user - the adminUser
      nIdWorkflow - the workflow id
      Returns:
      a list of Action
    • getActions

      @Deprecated public 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 )
      returns a list of actions possible for a given document based on the status of the document in the workflow and the user role
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      user - the adminUser
      nIdWorkflow - the workflow id
      Returns:
      a list of Action
    • getActions

      public 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
      Parameters:
      listIdResource - the list of resource id
      strResourceType - the document type
      nIdExternalParentId - the external parent identifier
      nIdWorkflow - the workflow id
      user - the User
      Returns:
      a list of Action
    • getActions

      @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)
      Deprecated.
      getActions( List, String, Integer, int, 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
      Parameters:
      listIdResource - the list of resource id
      strResourceType - the document type
      nIdExternalParentId - the external parent identifier
      nIdWorkflow - the workflow id
      user - the User
      Returns:
      a list of Action
    • isDisplayTasksForm

      public boolean isDisplayTasksForm(int nIdAction, Locale locale)
      return true if a form is associate to the action
      Parameters:
      nIdAction - the action id
      locale - the loacle
      Returns:
      true if a form is associate to the action
    • doProcessAction

      @Deprecated public 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 )
      Proceed action given in parameter
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nIdAction - the action id
      nExternalParentId - the external parent id
      request - the request
      locale - locale
      bIsAutomatic - Is automatic
    • doProcessAction

      public 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
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nIdAction - the action id
      nExternalParentId - the external parent id
      request - the request
      locale - locale
      bIsAutomatic - Is automatic
      user - The User
    • getDisplayDocumentHistory

      @Deprecated public String getDisplayDocumentHistory(int nIdResource, String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, Locale locale)
      Deprecated.
      use getDisplayDocumentHistory( int, String, int, HttpServletRequest, Locale, User )
      returns the actions history performed on a resource
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      request - the request
      nIdWorkflow - the workflow id
      locale - the locale
      Returns:
      the history of actions performed on a resource
    • getDisplayDocumentHistory

      public 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
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      request - the request
      nIdWorkflow - the workflow id
      locale - the locale
      user - The User
      Returns:
      the history of actions performed on a resource
    • getDisplayDocumentHistory

      @Deprecated public 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 )
      returns the actions history performed on a resource
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      request - the request
      nIdWorkflow - the workflow id
      locale - the locale
      model - The model to add to the default model
      strTemplate - The template
      Returns:
      the history of actions performed on a resource
    • getDisplayDocumentHistory

      public 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
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      request - the request
      nIdWorkflow - the workflow id
      locale - the locale
      model - The model to add to the default model
      strTemplate - The template
      user - The User
      Returns:
      the history of actions performed on a resource
    • doSaveTasksForm

      @Deprecated public 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 )
      Perform the information on the various tasks associated with the given action specified in parameter
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nExternalParentId - the external parent id
      request - the request
      nIdAction - the action id
      locale - the locale
      Returns:
      null if there is no error in the task form else return the error message url
    • doSaveTasksForm

      public 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
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nExternalParentId - the external parent id
      request - the request
      nIdAction - the action id
      locale - the locale
      user - the user
      Returns:
      null if there is no error in the task form else return the error message url
    • getResourceIdListByIdState

      public List<Integer> getResourceIdListByIdState(int nIdState, String strResourceType)
      Get the list of ids of resources of a given type that are in a given state
      Parameters:
      nIdState - The id of the state of resources to get
      strResourceType - The type of resources to get
      Returns:
      The list of resources matching both given state id and resource given. Return an empty list if no resource was found, or if the state does not exist.
    • getResourceIdListByIdState

      public 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
      Parameters:
      nIdState - The id of the state of resources to get
      strResourceType - The type of resources to get
      Returns:
      The list of resources matching both given state id and resource given. Return an empty list if no resource was found, or if the state does not exist.
    • doRemoveWorkFlowResource

      public void doRemoveWorkFlowResource(int nIdResource, String strResourceType)
      Remove in every workflows the resource specified in parameter
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
    • doRemoveWorkFlowResourceByListId

      public void doRemoveWorkFlowResourceByListId(List<Integer> lListIdResource, String strResourceType, Integer nIdWorflow)
      Remove list of resource workflow by list id
      Parameters:
      lListIdResource - list of id resource
      strResourceType - the ressource type
      nIdWorflow - the workflow id
    • getDisplayTasksForm

      @Deprecated public String getDisplayTasksForm(int nIdResource, String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, Locale locale)
      Deprecated.
      use getDisplayTasksForm( int, String, int, HttpServletRequest, Locale, User )
      returns the tasks form
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      request - the request
      nIdAction - the action id
      locale - the locale
      Returns:
      the tasks form associated to the action
    • getDisplayTasksForm

      public 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
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      request - the request
      nIdAction - the action id
      locale - the locale
      user - the user
      Returns:
      the tasks form associated to the action
    • isAuthorized

      public 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
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      user - the User
      nIdWorkflow - the workflow id
      Returns:
      a list of Action
    • isAuthorized

      @Deprecated public boolean isAuthorized(int nIdResource, String strResourceType, int nIdWorkflow, AdminUser user)
      Deprecated.
      use isAuthorized( int, String, int, User )
      Check that a given user is allowed to view a resource depending the state of the resource
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      user - the User
      nIdWorkflow - the workflow id
      Returns:
      a list of Action
    • getAuthorizedResourceList

      public List<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, int nIdWorkflowState, Integer nExternalParentId, fr.paris.lutece.api.user.User user)
      Get all authorized resource Id
      Parameters:
      strResourceType - the resource type
      nIdWorkflow - the workflow id
      nIdWorkflowState - The workflow state id or -1 for all workflow states
      nExternalParentId - The external parent id
      user - the User
      Returns:
      a list resource id
    • getAuthorizedResourceList

      @Deprecated public List<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, int nIdWorkflowState, Integer nExternalParentId, AdminUser user)
      Deprecated.
      use getAuthorizedResourceList( String, int, int, Integer, User )
      Get all authorized resource Id
      Parameters:
      strResourceType - the resource type
      nIdWorkflow - the workflow id
      nIdWorkflowState - The workflow state id or -1 for all workflow states
      nExternalParentId - The external parent id
      user - the User
      Returns:
      a list resource id
    • getAuthorizedResourceList

      public 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
      Parameters:
      strResourceType - the resource type
      nIdWorkflow - the workflow id
      lListIdWorkflowState - The workflow state id or null for all workflow states
      nExternalParentId - the externbal parent identifier
      user - the User
      Returns:
      a list resource id
    • getAuthorizedResourceList

      @Deprecated public List<Integer> getAuthorizedResourceList(String strResourceType, int nIdWorkflow, List<Integer> lListIdWorkflowState, Integer nExternalParentId, AdminUser user)
      Deprecated.
      use getAuthorizedResourceList( String, int, List, Integer, User )
      Get all authorized resource Id by list of state
      Parameters:
      strResourceType - the resource type
      nIdWorkflow - the workflow id
      lListIdWorkflowState - The workflow state id or null for all workflow states
      nExternalParentId - the externbal parent identifier
      user - the User
      Returns:
      a list resource id
    • getWorkflowsEnabled

      public ReferenceList getWorkflowsEnabled(fr.paris.lutece.api.user.User user, Locale locale)
      return a reference list which contains a list enabled workflow
      Parameters:
      user - the User
      locale - the locale
      Returns:
      a reference list which contains a list enabled workflow
    • getWorkflowsEnabled

      @Deprecated public ReferenceList getWorkflowsEnabled(AdminUser user, Locale locale)
      Deprecated.
      use getWorkflowsEnabled( User, Locale )
      return a reference list which contains a list enabled workflow
      Parameters:
      user - the User
      locale - the locale
      Returns:
      a reference list which contains a list enabled workflow
    • getAllStateByWorkflow

      public 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
      Parameters:
      user - the user
      nIdWorkflow - the workflow id
      Returns:
      the state of a given document
    • getAllStateByWorkflow

      @Deprecated public Collection<fr.paris.lutece.plugins.workflowcore.business.state.State> getAllStateByWorkflow(int nIdWorkflow, AdminUser user)
      Deprecated.
      use getAllStateByWorkflow( int, User )
      returns all state of a given workflow
      Parameters:
      user - the adminUser
      nIdWorkflow - the workflow id
      Returns:
      the state of a given document
    • getState

      public 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
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      nIdWorkflow - the workflow id
      nIdExternalParentId - the external parent id

      It is recommended to use getState(int, String, int, Integer, Locale) instead, which lets you provide the locale from your environment or the incoming http request. The default locale is set through the lutece.i18n.defaultLocale property.

      Returns:
      the state of a given document
      See Also:
    • getState

      public fr.paris.lutece.plugins.workflowcore.business.state.State getState(int nIdResource, String strResourceType, int nIdWorkflow, Integer nIdExternalParentId, Locale locale)
      returns the state of a given document of the document in the workflow and the user role
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      nIdWorkflow - the workflow id
      nIdExternalParentId - the external parent id
      locale - the locale. If the provided locale is null, default locale is set through the lutece.i18n.defaultLocale property.
      Returns:
      the state of a given document
    • executeActionAutomatic

      @Deprecated public void executeActionAutomatic(int nIdResource, String strResourceType, int nIdWorkflow, Integer nExternalParentId)
      Deprecated.
      use executeActionAutomatic( int, String, int, Integer, User )
      Execute action automatic
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      nIdWorkflow - the workflow id
      nExternalParentId - the external parent id
    • executeActionAutomatic

      public void executeActionAutomatic(int nIdResource, String strResourceType, int nIdWorkflow, Integer nExternalParentId, fr.paris.lutece.api.user.User user)
      Execute action automatic
      Parameters:
      nIdResource - the document id
      strResourceType - the document type
      nIdWorkflow - the workflow id
      nExternalParentId - the external parent id
      user - the user
    • getMassActions

      public List<fr.paris.lutece.plugins.workflowcore.business.action.Action> getMassActions(int nIdWorkflow)
      Get the list of mass actions from a given id workflow
      Parameters:
      nIdWorkflow - the id workflow
      Returns:
      the list of mass actions
    • getMassActions

      public 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
      Parameters:
      nIdWorkflow - the id workflow
      nIdState -
      user -
      Returns:
      the list of mass actions
    • canProcessAction

      @Deprecated public 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 )
      Check if the action can be proceed for the given resource
      Parameters:
      nIdResource - the id resource
      strResourceType - the resource type
      nIdAction - the id action
      nExternalParentId - the external parent id
      request - the HTTP request
      bIsAutomatic - is automatic action
      Returns:
      true if the action can proceed, false otherwise
    • canProcessAction

      public 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
      Parameters:
      nIdResource - the id resource
      strResourceType - the resource type
      nIdAction - the id action
      nExternalParentId - the external parent id
      request - the HTTP request
      bIsAutomatic - is automatic action
      user - the RBACUser
      Returns:
      true if the action can proceed, false otherwise
    • doProcessAutomaticReflexiveActions

      @Deprecated public void doProcessAutomaticReflexiveActions(int nIdResource, String strResourceType, int nIdState, Integer nIdExternalParent, Locale locale)
      Deprecated.
      use doProcessAutomaticReflexiveActions( int, String, int, Integer, Locale, User )
      Proceed automatic reflexive actions of state given in parameter. This method should be called anytime a service changed the state of a resource without proceeding a workflow action
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nIdState - the state of the resource id
      nIdExternalParent - the external parent id*
      locale - locale
    • doProcessAutomaticReflexiveActions

      public 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. This method should be called anytime a service changed the state of a resource without proceeding a workflow action
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nIdState - the state of the resource id
      nIdExternalParent - the external parent id*
      locale - locale
      user - the user