Created
November 11, 2014 18:36
-
-
Save CHLibrarian/ec2bd32a9ee88b7ab065 to your computer and use it in GitHub Desktop.
ContextHub Application Services Vault Item Retrieve By Tag (Android)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get all vault documents with the tag "sample" and log the results | |
VaultProxy<Person> proxy = new VaultProxy<Person>(); | |
proxy.listDocuments(new String[]{"sample"}, Person.class, new VaultListingCallback<Person>() { | |
@Override | |
public void onSuccess(VaultDocument<Person>[] result) { | |
for(VaultDocument<Person> document : result) {} | |
Log.d(TAG, document.getDataObject().toString()); | |
} | |
} | |
@Override | |
public void onFailure(Exception e) { | |
Log.d(TAG, e.getMessage()); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment