Class SchemaCommonService
java.lang.Object
fr.gouv.vitam.functional.administration.core.schema.SchemaCommonService
This Common service for managing schema
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.JsonNode
buildDslQueryForExtractingSchema
(Set<Integer> tenantIds, List<String> schemaPaths) static com.fasterxml.jackson.databind.JsonNode
buildOntologyQueryDslByIdentifiers
(Set<String> ontologyIdentifiers) Build dsl query from ontology identifiersstatic String
extractLeafFromPath
(String schemaPath) static SchemaImportReport
fillSchemaImportReportError
(SchemaImportReport schemaImportReport, Set<String> errorPathList, StatusCode status, GUID eip) generate Error Reportstatic SchemaImportReport
fillSchemaImportReportOK
(SchemaImportReport schemaImportReport, List<Schema> schemaList, GUID eip) generate Ok Reportstatic VitamError
getVitamError
(String vitamCode, String error, StatusCode statusCode) static SchemaImportReport
mapSchemaFromInputParameters
(List<SchemaInputModel> externalSchemaInputList, Map<String, OntologyModel> ontologyEltsMapByIdentifier) Map Schema intput to db entity
-
Field Details
-
SCHEMA_COLLECTION
- See Also:
-
-
Constructor Details
-
SchemaCommonService
public SchemaCommonService()
-
-
Method Details
-
buildDslQueryForExtractingSchema
public static com.fasterxml.jackson.databind.JsonNode buildDslQueryForExtractingSchema(Set<Integer> tenantIds, List<String> schemaPaths) throws InvalidCreateOperationException - Throws:
InvalidCreateOperationException
-
extractLeafFromPath
-
mapSchemaFromInputParameters
public static List<Schema> mapSchemaFromInputParameters(List<SchemaInputModel> externalSchemaInputList, Map<String, OntologyModel> ontologyEltsMapByIdentifier) Map Schema intput to db entity -
getVitamError
-
fillSchemaImportReportOK
public static SchemaImportReport fillSchemaImportReportOK(SchemaImportReport schemaImportReport, List<Schema> schemaList, GUID eip) generate Ok Report- Parameters:
schemaList
- the list of created schema- Returns:
- the error report inputStream
-
fillSchemaImportReportError
public static SchemaImportReport fillSchemaImportReportError(SchemaImportReport schemaImportReport, Set<String> errorPathList, StatusCode status, GUID eip) generate Error Report- Parameters:
errorPathList
- the list of created schema- Returns:
- the error report inputStream
-
initSchemaImportReport
-
buildOntologyQueryDslByIdentifiers
public static com.fasterxml.jackson.databind.JsonNode buildOntologyQueryDslByIdentifiers(Set<String> ontologyIdentifiers) throws InvalidCreateOperationException Build dsl query from ontology identifiers- Parameters:
ontologyIdentifiers
-- Returns:
- Throws:
InvalidCreateOperationException
-