@Test @RunWithCustomExecutor public void when_find_should_throw_exception_given_invalid_query() { assertThatThrownBy(() -> managementContractService.findContracts(null)) .isInstanceOf(InvalidParseOperationException.class); }
@Override public RequestResponseOK<ManagementContractModel> findContracts(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { SanityChecker.checkJsonAll(queryDsl); try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.MANAGEMENT_CONTRACT)) { return result.getRequestResponseOK(queryDsl, ManagementContract.class, ManagementContractModel.class); } }
ManagementContractImpl implements ContractService<ManagementContractModel> { @Override public RequestResponseOK<ManagementContractModel> findContracts(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { SanityChecker.checkJsonAll(queryDsl); try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.MANAGEMENT_CONTRACT)) { return result.getRequestResponseOK(queryDsl, ManagementContract.class, ManagementContractModel.class); } } }
ManagementContractImpl implements ContractService<ManagementContractModel> { @Override public RequestResponseOK<ManagementContractModel> findContracts(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { SanityChecker.checkJsonAll(queryDsl); try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.MANAGEMENT_CONTRACT)) { return result.getRequestResponseOK(queryDsl, ManagementContract.class, ManagementContractModel.class); } } ManagementContractImpl(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService);  ManagementContractImpl(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService,
            StorageClient storageClient, LogbookOperationsClient logbookOperationsClient,
            FunctionalBackupService functionalBackupService); }
ManagementContractImpl implements ContractService<ManagementContractModel> { @Override public RequestResponseOK<ManagementContractModel> findContracts(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { SanityChecker.checkJsonAll(queryDsl); try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.MANAGEMENT_CONTRACT)) { return result.getRequestResponseOK(queryDsl, ManagementContract.class, ManagementContractModel.class); } } ManagementContractImpl(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService);  ManagementContractImpl(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService,
            StorageClient storageClient, LogbookOperationsClient logbookOperationsClient,
            FunctionalBackupService functionalBackupService); @Override RequestResponse<ManagementContractModel> createContracts(List<ManagementContractModel> contractModelList); @Override RequestResponse<ManagementContractModel> updateContract(String identifier, JsonNode queryDsl); @Override ManagementContractModel findByIdentifier(String identifier); @Override RequestResponseOK<ManagementContractModel> findContracts(JsonNode queryDsl); @Override void close(); }
ManagementContractImpl implements ContractService<ManagementContractModel> { @Override public RequestResponseOK<ManagementContractModel> findContracts(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { SanityChecker.checkJsonAll(queryDsl); try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.MANAGEMENT_CONTRACT)) { return result.getRequestResponseOK(queryDsl, ManagementContract.class, ManagementContractModel.class); } } ManagementContractImpl(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService);  ManagementContractImpl(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService,
            StorageClient storageClient, LogbookOperationsClient logbookOperationsClient,
            FunctionalBackupService functionalBackupService); @Override RequestResponse<ManagementContractModel> createContracts(List<ManagementContractModel> contractModelList); @Override RequestResponse<ManagementContractModel> updateContract(String identifier, JsonNode queryDsl); @Override ManagementContractModel findByIdentifier(String identifier); @Override RequestResponseOK<ManagementContractModel> findContracts(JsonNode queryDsl); @Override void close(); static final String CONTRACT_BACKUP_EVENT; }