java.lang.Object
fr.paris.lutece.plugins.identityimport.service.BatchService

public class BatchService extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    closeBatches(int batchLimit)
    Find batches that can be closed, and close them
    fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.importing.BatchStatusDto
    getBatchStatus(String strBatchReference, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.importing.BatchStatusMode mode)
     
    getBean(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.BatchDto batch)
     
    fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.BatchDto
    getDto(Batch batch)
     
    importBatchFromApi(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.importing.BatchImportRequest request, String clientCode)
     
    int
    importBatchFromIhm(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.BatchDto batch, fr.paris.lutece.api.user.User user, String feedToken)
     
     
    launchBatches(int batchLimit)
    Find newly created batches (limited to batchLimit param) and launch them automatically.
    void
    purgeBatch(int batchId)
    Purge given batch.
    purgeBatches(int batchLimit)
    Find expired batches (limited to batchLimit param) and purge them.

    Methods inherited from class java.lang.Object

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

    • BatchService

      public BatchService()
  • Method Details

    • instance

      public static BatchService instance()
    • importBatchFromApi

      public String importBatchFromApi(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.importing.BatchImportRequest request, String clientCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • importBatchFromIhm

      public int importBatchFromIhm(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.BatchDto batch, fr.paris.lutece.api.user.User user, String feedToken) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • purgeBatches

      public StringBuilder purgeBatches(int batchLimit) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Find expired batches (limited to batchLimit param) and purge them. Deletion of CandidateIdentity, CandidateIdentityAttribute, CandidateIdentityHistory
      Parameters:
      batchLimit -
      Returns:
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • purgeBatch

      public void purgeBatch(int batchId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Parameters:
      batchId - the id of the batch
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • launchBatches

      public StringBuilder launchBatches(int batchLimit)
      Find newly created batches (limited to batchLimit param) and launch them automatically.
      Parameters:
      batchLimit - the limit
      Returns:
      logs
    • closeBatches

      public StringBuilder closeBatches(int batchLimit)
      Find batches that can be closed, and close them
      Parameters:
      batchLimit - the limit
      Returns:
      logs
    • getBean

      public Batch getBean(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.BatchDto batch)
    • getDto

      public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.BatchDto getDto(Batch batch)
    • getBatchStatus

      public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.importing.BatchStatusDto getBatchStatus(String strBatchReference, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.importing.BatchStatusMode mode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException