Class ResourceWorkflowDAO

java.lang.Object
fr.paris.lutece.plugins.workflow.business.resource.ResourceWorkflowDAO
All Implemented Interfaces:
fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO

@ApplicationScoped @Named("workflow.resourceWorkflowDAO") public class ResourceWorkflowDAO extends Object implements fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
ResourceWorkflowDAO
  • Constructor Details

    • ResourceWorkflowDAO

      public ResourceWorkflowDAO()
  • Method Details

    • insert

      public void insert(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow)
      Specified by:
      insert in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • store

      public void store(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow)
      Specified by:
      store in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • load

      public fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow load(int nIdResource, String strResourceType, int nIdWorkflow)
      Specified by:
      load in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • selectResourceWorkflowByWorkflow

      public List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow> selectResourceWorkflowByWorkflow(int nIdWorkflow)
      Specified by:
      selectResourceWorkflowByWorkflow in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • selectResourceWorkflowByState

      public List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow> selectResourceWorkflowByState(int nIdState)
      Specified by:
      selectResourceWorkflowByState in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • selectResourceWorkflowByState

      public List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow> selectResourceWorkflowByState(int nIdState, int nIdParent)
      Specified by:
      selectResourceWorkflowByState in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • selectResourceWorkflowByListState

      public List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow> selectResourceWorkflowByListState(List<Integer> listIdStateBefore)
      Specified by:
      selectResourceWorkflowByListState in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • delete

      public void delete(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow)
      Specified by:
      delete in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • selectWorkgroups

      public List<String> selectWorkgroups(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow)
      Specified by:
      selectWorkgroups in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • deleteWorkgroups

      public void deleteWorkgroups(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow)
      Specified by:
      deleteWorkgroups in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • removeWorkgroupsByListIdResource

      public void removeWorkgroupsByListIdResource(List<Integer> listIdResource, String strResourceType, Integer nIdWorflow)
      Specified by:
      removeWorkgroupsByListIdResource in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • removeByListIdResource

      public void removeByListIdResource(List<Integer> listIdResource, String strResourceType, Integer nIdWorflow)
      Specified by:
      removeByListIdResource in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • insertWorkgroup

      public void insertWorkgroup(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, String strWorkgroup)
      Specified by:
      insertWorkgroup in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • getListResourceWorkflowByFilter

      public List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow> getListResourceWorkflowByFilter(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflowFilter filter)
      Specified by:
      getListResourceWorkflowByFilter in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • selectResourceIdByWorkflow

      public List<Integer> selectResourceIdByWorkflow(int nIdWorkflow)
      Specified by:
      selectResourceIdByWorkflow in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • getListResourceWorkflowIdByFilter

      public List<Integer> getListResourceWorkflowIdByFilter(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflowFilter filter)
      Specified by:
      getListResourceWorkflowIdByFilter in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • getListResourceWorkflowIdByFilter

      public List<Integer> getListResourceWorkflowIdByFilter(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflowFilter filter, List<Integer> lListIdWorkflowState)
      Specified by:
      getListResourceWorkflowIdByFilter in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • getListIdStateByListId

      public Map<Integer,Integer> getListIdStateByListId(List<Integer> lListIdRessource, int nIdWorflow, String strResourceType, Integer nIdExternalParentId)
      Specified by:
      getListIdStateByListId in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • lock

      public boolean lock(int nIdResource, String strResourceType, int nIdWorkflow, List<Integer> listIdStateBefore)
      Specified by:
      lock in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO
    • lock

      public boolean lock(int nIdResource, String strResourceType, int nIdWorkflow, List<Integer> listIdStateBefore, int nLockTimeout)
      Claims a resource for the processing of an action, with the given timeout
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nIdWorkflow - the workflow id
      listIdStateBefore - the states from which the action can be processed
      nLockTimeout - the seconds after which a claim is ignored
      Returns:
      true if the resource is claimed
    • unlock

      public void unlock(int nIdResource, String strResourceType, int nIdWorkflow)
      Specified by:
      unlock in interface fr.paris.lutece.plugins.workflowcore.business.resource.IResourceWorkflowDAO