Skip to content

Instantly share code, notes, and snippets.

@hariso
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hariso/f01552019fcd05fd4835 to your computer and use it in GitHub Desktop.
Save hariso/f01552019fcd05fd4835 to your computer and use it in GitHub Desktop.
Map<String, List<String>> map = // some info about types and members of them you'd like to retrieve
RetrieveRequest retrieveRequest = createRetrieveRequest(map);
AsyncResult asyncResult = connection.retrieve(retrieveRequest);
RetrieveResult retrieveResult = waitForRetrieveCompletion(asyncResult, connection);
// Parse result...
private RetrieveRequest createRetrieveRequest(Map<String, List<String>> map) throws ConnectionException {
RetrieveRequest retrieveRequest = new RetrieveRequest();
retrieveRequest.setUnpackaged(createPackage(map));
return retrieveRequest;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment