Exemplo n.º 1
0
 @GET
 @Path("/getLevelMembersStructure")
 @Produces("text/javascript")
 public void getLevelMembersStructure(
     @QueryParam(MethodParams.CATALOG) String catalog,
     @QueryParam(MethodParams.CUBE) String cube,
     @QueryParam(MethodParams.MEMBER) String member,
     @QueryParam(MethodParams.DIRECTION) String direction,
     @Context HttpServletResponse response)
     throws IOException, JSONException {
   OlapUtils olapUtils = new OlapUtils();
   JSONObject result = olapUtils.getLevelMembersStructure(catalog, cube, member, direction);
   JsonUtils.buildJsonResult(response.getOutputStream(), result != null, result);
 }