Class OntologyManager
java.lang.Object
fr.gouv.vitam.functional.administration.core.ontologies.OntologyManager
This class manage validation and log operation of Ontology service
-
Constructor Summary
ConstructorDescriptionOntologyManager
(LogbookOperationsClientFactory logbookOperationsClientFactory, GUID eip, Map<String, List<ErrorReportOntologies>> errors) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(String identifier, ErrorReportOntologies error, Map<String, List<ErrorReportOntologies>> errors) Add an error to the reportvoid
logFatalError
(String eventType, String objectId, String errorsDetails) log fatal error (system or technical error)void
logStarted
(String eventType, String objectId) log start processvoid
logSuccess
(String eventType, String objectId, String message) log end success processvoid
logValidationError
(String eventType, String objectId, String errorsDetails) Log validation error (business error)
-
Constructor Details
-
OntologyManager
public OntologyManager(LogbookOperationsClientFactory logbookOperationsClientFactory, GUID eip, Map<String, List<ErrorReportOntologies>> errors)
-
-
Method Details
-
addError
public void addError(String identifier, ErrorReportOntologies error, Map<String, List<ErrorReportOntologies>> errors) Add an error to the report- Parameters:
identifier
-error
-
-
logValidationError
public void logValidationError(String eventType, String objectId, String errorsDetails) throws VitamException Log validation error (business error)- Parameters:
errorsDetails
-- Throws:
VitamException
-
logFatalError
public void logFatalError(String eventType, String objectId, String errorsDetails) throws VitamException log fatal error (system or technical error)- Parameters:
errorsDetails
-- Throws:
VitamException
-
logStarted
log start process- Throws:
VitamException
-
logSuccess
log end success process- Throws:
VitamException
-