public static class OntologyValidator.RejectionCause extends Object
| Constructor and Description |
|---|
RejectionCause(String fieldName,
OntologyModel ontologyModel,
OntologyErrorCode errorCode,
String error)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OntologyErrorCode |
getErrorCode() |
String |
getFieldName() |
OntologyModel |
getOntologyModel() |
String |
getReason()
Get reason
|
static OntologyValidator.RejectionCause |
rejectDuplicatedInDatabase(OntologyModel ontologyModel)
Verify that no other ontology with the same identifier already exists
|
static OntologyValidator.RejectionCause |
rejectIdNotAllowedInCreate(OntologyModel ontologyModel)
Reject if an id exist and the action is creation.
|
static OntologyValidator.RejectionCause |
rejectInvalidIdentifier(OntologyModel ontologyModel)
Reject if the ontology identifier is not valid
|
static OntologyValidator.RejectionCause |
rejectMandatoryMissing(OntologyModel ontologyModel,
String fieldName)
Reject if one of multiple mandatory parameter are null
|
static OntologyValidator.RejectionCause |
rejectUsedByDocumentTypeInDatabase(OntologyModel ontologyModel,
String documentTypes)
Verify that the ontology is not used in a document type
|
void |
setFieldName(String fieldName) |
void |
setOntologyModel(OntologyModel ontologyModel) |
public RejectionCause(String fieldName, OntologyModel ontologyModel, OntologyErrorCode errorCode, String error)
errorCode - error - public static OntologyValidator.RejectionCause rejectIdNotAllowedInCreate(OntologyModel ontologyModel)
ontologyModel - public static OntologyValidator.RejectionCause rejectDuplicatedInDatabase(OntologyModel ontologyModel)
ontologyModel - public static OntologyValidator.RejectionCause rejectUsedByDocumentTypeInDatabase(OntologyModel ontologyModel, String documentTypes)
ontologyModel - documentTypes - the list of documentTypes using the specified ontologypublic static OntologyValidator.RejectionCause rejectInvalidIdentifier(OntologyModel ontologyModel)
ontologyModel - public static OntologyValidator.RejectionCause rejectMandatoryMissing(OntologyModel ontologyModel, String fieldName)
fieldName - public String getReason()
public OntologyErrorCode getErrorCode()
public String getFieldName()
public void setFieldName(String fieldName)
public OntologyModel getOntologyModel()
public void setOntologyModel(OntologyModel ontologyModel)
Copyright © 2021 Vitam. All rights reserved.