| Package | Description |
|---|---|
| fr.gouv.vitam.functional.administration.contract.core |
| Modifier and Type | Method and Description |
|---|---|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectArchiveProfileNotFoundInDatabase(String contractName)
Verify for each contract that all archive profiles exists in database
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectDuplicatedEntry(String contractName)
Reject if multiple contract have the same name in the same request before persist into database.
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectDuplicatedInDatabase(String contractName)
Verify for each contract if already exists one in database that have the same name.
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectExceptionOccurred(String contractName,
String msg,
Throwable e)
Generate RejectionCause from any throwable
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectExcludedAndRootUnitsNotFound(String contractName,
String guidArrayAsString)
Generate RejectionCause for not found unit for given GUID
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectExcludedRootUnitsNotFound(String contractName,
String guidArrayAsString)
Generate RejectionCause for not found unit for given GUID
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectFormatFileTypeNotFoundInDatabase(String contractName)
Verify for each contract that all archive profiles exists in database
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectIdNotAllowedInCreate(String contractName)
Reject if id exisit and the action is creation.
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectMandatoryMissing(String fieldName)
Reject if one of multiple mandatory parameter are null
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectRootGuidIncludedAndExcluded(String contractName,
String guid)
Generate RejectionCause for root GUID used in both RootUnits and ExcludedRootUnits
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectRootUnitsNotFound(String contractName,
String guidArrayAsString)
Generate RejectionCause for not found unit for given GUID
|
static GenericContractValidator.GenericRejectionCause |
GenericContractValidator.GenericRejectionCause.rejectWrongLinkParentId(String linkParentId)
Reject if the id of the AU is not in filing schema
|
| Modifier and Type | Method and Description |
|---|---|
Optional<GenericContractValidator.GenericRejectionCause> |
AccessContractValidator.validate(AccessContractModel accessContract,
String contractName)
Validate a contract object
|
Optional<GenericContractValidator.GenericRejectionCause> |
IngestContractValidator.validate(IngestContractModel ingestContract,
String contractName)
Validate a contract object
|
Optional<GenericContractValidator.GenericRejectionCause> |
GenericContractValidator.validate(T contract,
String contractName)
Validate a contract object
|
Copyright © 2020 Vitam. All rights reserved.