In the WsDevClient class, there is an example showing how to present a repository to a server, if it has not already been presented. Using the Repository model, it is possible to use the getPresentedServerIds method to check where the repository has already been presented.
Presenting a repository to a server is an action performed against the repository. The following code is extracted from the WsDevClient class:
... final Repository testRepository = api.repositoryGetById(testRepoId); if (testRepository.getPresentedServerIds() == null || !testRepository.getPresentedServerIds().contains(testServerId)) { repoPresentJob = api.repositoryPresent(testRepoId, testServerId); System.out.println("present repository job id: " + repoPresentJob.getId()); waitForJobComplete(api, repoPresentJob); }