T - AccessContractModel or IngestContractModelpublic interface ContractService<T extends AbstractContractModel> extends VitamAutoCloseable
| Modifier and Type | Method and Description |
|---|---|
RequestResponse<T> |
createContracts(List<T> contractModelList)
Create a collections of contracts After passing the validation steps.
|
T |
findByIdentifier(String identifier)
Find contract by identifier
|
RequestResponseOK<T> |
findContracts(com.fasterxml.jackson.databind.JsonNode queryDsl)
find contract by QueryDsl
|
RequestResponse<T> |
updateContract(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update contracts status after passing validation steps :
Field modified :
- ActivationDate
- DesactivationDate
- LastUpdate
- Status
|
closeRequestResponse<T> createContracts(List<T> contractModelList) throws VitamException
contractModelList - the list of contracts to be createdVitamException - if in error occurs while validating contractsRequestResponse<T> updateContract(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws VitamException
id - the id of the contract to be updatedqueryDsl - the given queryDsl for updateVitamException - if in error occurs while validating contractsT findByIdentifier(String identifier) throws ReferentialException, InvalidParseOperationException
identifier - the identifier of the contractReferentialException - thrown if the query could not be executedInvalidParseOperationException - thrown if the query could not be createdRequestResponseOK<T> findContracts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException
queryDsl - the query to be executedReferentialException - thrown if the query could not be executedInvalidParseOperationException - thrown is the query is incorrectCopyright © 2018 Vitam. All rights reserved.