Class EvidenceService
- java.lang.Object
-
- fr.gouv.vitam.worker.core.plugin.evidence.EvidenceService
-
public class EvidenceService extends java.lang.Object
Evidence Service class
-
-
Constructor Summary
Constructors Constructor Description EvidenceService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EvidenceAuditReportLine
auditAndGenerateReportIfKo(EvidenceAuditParameters parameters, java.util.List<java.lang.String> securedLines, java.lang.String id)
audit and generatejava.io.File
downloadAndExtractDataFromStorage(java.lang.String fileName, java.lang.String fileToExtract, java.lang.String extension, boolean delele)
EvidenceAuditParameters
evidenceAuditsChecks(java.lang.String id, MetadataType metadataType, java.util.List<StorageStrategy> storageStrategies)
evidenceAuditsChecksjava.io.File
extractFileStreamFromZip(java.io.File file, java.lang.String fileToExtract, java.lang.String extension, boolean delete)
static LifeCycleTraceabilitySecureFileObject
loadInformationFromFile(java.util.List<java.lang.String> securedLines, MetadataType metadataType, java.lang.String id)
-
-
-
Field Detail
-
JSON
public static final java.lang.String JSON
- See Also:
- Constant Field Values
-
OK
public static final java.lang.String OK
- See Also:
- Constant Field Values
-
WARNING
public static final java.lang.String WARNING
- See Also:
- Constant Field Values
-
-
Method Detail
-
auditAndGenerateReportIfKo
public EvidenceAuditReportLine auditAndGenerateReportIfKo(EvidenceAuditParameters parameters, java.util.List<java.lang.String> securedLines, java.lang.String id)
audit and generate- Parameters:
parameters
- parameterssecuredLines
- secured Linid
- identifier- Returns:
- EvidenceAuditReportLine
-
downloadAndExtractDataFromStorage
public java.io.File downloadAndExtractDataFromStorage(java.lang.String fileName, java.lang.String fileToExtract, java.lang.String extension, boolean delele) throws EvidenceAuditException
- Parameters:
fileName
- the file namefileToExtract
-extension
-- Returns:
- LifeCycleTraceabilitySecureFileObject
- Throws:
EvidenceAuditException
- the EvidenceAuditException
-
loadInformationFromFile
public static LifeCycleTraceabilitySecureFileObject loadInformationFromFile(java.util.List<java.lang.String> securedLines, MetadataType metadataType, java.lang.String id) throws EvidenceAuditException
- Throws:
EvidenceAuditException
-
extractFileStreamFromZip
public java.io.File extractFileStreamFromZip(java.io.File file, java.lang.String fileToExtract, java.lang.String extension, boolean delete) throws EvidenceAuditException
- Throws:
EvidenceAuditException
-
evidenceAuditsChecks
public EvidenceAuditParameters evidenceAuditsChecks(java.lang.String id, MetadataType metadataType, java.util.List<StorageStrategy> storageStrategies)
evidenceAuditsChecks- Parameters:
id
- the idmetadataType
- the metadataTypestorageStrategies
- the storageStrategies
-
-