public static class ArchiveUnitProfileValidator.RejectionCause extends Object
| Constructor and Description |
|---|
RejectionCause(String error)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReason()
Get reason
|
static ArchiveUnitProfileValidator.RejectionCause |
rejectDuplicateIdentifierInDatabase(String identifier)
Verify for each archive unit profile if already exists one in database that have the same identifier and/or name.
|
static ArchiveUnitProfileValidator.RejectionCause |
rejectDuplicateNameInDatabase(String identifier)
Verify for each archive unit profile if already exists one in database that have the same identifier and/or name.
|
static ArchiveUnitProfileValidator.RejectionCause |
rejectIdNotAllowedInCreate(String archiveUnitProfileIdentifier)
Reject if id exisit and the action is creation.
|
static ArchiveUnitProfileValidator.RejectionCause |
rejectIncorrectFieldInOntology(String fieldName)
Reject if one field is not compatible with the one declared in ontology
|
static ArchiveUnitProfileValidator.RejectionCause |
rejectJsonSchemaModificationIfInUse(String fieldName)
Reject if the field is not a json shema
|
static ArchiveUnitProfileValidator.RejectionCause |
rejectJsonShema(String fieldName)
Reject if the field is not a json shema
|
static ArchiveUnitProfileValidator.RejectionCause |
rejectMandatoryMissing(String fieldName)
Reject if one of multiple mandatory parameter are null
|
static ArchiveUnitProfileValidator.RejectionCause |
rejectMissingFieldInOntology(String fieldName)
Reject if one field is not declared in ontology
|
public RejectionCause(String error)
error - public static ArchiveUnitProfileValidator.RejectionCause rejectIdNotAllowedInCreate(String archiveUnitProfileIdentifier)
archiveUnitProfileIdentifier - public static ArchiveUnitProfileValidator.RejectionCause rejectDuplicateIdentifierInDatabase(String identifier)
identifier - public static ArchiveUnitProfileValidator.RejectionCause rejectDuplicateNameInDatabase(String identifier)
identifier - public static ArchiveUnitProfileValidator.RejectionCause rejectJsonSchemaModificationIfInUse(String fieldName)
fieldName - public static ArchiveUnitProfileValidator.RejectionCause rejectJsonShema(String fieldName)
fieldName - public static ArchiveUnitProfileValidator.RejectionCause rejectMandatoryMissing(String fieldName)
fieldName - public static ArchiveUnitProfileValidator.RejectionCause rejectMissingFieldInOntology(String fieldName)
fieldName - public static ArchiveUnitProfileValidator.RejectionCause rejectIncorrectFieldInOntology(String fieldName)
fieldName - public String getReason()
Copyright © 2021 Vitam. All rights reserved.