Class ArchiveUnitProfileValidator.RejectionCause
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.core.archiveunitprofiles.ArchiveUnitProfileValidator.RejectionCause
-
- Enclosing interface:
- ArchiveUnitProfileValidator
public static class ArchiveUnitProfileValidator.RejectionCause extends java.lang.ObjectRejection Cause
-
-
Constructor Summary
Constructors Constructor Description RejectionCause(java.lang.String error)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetReason()Get reasonstatic ArchiveUnitProfileValidator.RejectionCauserejectDuplicateIdentifierInDatabase(java.lang.String identifier)Verify for each archive unit profile if already exists one in database that have the same identifier and/or name.static ArchiveUnitProfileValidator.RejectionCauserejectDuplicateNameInDatabase(java.lang.String identifier)Verify for each archive unit profile if already exists one in database that have the same identifier and/or name.static ArchiveUnitProfileValidator.RejectionCauserejectIdNotAllowedInCreate(java.lang.String archiveUnitProfileIdentifier)Reject if id exisit and the action is creation.static ArchiveUnitProfileValidator.RejectionCauserejectIncorrectFieldInOntology(java.lang.String fieldName)Reject if one field is not compatible with the one declared in ontologystatic ArchiveUnitProfileValidator.RejectionCauserejectJsonSchemaModificationIfInUse(java.lang.String fieldName)Reject if the field is not a json shemastatic ArchiveUnitProfileValidator.RejectionCauserejectJsonShema(java.lang.String fieldName)Reject if the field is not a json shemastatic ArchiveUnitProfileValidator.RejectionCauserejectMandatoryMissing(java.lang.String fieldName)Reject if one of multiple mandatory parameter are nullstatic ArchiveUnitProfileValidator.RejectionCauserejectMissingFieldInOntology(java.lang.String fieldName)Reject if one field is not declared in ontology
-
-
-
Method Detail
-
rejectIdNotAllowedInCreate
public static ArchiveUnitProfileValidator.RejectionCause rejectIdNotAllowedInCreate(java.lang.String archiveUnitProfileIdentifier)
Reject if id exisit and the action is creation. If id exists, it should be an update instead of create- Parameters:
archiveUnitProfileIdentifier-- Returns:
- RejectionCause
-
rejectDuplicateIdentifierInDatabase
public static ArchiveUnitProfileValidator.RejectionCause rejectDuplicateIdentifierInDatabase(java.lang.String identifier)
Verify for each archive unit profile if already exists one in database that have the same identifier and/or name. The database my manage this kind of constraint (by creating an unique index on the field or column)- Parameters:
identifier-- Returns:
- RejectionCause
-
rejectDuplicateNameInDatabase
public static ArchiveUnitProfileValidator.RejectionCause rejectDuplicateNameInDatabase(java.lang.String identifier)
Verify for each archive unit profile if already exists one in database that have the same identifier and/or name. The database my manage this kind of constraint (by creating an unique index on the field or column)- Parameters:
identifier-- Returns:
- RejectionCause
-
rejectJsonSchemaModificationIfInUse
public static ArchiveUnitProfileValidator.RejectionCause rejectJsonSchemaModificationIfInUse(java.lang.String fieldName)
Reject if the field is not a json shema- Parameters:
fieldName-- Returns:
- RejectionCause
-
rejectJsonShema
public static ArchiveUnitProfileValidator.RejectionCause rejectJsonShema(java.lang.String fieldName)
Reject if the field is not a json shema- Parameters:
fieldName-- Returns:
- RejectionCause
-
rejectMandatoryMissing
public static ArchiveUnitProfileValidator.RejectionCause rejectMandatoryMissing(java.lang.String fieldName)
Reject if one of multiple mandatory parameter are null- Parameters:
fieldName-- Returns:
- RejectionCause
-
rejectMissingFieldInOntology
public static ArchiveUnitProfileValidator.RejectionCause rejectMissingFieldInOntology(java.lang.String fieldName)
Reject if one field is not declared in ontology- Parameters:
fieldName-- Returns:
- RejectionCause
-
rejectIncorrectFieldInOntology
public static ArchiveUnitProfileValidator.RejectionCause rejectIncorrectFieldInOntology(java.lang.String fieldName)
Reject if one field is not compatible with the one declared in ontology- Parameters:
fieldName-- Returns:
- RejectionCause
-
getReason
public java.lang.String getReason()
Get reason- Returns:
- reason
-
-