@TestFactory public Collection<DynamicTest> testReadUsersWithIndexPagedResponse() throws IOException { return Arrays.asList( dynamicTest("read All Users", getUsersIndexPagingExecutable("/Users?startIndex=1&count=100", UserRequest::readAllUsers)), dynamicTest("read multiple Users default index paging", getUsersIndexPagingExecutable("/Users?startIndex=1&count=100", UserRequest::readMultipleUsers)), dynamicTest("read multiple Users custom index paging", getUsersIndexPagingExecutable("/Users?startIndex=3&count=40", scimUserRequest -> scimUserRequest.readMultipleUsers(indexPageQuery().withStartIndex(3).withCount(40)))), dynamicTest("read multiple Users without adding page parameters", getUsersIndexPagingExecutable("/Users", UserRequest::readMultipleUsersWithoutPaging)) ); }
public SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<User>>(){}); }
UserRequest { public SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<User>>(){}); } }
UserRequest { public SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<User>>(){}); } UserRequest(WebTarget targetSystem, SCIMRequest scimRequest); }
UserRequest { public SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<User>>(){}); } UserRequest(WebTarget targetSystem, SCIMRequest scimRequest); SCIMResponse<User> createUser(User user); SCIMResponse<User> readSingleUser(String id); SCIMResponse<PagedByIndexSearchResult<User>> readAllUsers(); SCIMResponse<PagedByIndexSearchResult<User>> readAllUsers(String scimFilter); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers(); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers(String filter); SCIMResponse<PagedByIdentitySearchResult<User>> readMultipleUsers(IdentityPageQuery identityPageQuery); SCIMResponse<PagedByIdentitySearchResult<User>> readMultipleUsers(IdentityPageQuery identityPageQuery, String filter); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers(IndexPageQuery indexPageQuery); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers(IndexPageQuery indexPageQuery, String filter); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsersWithoutPaging(); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsersWithoutPaging(String filter); SCIMResponse<User> updateUser(User user); SCIMResponse<Void> patchUser(PatchBody patchBody, String userId); SCIMResponse<Void> deleteUser(String userId); }
UserRequest { public SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers() { return resourceRequestDelegate.readMultipleResources(new GenericType<PagedByIndexSearchResult<User>>(){}); } UserRequest(WebTarget targetSystem, SCIMRequest scimRequest); SCIMResponse<User> createUser(User user); SCIMResponse<User> readSingleUser(String id); SCIMResponse<PagedByIndexSearchResult<User>> readAllUsers(); SCIMResponse<PagedByIndexSearchResult<User>> readAllUsers(String scimFilter); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers(); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers(String filter); SCIMResponse<PagedByIdentitySearchResult<User>> readMultipleUsers(IdentityPageQuery identityPageQuery); SCIMResponse<PagedByIdentitySearchResult<User>> readMultipleUsers(IdentityPageQuery identityPageQuery, String filter); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers(IndexPageQuery indexPageQuery); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsers(IndexPageQuery indexPageQuery, String filter); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsersWithoutPaging(); SCIMResponse<PagedByIndexSearchResult<User>> readMultipleUsersWithoutPaging(String filter); SCIMResponse<User> updateUser(User user); SCIMResponse<Void> patchUser(PatchBody patchBody, String userId); SCIMResponse<Void> deleteUser(String userId);  }