public static class GenericContractValidator.GenericRejectionCause extends Object
| Constructor and Description |
|---|
GenericRejectionCause(String error)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReason()
Get Reason
|
static GenericContractValidator.GenericRejectionCause |
rejectArchiveProfileNotFoundInDatabase(String contractName)
Verify for each contract that all archive profiles exists in database
|
static GenericContractValidator.GenericRejectionCause |
rejectDuplicatedEntry(String contractName)
Reject if multiple contract have the same name in the same request before persist into database.
|
static GenericContractValidator.GenericRejectionCause |
rejectDuplicatedInDatabase(String contractName)
Verify for each contract if already exists one in database that have the same name.
|
static GenericContractValidator.GenericRejectionCause |
rejectExceptionOccurred(String contractName,
String msg,
Throwable e)
Generate RejectionCause from any throwable
|
static GenericContractValidator.GenericRejectionCause |
rejectExcludedAndRootUnitsNotFound(String contractName,
String guidArrayAsString)
Generate RejectionCause for not found unit for given GUID
|
static GenericContractValidator.GenericRejectionCause |
rejectExcludedRootUnitsNotFound(String contractName,
String guidArrayAsString)
Generate RejectionCause for not found unit for given GUID
|
static GenericContractValidator.GenericRejectionCause |
rejectFormatFileTypeNotFoundInDatabase(String contractName)
Verify for each contract that all archive profiles exists in database
|
static GenericContractValidator.GenericRejectionCause |
rejectIdNotAllowedInCreate(String contractName)
Reject if id exisit and the action is creation.
|
static GenericContractValidator.GenericRejectionCause |
rejectMandatoryMissing(String fieldName)
Reject if one of multiple mandatory parameter are null
|
static GenericContractValidator.GenericRejectionCause |
rejectRootGuidIncludedAndExcluded(String contractName,
String guid)
Generate RejectionCause for root GUID used in both RootUnits and ExcludedRootUnits
|
static GenericContractValidator.GenericRejectionCause |
rejectRootUnitsNotFound(String contractName,
String guidArrayAsString)
Generate RejectionCause for not found unit for given GUID
|
static GenericContractValidator.GenericRejectionCause |
rejectWrongLinkParentId(String linkParentId)
Reject if the id of the AU is not in filing schema
|
public GenericRejectionCause(String error)
error - the errorpublic static GenericContractValidator.GenericRejectionCause rejectIdNotAllowedInCreate(String contractName)
contractName - public static GenericContractValidator.GenericRejectionCause rejectDuplicatedEntry(String contractName)
contractName - public static GenericContractValidator.GenericRejectionCause rejectWrongLinkParentId(String linkParentId)
linkParentId - public static GenericContractValidator.GenericRejectionCause rejectDuplicatedInDatabase(String contractName)
contractName - public static GenericContractValidator.GenericRejectionCause rejectArchiveProfileNotFoundInDatabase(String contractName)
contractName - public static GenericContractValidator.GenericRejectionCause rejectExceptionOccurred(String contractName, String msg, Throwable e)
contractName - the contract name or identifiermsg - custom messagee - throwablepublic static GenericContractValidator.GenericRejectionCause rejectRootUnitsNotFound(String contractName, String guidArrayAsString)
contractName - the contract name or identifierguidArrayAsString - root units as string (guid array as string)public static GenericContractValidator.GenericRejectionCause rejectRootGuidIncludedAndExcluded(String contractName, String guid)
guid - the contract name or identifierpublic static GenericContractValidator.GenericRejectionCause rejectExcludedRootUnitsNotFound(String contractName, String guidArrayAsString)
contractName - the contract name or identifierguidArrayAsString - root units as string (guid array as string)public static GenericContractValidator.GenericRejectionCause rejectExcludedAndRootUnitsNotFound(String contractName, String guidArrayAsString)
contractName - the contract name or identifierguidArrayAsString - root units as string (guid array as string)public static GenericContractValidator.GenericRejectionCause rejectMandatoryMissing(String fieldName)
fieldName - public static GenericContractValidator.GenericRejectionCause rejectFormatFileTypeNotFoundInDatabase(String contractName)
contractName - public String getReason()
Copyright © 2020 Vitam. All rights reserved.