-
-
Save secondsun/66c141f026c3a83191f2 to your computer and use it in GitHub Desktop.
This file contains 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
//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