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