public static class AgenciesValidator.AgenciesRejectionCause extends Object
| Constructor and Description |
|---|
AgenciesRejectionCause(String error)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReason()
Get the reason of rejection
|
static AgenciesValidator.AgenciesRejectionCause |
rejectDuplicatedEntry(String agencyIdentifier)
Reject if multiple agency have the same name in the same request before persist into database.
|
static AgenciesValidator.AgenciesRejectionCause |
rejectDuplicatedInDatabase(String agencyName)
Verify for each agency if already exists one in database that have the same name.
|
static AgenciesValidator.AgenciesRejectionCause |
rejectIdNotAllowedInCreate(String agencyIdentifier)
Reject if id exisit and the action is creation.
|
static AgenciesValidator.AgenciesRejectionCause |
rejectMandatoryMissing(String fieldName)
Reject if one of multiple mandatory parameter are null
|
public AgenciesRejectionCause(String error)
error - the rejection causepublic static AgenciesValidator.AgenciesRejectionCause rejectIdNotAllowedInCreate(String agencyIdentifier)
agencyIdentifier - the id of the agencypublic static AgenciesValidator.AgenciesRejectionCause rejectDuplicatedEntry(String agencyIdentifier)
agencyIdentifier - the id of the agencypublic static AgenciesValidator.AgenciesRejectionCause rejectMandatoryMissing(String fieldName)
fieldName - the field namepublic static AgenciesValidator.AgenciesRejectionCause rejectDuplicatedInDatabase(String agencyName)
agencyName - the name of the agencypublic String getReason()
Copyright © 2018 Vitam. All rights reserved.