All Known Implementing Classes:
BatchDAO

public interface IBatchDAO
IBatchDAO Interface
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countIdentities(int resourceId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
     
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory>
    getBatchHistory(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
     
    int
    getBatchInitialActionId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the id of the action for batches in initial state
    int
    getBatchInTreatmentActionId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the id of the action for batches in treatment state
    void
    insert(Batch batch, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectBatchByReference(fr.paris.lutece.portal.service.plugin.Plugin plugin, String reference)
     
    selectBatchsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the batch objects and returns them as a list
    selectBatchsListByIds(fr.paris.lutece.portal.service.plugin.Plugin _plugin, List<Integer> listIds)
    Load the data of all the avant objects and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectBatchsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the batch objects and returns them as a referenceList
    selectBatchState(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
     
    selectBatchStates(String filterAppCode, String filterClientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
     
    selectClosableBatches(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the batches in the in treatment workflow state and returns them as a list
    selectExpiredBatchsList(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the expired batch objects and returns them as a list.
    selectIdBatchsList(Integer batchStateId, String filterAppCode, String filterClientCode, String filterReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the batch objects that are in given state and returns them as a list
    selectInitialStateBatches(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the batches in the initial workflow state and returns them as a list
    void
    store(Batch batch, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table
  • Method Details

    • insert

      void insert(Batch batch, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      batch - instance of the Batch object to insert
      plugin - the Plugin
    • store

      void store(Batch batch, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      batch - the reference of the Batch
      plugin - the Plugin
    • delete

      void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nKey - The identifier of the Batch to delete
      plugin - the Plugin
    • load

      Optional<Batch> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nKey - The identifier of the batch
      plugin - the Plugin
      Returns:
      The instance of the batch
    • selectBatchsList

      List<Batch> selectBatchsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the batch objects and returns them as a list
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the batch objects
    • selectExpiredBatchsList

      List<Batch> selectExpiredBatchsList(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the expired batch objects and returns them as a list.
      A batch is considered expired if it is finalized and it's creation date exceeds data retention time of the client.
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the expired batch objects
    • selectInitialStateBatches

      List<Batch> selectInitialStateBatches(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the batches in the initial workflow state and returns them as a list
      Parameters:
      batchLimit - the limit
      plugin - the plugin
      Returns:
      batches in the initial workflow state
    • selectClosableBatches

      List<Batch> selectClosableBatches(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the batches in the in treatment workflow state and returns them as a list
      Parameters:
      batchLimit - the limit
      plugin - the plugin
      Returns:
      batches in the initial workflow state
    • selectIdBatchsList

      List<Integer> selectIdBatchsList(Integer batchStateId, String filterAppCode, String filterClientCode, String filterReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the batch objects that are in given state and returns them as a list
      Parameters:
      batchStateId - the id of the batch state to filter results with
      filterAppCode - the application code to filter the results with
      plugin - the Plugin
      Returns:
      The list which contains the id of all the batch objects
    • selectBatchsReferenceList

      fr.paris.lutece.util.ReferenceList selectBatchsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the batch objects and returns them as a referenceList
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the batch objects
    • selectBatchsListByIds

      List<Batch> selectBatchsListByIds(fr.paris.lutece.portal.service.plugin.Plugin _plugin, List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Parameters:
      _plugin - the Plugin
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • selectBatchByReference

      Batch selectBatchByReference(fr.paris.lutece.portal.service.plugin.Plugin plugin, String reference)
    • selectBatchStates

      List<ResourceState> selectBatchStates(String filterAppCode, String filterClientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • selectBatchState

      ResourceState selectBatchState(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • countIdentities

      int countIdentities(int resourceId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • getBatchHistory

      List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> getBatchHistory(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • getBatchInitialActionId

      int getBatchInitialActionId(fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Get the id of the action for batches in initial state
      Parameters:
      plugin - the plugin
      Returns:
      the action id
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • getBatchInTreatmentActionId

      int getBatchInTreatmentActionId(fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Get the id of the action for batches in treatment state
      Parameters:
      plugin - the plugin
      Returns:
      the action id
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException