@GET @Path("/getCubes") @Produces("text/javascript") public void getCubes( @QueryParam(MethodParams.CATALOG) String catalog, @Context HttpServletRequest request, @Context HttpServletResponse response) throws IOException, JSONException { OlapUtils olapUtils = new OlapUtils(); JSONObject result = olapUtils.getOlapCubes(); JsonUtils.buildJsonResult(response.getOutputStream(), result != null, result); }
@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); }
@GET @Path("/getPaginatedLevelMembers") @Produces("text/javascript") public void getPaginatedLevelMembers( @QueryParam(MethodParams.CATALOG) String catalog, @QueryParam(MethodParams.CUBE) String cube, @QueryParam(MethodParams.LEVEL) String level, @QueryParam(MethodParams.START_MEMBER) String startMember, @QueryParam(MethodParams.CONTEXT) String context, @QueryParam(MethodParams.SEARCH_TERM) String searchTerm, @QueryParam(MethodParams.PAGE_SIZE) long pageSize, @QueryParam(MethodParams.PAGE_START) long pageStart, @Context HttpServletResponse response) throws IOException, JSONException { OlapUtils olapUtils = new OlapUtils(); JSONObject result = olapUtils.getPaginatedLevelMembers( catalog, cube, level, startMember, context, searchTerm, pageSize, pageStart); JsonUtils.buildJsonResult(response.getOutputStream(), result != null, result); }