Class BatchReportServiceImpl
- java.lang.Object
-
- fr.gouv.vitam.batch.report.rest.service.BatchReportServiceImpl
-
public class BatchReportServiceImpl extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BatchReportServiceImpl(WorkspaceClientFactory workspaceClientFactory, EliminationActionUnitRepository eliminationActionUnitRepository, PurgeUnitRepository purgeUnitRepository, PurgeObjectGroupRepository purgeObjectGroupRepository, TransferReplyUnitRepository transferReplyUnitRepository, UpdateUnitReportRepository updateUnitReportRepository, BulkUpdateUnitMetadataReportRepository bulkUpdateUnitMetadataReportRepository, PreservationReportRepository preservationReportRepository, AuditReportRepository auditReportRepository, UnitComputedInheritedRulesInvalidationRepository unitComputedInheritedRulesInvalidationRepository, EvidenceAuditReportRepository evidenceAuditReportRepository, TraceabilityReportRepository traceabilityReportRepository, ExtractedMetadataRepository extractedMetadataRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendAuditReport(java.lang.String processId, java.util.List<AuditObjectGroupReportEntry> auditEntries, int tenantId)
void
appendBulkUpdateUnitMetadataReport(java.util.List<BulkUpdateUnitMetadataReportEntry> unitEntries)
void
appendEliminationActionUnitReport(java.lang.String processId, java.util.List<EliminationActionUnitReportEntry> entries, int tenantId)
void
appendEvidenceAuditReport(java.lang.String processId, java.util.List<EvidenceAuditReportEntry> auditEntries, int tenantId)
void
appendPreservationReport(java.lang.String processId, java.util.List<PreservationReportEntry> preservationEntries, int tenantId)
void
appendPurgeObjectGroupReport(java.lang.String processId, java.util.List<PurgeObjectGroupReportEntry> entries, int tenantId)
void
appendPurgeUnitReport(java.lang.String processId, java.util.List<PurgeUnitReportEntry> entries, int tenantId)
void
appendTraceabilityReport(java.lang.String processId, java.util.List<TraceabilityReportEntry> entries, int tenantId)
void
appendTransferReplyUnitReport(java.lang.String processId, java.util.List<TransferReplyUnitReportEntry> entries, int tenantId)
void
appendUnitComputedInheritedRulesInvalidationReport(java.lang.String processId, java.util.List<UnitComputedInheritedRulesInvalidationReportEntry> unitEntries, int tenantId)
void
appendUnitReport(java.util.List<UpdateUnitMetadataReportEntry> unitEntries)
void
createExtractedMetadataDistributionFileForAu(java.lang.String processId, int tenant)
void
deleteAuditByIdAndTenant(java.lang.String processId, int tenantId)
void
deleteBulkUpdateUnitMetadataByIdAndTenant(java.lang.String processId, int tenantId)
void
deleteEliminationUnitByProcessId(java.lang.String processId, int tenantId)
void
deleteEvidenceAuditByIdAndTenant(java.lang.String processId, int tenantId)
void
deletePreservationByIdAndTenant(java.lang.String processId, int tenantId)
void
deletePurgeObjectGroupByIdAndTenant(java.lang.String processId, int tenantId)
void
deletePurgeUnitByProcessId(java.lang.String processId, int tenantId)
void
deleteTraceabilityByIdAndTenant(java.lang.String processId, int tenantId)
void
deleteTransferReplyUnitByProcessId(java.lang.String processId, int tenantId)
void
deleteUnitComputedInheritedRulesInvalidationReport(java.lang.String processId, int tenantId)
void
deleteUpdateUnitByIdAndTenant(java.lang.String processId, int tenantId)
void
exportPurgeAccessionRegister(java.lang.String processId, java.lang.String filename, int tenantId)
void
exportPurgeDistinctObjectGroupOfDeletedUnits(java.lang.String processId, java.lang.String filename, int tenantId)
void
exportUnitsToInvalidate(java.lang.String processId, int tenantId, ReportExportRequest reportExportRequest)
void
storeExtractedMetadataForAu(java.util.List<ExtractedMetadata> extractedMetadatas)
void
storeFileToWorkspace(Report reportInfo)
-
-
-
Constructor Detail
-
BatchReportServiceImpl
public BatchReportServiceImpl(WorkspaceClientFactory workspaceClientFactory, EliminationActionUnitRepository eliminationActionUnitRepository, PurgeUnitRepository purgeUnitRepository, PurgeObjectGroupRepository purgeObjectGroupRepository, TransferReplyUnitRepository transferReplyUnitRepository, UpdateUnitReportRepository updateUnitReportRepository, BulkUpdateUnitMetadataReportRepository bulkUpdateUnitMetadataReportRepository, PreservationReportRepository preservationReportRepository, AuditReportRepository auditReportRepository, UnitComputedInheritedRulesInvalidationRepository unitComputedInheritedRulesInvalidationRepository, EvidenceAuditReportRepository evidenceAuditReportRepository, TraceabilityReportRepository traceabilityReportRepository, ExtractedMetadataRepository extractedMetadataRepository)
-
-
Method Detail
-
appendEliminationActionUnitReport
public void appendEliminationActionUnitReport(java.lang.String processId, java.util.List<EliminationActionUnitReportEntry> entries, int tenantId)
-
appendPurgeUnitReport
public void appendPurgeUnitReport(java.lang.String processId, java.util.List<PurgeUnitReportEntry> entries, int tenantId)
-
appendPurgeObjectGroupReport
public void appendPurgeObjectGroupReport(java.lang.String processId, java.util.List<PurgeObjectGroupReportEntry> entries, int tenantId)
-
appendTransferReplyUnitReport
public void appendTransferReplyUnitReport(java.lang.String processId, java.util.List<TransferReplyUnitReportEntry> entries, int tenantId)
-
appendPreservationReport
public void appendPreservationReport(java.lang.String processId, java.util.List<PreservationReportEntry> preservationEntries, int tenantId) throws BatchReportException
- Throws:
BatchReportException
-
appendUnitReport
public void appendUnitReport(java.util.List<UpdateUnitMetadataReportEntry> unitEntries)
-
appendBulkUpdateUnitMetadataReport
public void appendBulkUpdateUnitMetadataReport(java.util.List<BulkUpdateUnitMetadataReportEntry> unitEntries)
-
appendUnitComputedInheritedRulesInvalidationReport
public void appendUnitComputedInheritedRulesInvalidationReport(java.lang.String processId, java.util.List<UnitComputedInheritedRulesInvalidationReportEntry> unitEntries, int tenantId) throws BatchReportException
- Throws:
BatchReportException
-
deleteUnitComputedInheritedRulesInvalidationReport
public void deleteUnitComputedInheritedRulesInvalidationReport(java.lang.String processId, int tenantId)
-
exportUnitsToInvalidate
public void exportUnitsToInvalidate(java.lang.String processId, int tenantId, ReportExportRequest reportExportRequest) throws java.io.IOException, ContentAddressableStorageServerException
- Throws:
java.io.IOException
ContentAddressableStorageServerException
-
appendAuditReport
public void appendAuditReport(java.lang.String processId, java.util.List<AuditObjectGroupReportEntry> auditEntries, int tenantId)
-
appendEvidenceAuditReport
public void appendEvidenceAuditReport(java.lang.String processId, java.util.List<EvidenceAuditReportEntry> auditEntries, int tenantId) throws BatchReportException
- Throws:
BatchReportException
-
appendTraceabilityReport
public void appendTraceabilityReport(java.lang.String processId, java.util.List<TraceabilityReportEntry> entries, int tenantId)
-
storeFileToWorkspace
public void storeFileToWorkspace(Report reportInfo) throws java.io.IOException, ContentAddressableStorageServerException, InvalidParseOperationException
- Throws:
java.io.IOException
ContentAddressableStorageServerException
InvalidParseOperationException
-
exportPurgeDistinctObjectGroupOfDeletedUnits
public void exportPurgeDistinctObjectGroupOfDeletedUnits(java.lang.String processId, java.lang.String filename, int tenantId) throws java.io.IOException, ContentAddressableStorageServerException
- Throws:
java.io.IOException
ContentAddressableStorageServerException
-
exportPurgeAccessionRegister
public void exportPurgeAccessionRegister(java.lang.String processId, java.lang.String filename, int tenantId) throws java.io.IOException, ContentAddressableStorageServerException, InvalidParseOperationException
- Throws:
java.io.IOException
ContentAddressableStorageServerException
InvalidParseOperationException
-
deleteEliminationUnitByProcessId
public void deleteEliminationUnitByProcessId(java.lang.String processId, int tenantId)
-
deletePurgeUnitByProcessId
public void deletePurgeUnitByProcessId(java.lang.String processId, int tenantId)
-
deletePurgeObjectGroupByIdAndTenant
public void deletePurgeObjectGroupByIdAndTenant(java.lang.String processId, int tenantId)
-
deleteTransferReplyUnitByProcessId
public void deleteTransferReplyUnitByProcessId(java.lang.String processId, int tenantId)
-
deletePreservationByIdAndTenant
public void deletePreservationByIdAndTenant(java.lang.String processId, int tenantId)
-
deleteAuditByIdAndTenant
public void deleteAuditByIdAndTenant(java.lang.String processId, int tenantId)
-
deleteUpdateUnitByIdAndTenant
public void deleteUpdateUnitByIdAndTenant(java.lang.String processId, int tenantId)
-
deleteBulkUpdateUnitMetadataByIdAndTenant
public void deleteBulkUpdateUnitMetadataByIdAndTenant(java.lang.String processId, int tenantId)
-
deleteEvidenceAuditByIdAndTenant
public void deleteEvidenceAuditByIdAndTenant(java.lang.String processId, int tenantId)
-
storeExtractedMetadataForAu
public void storeExtractedMetadataForAu(java.util.List<ExtractedMetadata> extractedMetadatas)
-
createExtractedMetadataDistributionFileForAu
public void createExtractedMetadataDistributionFileForAu(java.lang.String processId, int tenant) throws java.io.IOException, ContentAddressableStorageServerException
- Throws:
java.io.IOException
ContentAddressableStorageServerException
-
deleteTraceabilityByIdAndTenant
public void deleteTraceabilityByIdAndTenant(java.lang.String processId, int tenantId)
-
-