Class BatchService
java.lang.Object
fr.paris.lutece.plugins.identityimport.service.BatchService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloseBatches(int batchLimit) Find batches that can be closed, and close themfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.importing.BatchStatusDtogetBatchStatus(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.BatchDtoimportBatchFromApi(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.importing.BatchImportRequest request, String clientCode) intimportBatchFromIhm(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.BatchDto batch, fr.paris.lutece.api.user.User user, String feedToken) static BatchServiceinstance()launchBatches(int batchLimit) Find newly created batches (limited to batchLimit param) and launch them automatically.voidpurgeBatch(int batchId) Purge given batch.purgeBatches(int batchLimit) Find expired batches (limited to batchLimit param) and purge them.
-
Constructor Details
-
BatchService
public BatchService()
-
-
Method Details
-
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 ofCandidateIdentity,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 Purge given batch. Deletion ofCandidateIdentity,CandidateIdentityAttribute,CandidateIdentityHistory- Parameters:
batchId- the id of the batch- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
launchBatches
Find newly created batches (limited to batchLimit param) and launch them automatically.- Parameters:
batchLimit- the limit- Returns:
- logs
-
closeBatches
Find batches that can be closed, and close them- Parameters:
batchLimit- the limit- Returns:
- logs
-
getBean
-
getDto
-
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
-