Package org.json

Examples of org.json.JSONObject.accumulate()


        userview.setName(userviewService.getUserviewName(json));
        userview.setDescription(userviewService.getUserviewDescription(json));
        userview.setJson(PropertyUtil.propertiesJsonStoreProcessing(userview.getJson(), json));

        boolean success = userviewDefinitionDao.update(userview);
        jsonObject.accumulate("success", success);

        jsonObject.write(writer);
    }

    @RequestMapping(value = {"/console/app/(*:appId)/(~:appVersion)/userview/builderPreview/(*:userviewId)","/console/app/(*:appId)/(~:appVersion)/userview/builderPreview/(*:userviewId)/(*:menuId)"}, method = RequestMethod.POST)
View Full Code Here


        datalist.setDescription(dlist.getName());
        datalist.setJson(PropertyUtil.propertiesJsonStoreProcessing(datalist.getJson(), json));

        boolean success = datalistDefinitionDao.update(datalist);
        JSONObject jsonObject = new JSONObject();
        jsonObject.accumulate("success", success);
        jsonObject.write(writer);
    }

    @RequestMapping(value = {"/console/app/(*:appId)/(~:appVersion)/datalist/builderPreview/(*:id)", "/client/app/(*:appId)/(*:appVersion)/datalist/(*:id)"})
    public String preview(ModelMap map, HttpServletRequest request, @RequestParam("appId") String appId, @RequestParam(value = "appVersion", required = false) String appVersion, @RequestParam("id") String id, @RequestParam(required = false) String json) throws Exception {
View Full Code Here

                }
            }
            hm.put("type", "text");
            collection.add(hm);
        }
        jsonObject.accumulate("actions", collection);
        jsonObject.write(writer);
    }

    @RequestMapping(value = "/json/console/app/(*:appId)/(~:appVersion)/builder/binder/columns", method = RequestMethod.POST)
    public void getBuilderDataColumnList(ModelMap map, Writer writer, @RequestParam("appId") String appId, @RequestParam(required = false) String appVersion, @RequestParam String id, @RequestParam String binderId, HttpServletRequest request) throws Exception {
View Full Code Here

            hm.put("sortable", true);
            hm.put("filterable", true);
            hm.put("type", sourceColumn.getType());
            collection.add(hm);
        }
        jsonObject.accumulate("columns", collection);
        jsonObject.write(writer);
    }

    @RequestMapping("/dbuilder/getFilterTemplate")
    public String getBuilderFilterTemplate(ModelMap model, @RequestParam("json") String json) throws Exception {
View Full Code Here

            for (Organization organization : organizations) {
                Map data = new HashMap();
                data.put("id", organization.getId());
                data.put("name", organization.getName());
                data.put("description", organization.getDescription());
                jsonObject.accumulate("data", data);
            }
        }

        jsonObject.accumulate("total", getDirectoryManager().getTotalOrganizationsByFilter(name));
        jsonObject.accumulate("start", start);
View Full Code Here

                data.put("description", organization.getDescription());
                jsonObject.accumulate("data", data);
            }
        }

        jsonObject.accumulate("total", getDirectoryManager().getTotalOrganizationsByFilter(name));
        jsonObject.accumulate("start", start);
        jsonObject.accumulate("sort", sort);
        jsonObject.accumulate("desc", desc);

        if (callback != null && callback.trim().length() != 0) {
View Full Code Here

                jsonObject.accumulate("data", data);
            }
        }

        jsonObject.accumulate("total", getDirectoryManager().getTotalOrganizationsByFilter(name));
        jsonObject.accumulate("start", start);
        jsonObject.accumulate("sort", sort);
        jsonObject.accumulate("desc", desc);

        if (callback != null && callback.trim().length() != 0) {
            writer.write(StringEscapeUtils.escapeHtml(callback) + "(" + jsonObject + ");");
View Full Code Here

            }
        }

        jsonObject.accumulate("total", getDirectoryManager().getTotalOrganizationsByFilter(name));
        jsonObject.accumulate("start", start);
        jsonObject.accumulate("sort", sort);
        jsonObject.accumulate("desc", desc);

        if (callback != null && callback.trim().length() != 0) {
            writer.write(StringEscapeUtils.escapeHtml(callback) + "(" + jsonObject + ");");
        } else {
View Full Code Here

        }

        jsonObject.accumulate("total", getDirectoryManager().getTotalOrganizationsByFilter(name));
        jsonObject.accumulate("start", start);
        jsonObject.accumulate("sort", sort);
        jsonObject.accumulate("desc", desc);

        if (callback != null && callback.trim().length() != 0) {
            writer.write(StringEscapeUtils.escapeHtml(callback) + "(" + jsonObject + ");");
        } else {
            jsonObject.write(writer);
View Full Code Here

                data.put("name", department.getName());
                data.put("description", department.getDescription());
                data.put("description", department.getDescription());
                data.put("organization.name", (department.getOrganization() != null) ? department.getOrganization().getName() : "");
                data.put("parent.name", (department.getParent() != null) ? department.getParent().getName() : "");
                jsonObject.accumulate("data", data);
            }
        }

        jsonObject.accumulate("total", getDirectoryManager().getTotalDepartmentnsByOrganizationId(name, orgId));
        jsonObject.accumulate("start", start);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.