Class ProfileValidator.RejectionCause
java.lang.Object
fr.gouv.vitam.functional.administration.core.profile.ProfileValidator.RejectionCause
- Enclosing interface:
- ProfileValidator
Rejection Cause
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet reasonrejectDuplicatedInDatabase
(String identifier) Verify for each profile if already exists one in database that have the same identifier and/or name.rejectMandatoryMissing
(String fieldName) Reject if one of multiple mandatory parameter are nullrejectSeveralMandatoryMissing
(List<String> fieldsName) Reject if multiple mandatory parameters are null
-
Constructor Details
-
RejectionCause
Constructor- Parameters:
error
-
-
-
Method Details
-
rejectDuplicatedInDatabase
Verify for each 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
-
rejectMandatoryMissing
Reject if one of multiple mandatory parameter are null- Parameters:
fieldName
-- Returns:
- RejectionCause
-
rejectSeveralMandatoryMissing
public static ProfileValidator.RejectionCause rejectSeveralMandatoryMissing(List<String> fieldsName) Reject if multiple mandatory parameters are null- Parameters:
fieldsName
-- Returns:
- RejectionCause
-
getReason
Get reason- Returns:
- reason
-