Class EvidenceService


  • public class EvidenceService
    extends java.lang.Object
    Evidence Service class
    • Constructor Detail

      • EvidenceService

        public EvidenceService()
    • Method Detail

      • auditAndGenerateReportIfKo

        public EvidenceAuditReportLine auditAndGenerateReportIfKo​(EvidenceAuditParameters parameters,
                                                                  java.util.List<java.lang.String> securedLines,
                                                                  java.lang.String id)
        audit and generate
        Parameters:
        parameters - parameters
        securedLines - secured Lin
        id - 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 name
        fileToExtract -
        extension -
        Returns:
        LifeCycleTraceabilitySecureFileObject
        Throws:
        EvidenceAuditException - the 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 id
        metadataType - the metadataType
        storageStrategies - the storageStrategies