@Test @RunWithCustomExecutor public void givenTestFindAllThenReturnEmpty() throws Exception { VitamThreadUtils.getVitamSession().setTenantId(TENANT_ID); final RequestResponseOK<ProfileModel> profileModelList = profileService.findProfiles(JsonHandler.createObjectNode()); assertThat(profileModelList.getResults()).isEmpty(); }
@Override public RequestResponseOK<ProfileModel> findProfiles(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.PROFILE)) { return result.getRequestResponseOK(queryDsl, Profile.class, ProfileModel.class); } }
ProfileServiceImpl implements ProfileService { @Override public RequestResponseOK<ProfileModel> findProfiles(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.PROFILE)) { return result.getRequestResponseOK(queryDsl, Profile.class, ProfileModel.class); } } }
ProfileServiceImpl implements ProfileService { @Override public RequestResponseOK<ProfileModel> findProfiles(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.PROFILE)) { return result.getRequestResponseOK(queryDsl, Profile.class, ProfileModel.class); } } ProfileServiceImpl(MongoDbAccessAdminImpl mongoAccess,
        VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService); }
ProfileServiceImpl implements ProfileService { @Override public RequestResponseOK<ProfileModel> findProfiles(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.PROFILE)) { return result.getRequestResponseOK(queryDsl, Profile.class, ProfileModel.class); } } ProfileServiceImpl(MongoDbAccessAdminImpl mongoAccess,
        VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService); @Override RequestResponse<ProfileModel> createProfiles(List<ProfileModel> profileModelList); @Override RequestResponse importProfileFile(String profileIdentifier,
        InputStream profileFile); @Override Response downloadProfileFile(String profileIdentifier); @Override RequestResponse<ProfileModel> updateProfile(String identifier, JsonNode jsonDsl); @Override RequestResponse<ProfileModel> updateProfile(ProfileModel profileModel, JsonNode jsonDsl); @Override ProfileModel findByIdentifier(String identifier); @Override RequestResponseOK<ProfileModel> findProfiles(JsonNode queryDsl); @Override void close(); }
ProfileServiceImpl implements ProfileService { @Override public RequestResponseOK<ProfileModel> findProfiles(JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException { try (DbRequestResult result = mongoAccess.findDocuments(queryDsl, FunctionalAdminCollections.PROFILE)) { return result.getRequestResponseOK(queryDsl, Profile.class, ProfileModel.class); } } ProfileServiceImpl(MongoDbAccessAdminImpl mongoAccess,
        VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService); @Override RequestResponse<ProfileModel> createProfiles(List<ProfileModel> profileModelList); @Override RequestResponse importProfileFile(String profileIdentifier,
        InputStream profileFile); @Override Response downloadProfileFile(String profileIdentifier); @Override RequestResponse<ProfileModel> updateProfile(String identifier, JsonNode jsonDsl); @Override RequestResponse<ProfileModel> updateProfile(ProfileModel profileModel, JsonNode jsonDsl); @Override ProfileModel findByIdentifier(String identifier); @Override RequestResponseOK<ProfileModel> findProfiles(JsonNode queryDsl); @Override void close(); static final String OP_PROFILE_STORAGE; static final String PROFILE_FORMAT_SHOULD_BE_XSD_OR_RNG; static final String PROFILE_IDENTIFIER_ALREADY_EXISTS_IN_DATABASE; static final String PROFILE_IDENTIFIER_MUST_BE_STRING; static final String PROFILE_BACKUP_EVENT; }