Skip to content

Commit

Permalink
comment out unused getUserAggregate endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sherriff committed Jun 25, 2015
1 parent 2621487 commit 9bd2eed
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public String getUserIdentity(@PathVariable("apptokenid") String apptokenid, @Pa
@RequestMapping(value = "/useraggregate/{uid}/", method = RequestMethod.GET)
public String getUserAggregate(@PathVariable("apptokenid") String apptokenid, @PathVariable("usertokenid") String usertokenid, @PathVariable("uid") String uid, HttpServletRequest request, HttpServletResponse response, Model model) {
HttpMethod method = new GetMethod();
String url = buildUasUrl(apptokenid, usertokenid, "user/" + uid);
String url = buildUasUrl(apptokenid, usertokenid, "useraggregate/" + uid);
makeUasRequest(method, url, model, response);
log.trace("getUserAggregate with uid={} returned the following jsondata=\n{}", uid, model.asMap().get(JSON_DATA_KEY));
response.setContentType("application/json; charset=utf-8");
Expand Down Expand Up @@ -154,12 +154,14 @@ public String postUser(@PathVariable("apptokenid") String apptokenid, @PathVaria

@GET
@Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
@RequestMapping(value = "/user/{uid}/roles", method = RequestMethod.GET)
public String getUserRoles(@PathVariable("apptokenid") String apptokenid, @PathVariable("usertokenid") String usertokenid, @PathVariable("uid") String uid, HttpServletRequest request, HttpServletResponse response, Model model) {
log.trace("Getting user roles for user with uid: " + uid);
@RequestMapping(value = "/user/{uid}/roles/", method = RequestMethod.GET)
public String getUserRoles(@PathVariable("apptokenid") String apptokenid, @PathVariable("usertokenid") String usertokenid,
@PathVariable("uid") String uid, HttpServletRequest request, HttpServletResponse response, Model model) {
log.trace("Getting user roles for user with uid={}", uid);
HttpMethod method = new GetMethod();
String url = buildUasUrl(apptokenid, usertokenid, "user/" + uid + "/roles");
makeUasRequest(method, url, model, response);
log.trace("getUserRoles with uid={} returned the following jsondata=\n{}", uid, model.asMap().get(JSON_DATA_KEY));
response.setContentType("application/json; charset=utf-8");
return "json";
}
Expand Down

0 comments on commit 9bd2eed

Please sign in to comment.