public static class ProfileValidator.RejectionCause extends Object
| Constructor and Description |
|---|
RejectionCause(String error)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReason()
Get reason
|
static ProfileValidator.RejectionCause |
rejectDuplicatedInDatabase(String identifier)
Verify for each profile if already exists one in database that have the same identifier and/or name.
|
static ProfileValidator.RejectionCause |
rejectIdNotAllowedInCreate(String profileIdentifier)
Reject if id exisit and the action is creation.
|
static ProfileValidator.RejectionCause |
rejectMandatoryMissing(String fieldName)
Reject if one of multiple mandatory parameter are null
|
static ProfileValidator.RejectionCause |
rejectSeveralMandatoryMissing(List<String> fieldsName)
Reject if multiple mandatory parameters are null
|
public RejectionCause(String error)
error - public static ProfileValidator.RejectionCause rejectIdNotAllowedInCreate(String profileIdentifier)
profileIdentifier - public static ProfileValidator.RejectionCause rejectDuplicatedInDatabase(String identifier)
identifier - public static ProfileValidator.RejectionCause rejectMandatoryMissing(String fieldName)
fieldName - public static ProfileValidator.RejectionCause rejectSeveralMandatoryMissing(List<String> fieldsName)
fieldsName - public String getReason()
Copyright © 2021 Vitam. All rights reserved.