Package org.apache.sling.commons.json

Examples of org.apache.sling.commons.json.JSONObject.optBoolean()


        if (config == null) {
            config = new JSONObject();
        }

        if (config.optBoolean("includeDefault")) {
            config = underlay(config, resource.getResourceResolver().getResource(DEFAULT_CONFIG));
        }

        widget.put("rtePlugins", config);
View Full Code Here


            map.put(BulkWorkflowEngine.KEY_ESTIMATED_TOTAL,
                    params.optLong(BulkWorkflowEngine.KEY_ESTIMATED_TOTAL, BulkWorkflowEngine.DEFAULT_ESTIMATED_TOTAL));

            map.put(BulkWorkflowEngine.KEY_PURGE_WORKFLOW,
                    params.optBoolean(BulkWorkflowEngine.KEY_PURGE_WORKFLOW,
                            BulkWorkflowEngine.DEFAULT_PURGE_WORKFLOW));

            bulkWorkflowEngine.initialize(request.getResource(), map);
            bulkWorkflowEngine.start(request.getResource());
View Full Code Here

                    task.getRcp().setBatchSize((int) data.getLong(PARAM_BATCHSIZE));
                }
                task.setRecursive(data.optBoolean(PARAM_RECURSIVE, false));
                task.getRcp().setUpdate(data.optBoolean(PARAM_UPDATE, false));
                task.getRcp().setOnlyNewer(data.optBoolean(PARAM_ONLY_NEWER, false));
                task.getRcp().setNoOrdering(data.optBoolean(PARAM_NO_ORDERING, false));
                if (data.has(PARAM_THROTTLE)) {
                    task.getRcp().setThrottle(data.getLong(PARAM_THROTTLE));
                }
                if (data.has(PARAM_EXCLUDES)) {
                    JSONArray excludes = data.getJSONArray(PARAM_EXCLUDES);
View Full Code Here

                // add additional data
                if (data.has(PARAM_BATCHSIZE)) {
                    task.getRcp().setBatchSize((int) data.getLong(PARAM_BATCHSIZE));
                }
                task.setRecursive(data.optBoolean(PARAM_RECURSIVE, false));
                task.getRcp().setUpdate(data.optBoolean(PARAM_UPDATE, false));
                task.getRcp().setOnlyNewer(data.optBoolean(PARAM_ONLY_NEWER, false));
                task.getRcp().setNoOrdering(data.optBoolean(PARAM_NO_ORDERING, false));
                if (data.has(PARAM_THROTTLE)) {
                    task.getRcp().setThrottle(data.getLong(PARAM_THROTTLE));
View Full Code Here

                // add additional data
                if (data.has(PARAM_BATCHSIZE)) {
                    task.getRcp().setBatchSize((int) data.getLong(PARAM_BATCHSIZE));
                }
                task.setRecursive(data.optBoolean(PARAM_RECURSIVE, false));
                task.getRcp().setUpdate(data.optBoolean(PARAM_UPDATE, false));
                task.getRcp().setOnlyNewer(data.optBoolean(PARAM_ONLY_NEWER, false));
                task.getRcp().setNoOrdering(data.optBoolean(PARAM_NO_ORDERING, false));
                if (data.has(PARAM_THROTTLE)) {
                    task.getRcp().setThrottle(data.getLong(PARAM_THROTTLE));
                }
View Full Code Here

                if (data.has(PARAM_BATCHSIZE)) {
                    task.getRcp().setBatchSize((int) data.getLong(PARAM_BATCHSIZE));
                }
                task.setRecursive(data.optBoolean(PARAM_RECURSIVE, false));
                task.getRcp().setUpdate(data.optBoolean(PARAM_UPDATE, false));
                task.getRcp().setOnlyNewer(data.optBoolean(PARAM_ONLY_NEWER, false));
                task.getRcp().setNoOrdering(data.optBoolean(PARAM_NO_ORDERING, false));
                if (data.has(PARAM_THROTTLE)) {
                    task.getRcp().setThrottle(data.getLong(PARAM_THROTTLE));
                }
                if (data.has(PARAM_EXCLUDES)) {
View Full Code Here

        if (jsonArray != null) {
            for (int i = 0; i < jsonArray.length(); i++) {
                final JSONObject item = jsonArray.getJSONObject(i);

                boolean isMulti = item.optBoolean("multi", false);
                String name = item.optString("name", "");

                if (StringUtils.isNotBlank(name)) {
                    if (isMulti) {
                        final List<String> values = new ArrayList<String>();
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.