Skip to content

Commit

Permalink
Merge pull request #81 from ieven/lichong
Browse files Browse the repository at this point in the history
support exploratory query of invokechain and log
  • Loading branch information
zxy0728 authored Dec 1, 2017
2 parents 0119280 + 463eeb9 commit eef8af6
Show file tree
Hide file tree
Showing 20 changed files with 946 additions and 233 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -989,21 +989,28 @@ public void loadAppProfileDetail(String data, @Suspended AsyncResponse response)
@GET
@Path("profile/q/cache")
@Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
public void loadAppProfileList(@Suspended AsyncResponse response) {
public void loadAppProfileList(@QueryParam("fkey") String fkey, @QueryParam("fvalue") String fvalue,
@Suspended AsyncResponse response) {

UAVHttpMessage message = new UAVHttpMessage();
message.setIntent("profile");

String groups = getUserGroupsByFilter(request);
if ("NOMAPPING".equals(groups)) {
response.resume("{\"rs\":\"{}\"}");
}
else if ("ALL".equals(groups)) {
loadAppProfileListFromHttp(message, response);
if (StringHelper.isEmpty(fkey) || StringHelper.isEmpty(fvalue)) {
String groups = getUserGroupsByFilter(request);
if ("NOMAPPING".equals(groups)) {
response.resume("{\"rs\":\"{}\"}");
}
else if ("ALL".equals(groups)) {
loadAppProfileListFromHttp(message, response);
}
else {
message.putRequest("fkey", "appgroup");
message.putRequest("fvalue", groups);
loadAppProfileListFromHttp(message, response);
}
}
else {
message.putRequest("fkey", "appgroup");
message.putRequest("fvalue", groups);
message.putRequest("fkey", fkey);
message.putRequest("fvalue", fvalue);
loadAppProfileListFromHttp(message, response);
}

Expand Down
Loading

0 comments on commit eef8af6

Please sign in to comment.