public final class JsonTransformer extends Object
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.node.ObjectNode |
buildAllParentsRef(String unitId,
com.fasterxml.jackson.databind.JsonNode allParents)
This method builds an ObjectNode based on a list of JsonNode object
|
static ByteArrayOutputStream |
buildLogbookStatCsvFile(com.fasterxml.jackson.databind.JsonNode logbookOperation)
Generates execution time by step relative to a logbook operation
|
static com.fasterxml.jackson.databind.JsonNode |
transformResultObjects(com.fasterxml.jackson.databind.JsonNode searchResult)
This method transforms ResultObjects so thr IHM could display results
|
public static com.fasterxml.jackson.databind.JsonNode transformResultObjects(com.fasterxml.jackson.databind.JsonNode searchResult)
searchResult
- the Json to be transformedpublic static com.fasterxml.jackson.databind.node.ObjectNode buildAllParentsRef(String unitId, com.fasterxml.jackson.databind.JsonNode allParents) throws VitamException
unitId
- achive unitallParents
- list of JsonNode Objects used to build the referentialVitamException
- if error when creating parent ObjectNodepublic static ByteArrayOutputStream buildLogbookStatCsvFile(com.fasterxml.jackson.databind.JsonNode logbookOperation) throws VitamException, IOException
logbookOperation
- logbook operation in JsonNode formatVitamException
- if unexpected error in CSV file generation processIOException
- if error when write output streamException
- if error in others casesCopyright © 2018 Vitam. All rights reserved.