Skip to content

Instantly share code, notes, and snippets.

@secondsun
Forked from anonymous/Tomlux.java
Created April 10, 2013 12:08
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 secondsun/66c141f026c3a83191f2 to your computer and use it in GitHub Desktop.
Save secondsun/66c141f026c3a83191f2 to your computer and use it in GitHub Desktop.
//with /aero/facilities/byUsername/${myUserName}
readByUsername() {
ReadFilter filter = new ReadFilter();
filter.setLinkUri("myUsername");
Pipe<Facility> pipe = pipeline.get("facilities");
pipe.readWithFilter(filter, callback);
}
queryByUsername() {
Map<String, String> queryMap = new HashMap<>();
queryMap.put("username","myUserName");
ReadFilter filter = new ReadFilter();
filter.setWhere(new JSONObject(queryMap));
Pipe<Facility> pipe = pipeline.get("facilities");
pipe.readWithFilter(filter, callback);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment