Esempio n. 1
0
        public Response.Ingest Ingestion(bool addBccToEmailDigests, bool addCommunicationDateToEmailDigests, string analysisLanguage, bool calculateAuditedSize, bool carveFileSystemUnallocatedSpace, bool carveUnidentifiedData, bool createThumbnails, string [] digests, bool enableExactQueries, bool extractFromSlackSpace, bool extractNamedEntities, bool extractShingles, bool hideEmbeddedImmaterialData, bool identifyPhysicalFiles, int maxDigestSize, int maxStoredBinarySize, bool processFamilyFields, bool processForensicImages, bool processLooseFileContents, bool processText, bool processTextSummaries, bool recoverDeletedFiles, string reportProcessingStatus, bool reuseEvidenceStores, bool skinToneAnalysis, bool stemming, bool stopWords, bool storeBinary, Request.CustomMetadata customMetadata, string encoding, string path, string type, string custodian, string evidenceContainer, bool embedBroker, int workerCount, int workerMemory, bool evidenceRepository, string caseId, string token)
        {
            string service = "http://" + url + ":" + port + "/nuix-restful-service/svc/v1/cases/" + caseId + "/data?token=" + token;
            string method  = "POST";

            Request.ParallelProcessingSettings parallelProcessingSettings = new Request.ParallelProcessingSettings();
            parallelProcessingSettings.embedBroker  = embedBroker;
            parallelProcessingSettings.workerCount  = workerCount;
            parallelProcessingSettings.workerMemory = workerMemory;

            Request.ProcessorSettings processorSettings = new Request.ProcessorSettings();
            processorSettings.addBccToEmailDigests = addBccToEmailDigests;
            processorSettings.addCommunicationDateToEmailDigests = addCommunicationDateToEmailDigests;
            processorSettings.analysisLanguage                = analysisLanguage;
            processorSettings.calculateAuditedSize            = calculateAuditedSize;
            processorSettings.carveFileSystemUnallocatedSpace = carveFileSystemUnallocatedSpace;
            processorSettings.carveUnidentifiedData           = carveUnidentifiedData;
            processorSettings.createThumbnails                = createThumbnails;
            processorSettings.digests                    = digests;
            processorSettings.enableExactQueries         = enableExactQueries;
            processorSettings.extractFromSlackSpace      = extractFromSlackSpace;
            processorSettings.extractNamedEntities       = extractNamedEntities;
            processorSettings.extractShingles            = extractShingles;
            processorSettings.hideEmbeddedImmaterialData = hideEmbeddedImmaterialData;
            processorSettings.identifyPhysicalFiles      = identifyPhysicalFiles;
            processorSettings.maxDigestSize              = maxDigestSize;
            processorSettings.maxStoredBinarySize        = maxStoredBinarySize;
            processorSettings.processFamilyFields        = processFamilyFields;
            processorSettings.processForensicImages      = processForensicImages;
            processorSettings.processLooseFileContents   = processLooseFileContents;
            processorSettings.processText                = processText;
            processorSettings.processTextSummaries       = processTextSummaries;
            processorSettings.recoverDeletedFiles        = recoverDeletedFiles;
            processorSettings.reportProcessingStatus     = reportProcessingStatus;
            processorSettings.reuseEvidenceStores        = reuseEvidenceStores;
            processorSettings.skinToneAnalysis           = skinToneAnalysis;
            processorSettings.stemming                   = stemming;
            processorSettings.stopWords                  = stopWords;
            processorSettings.storeBinary                = storeBinary;

            Request.IngestionTarget ingestionTarget = new Request.IngestionTarget();
            ingestionTarget.custodian         = custodian;
            ingestionTarget.customMetadata    = customMetadata;
            ingestionTarget.encoding          = encoding;
            ingestionTarget.evidenceContainer = evidenceContainer;
            ingestionTarget.path = path;
            ingestionTarget.type = type;

            Request.Ingest ingest = new Request.Ingest();
            ingest.ingestionTargets           = new Request.IngestionTarget [] { ingestionTarget };
            ingest.parallelProcessingSettings = parallelProcessingSettings;
            ingest.processorSettings          = processorSettings;
            ingest.evidenceRepository         = evidenceRepository;
            string data = JsonConvert.SerializeObject(ingest);

            return(JsonConvert.DeserializeObject <Response.Ingest>(Call(service, method, data, true)));
        }
Esempio n. 2
0
        public Response.Ingest Ingestion(bool addBccToEmailDigests, bool addCommunicationDateToEmailDigests, string analysisLanguage, bool calculateAuditedSize, bool carveFileSystemUnallocatedSpace, bool carveUnidentifiedData, bool createThumbnails, string [] digests, bool enableExactQueries, bool extractFromSlackSpace, bool extractNamedEntities, bool extractShingles, bool hideEmbeddedImmaterialData, bool identifyPhysicalFiles, int maxDigestSize, int maxStoredBinarySize, bool processFamilyFields, bool processForensicImages, bool processLooseFileContents, bool processText, bool processTextSummaries, bool recoverDeletedFiles, string reportProcessingStatus, bool reuseEvidenceStores, bool skinToneAnalysis, bool stemming, bool stopWords, bool storeBinary, Request.CustomMetadata customMetadata, string encoding, string path, string type, string custodian,string evidenceContainer, bool embedBroker, int workerCount, int workerMemory, bool evidenceRepository, string caseId, string token)
        {
            string service = "http://" + url + ":" + port + "/nuix-restful-service/svc/v1/cases/" + caseId + "/data?token=" + token;
            string method = "POST";

            Request.ParallelProcessingSettings parallelProcessingSettings = new Request.ParallelProcessingSettings();
            parallelProcessingSettings.embedBroker = embedBroker;
            parallelProcessingSettings.workerCount = workerCount;
            parallelProcessingSettings.workerMemory = workerMemory;

            Request.ProcessorSettings processorSettings = new Request.ProcessorSettings();
            processorSettings.addBccToEmailDigests = addBccToEmailDigests;
            processorSettings.addCommunicationDateToEmailDigests = addCommunicationDateToEmailDigests;
            processorSettings.analysisLanguage = analysisLanguage;
            processorSettings.calculateAuditedSize = calculateAuditedSize;
            processorSettings.carveFileSystemUnallocatedSpace = carveFileSystemUnallocatedSpace;
            processorSettings.carveUnidentifiedData = carveUnidentifiedData;
            processorSettings.createThumbnails = createThumbnails;
            processorSettings.digests = digests;
            processorSettings.enableExactQueries = enableExactQueries;
            processorSettings.extractFromSlackSpace = extractFromSlackSpace;
            processorSettings.extractNamedEntities = extractNamedEntities;
            processorSettings.extractShingles = extractShingles;
            processorSettings.hideEmbeddedImmaterialData = hideEmbeddedImmaterialData;
            processorSettings.identifyPhysicalFiles = identifyPhysicalFiles;
            processorSettings.maxDigestSize = maxDigestSize;
            processorSettings.maxStoredBinarySize = maxStoredBinarySize;
            processorSettings.processFamilyFields = processFamilyFields;
            processorSettings.processForensicImages = processForensicImages;
            processorSettings.processLooseFileContents = processLooseFileContents;
            processorSettings.processText = processText;
            processorSettings.processTextSummaries = processTextSummaries;
            processorSettings.recoverDeletedFiles = recoverDeletedFiles;
            processorSettings.reportProcessingStatus = reportProcessingStatus;
            processorSettings.reuseEvidenceStores = reuseEvidenceStores;
            processorSettings.skinToneAnalysis = skinToneAnalysis;
            processorSettings.stemming = stemming;
            processorSettings.stopWords = stopWords;
            processorSettings.storeBinary = storeBinary;

            Request.IngestionTarget ingestionTarget = new Request.IngestionTarget();
            ingestionTarget.custodian = custodian;
            ingestionTarget.customMetadata = customMetadata;
            ingestionTarget.encoding = encoding;
            ingestionTarget.evidenceContainer = evidenceContainer;
            ingestionTarget.path = path;
            ingestionTarget.type = type;

            Request.Ingest ingest = new Request.Ingest();
            ingest.ingestionTargets = new Request.IngestionTarget [] { ingestionTarget };
            ingest.parallelProcessingSettings = parallelProcessingSettings;
            ingest.processorSettings = processorSettings;
            ingest.evidenceRepository = evidenceRepository;
            string data = JsonConvert.SerializeObject(ingest);
            return JsonConvert.DeserializeObject<Response.Ingest>(Call(service, method, data, true));
        }