Package net.sf.json

Examples of net.sf.json.JSONObject.optBoolean()


        goals = Util.fixEmpty(req.getParameter("goals").trim());
        alternateSettings = Util.fixEmpty(req.getParameter("alternateSettings").trim());
        mavenOpts = Util.fixEmpty(req.getParameter("mavenOpts").trim());
        mavenName = req.getParameter("maven_version");
        aggregatorStyleBuild = !req.hasParameter("maven.perModuleBuild");
        if (json.optBoolean("usePrivateRepository"))
            localRepository = req.bindJSON(LocalRepositoryLocator.class,json.getJSONObject("explicitLocalRepository"));
        else
            localRepository = null;
        perModuleEmail = req.hasParameter("maven.perModuleEmail");
        ignoreUpstremChanges = !json.has("triggerByDependency");
View Full Code Here


            // Loop over changes
            List<AbstractFacet> newFacets = new ArrayList<AbstractFacet>();
            for (int i = 0; i < changes.size(); i++) {
                JSONObject change = changes.getJSONObject(i);
                // Skip deleted objects.  Someday, we might consider deleting them here
                if (change.optBoolean("deleted", false)) {
                    continue;
                }
                JSONObject observation = change.getJSONObject("doc");
                if (observation.optString("type").equals("observation")) {
                    MymeeObservationFacet newFacet = createOrUpdateObservation(updateInfo, rootURL, observation);
View Full Code Here

          String filterName = replicationJson.optString("filterName", null);
          if( null != filterName ) {
            replicationRequest.setFilter( filterName );
          }
         
          boolean continuous = replicationJson.optBoolean("continuous",false);
          if( continuous ) {
            replicationRequest.setContinuous(true);
          }
         
          config.addReplication(replicationRequest);
View Full Code Here

          String filterName = replicationJson.optString("filterName", null);
          if( null != filterName ) {
            replicationRequest.setFilter( filterName );
          }
         
          boolean continuous = replicationJson.optBoolean("continuous",false);
          if( continuous ) {
            replicationRequest.setContinuous(true);
          }
         
          config.addReplication(replicationRequest);
View Full Code Here

          String filterName = replicationJson.optString("filterName", null);
          if( null != filterName ) {
            replicationRequest.setFilter( filterName );
          }
         
          boolean continuous = replicationJson.optBoolean("continuous",false);
          if( continuous ) {
            replicationRequest.setContinuous(true);
          }
         
          config.addReplication(replicationRequest);
View Full Code Here

          String filterName = replicationJson.optString("filterName", null);
          if( null != filterName ) {
            replicationRequest.setFilter( filterName );
          }
         
          boolean continuous = replicationJson.optBoolean("continuous",false);
          if( continuous ) {
            replicationRequest.setContinuous(true);
          }
         
          config.addReplication(replicationRequest);
View Full Code Here

          String filterName = replicationJson.optString("filterName", null);
          if( null != filterName ) {
            replicationRequest.setFilter( filterName );
          }
         
          boolean continuous = replicationJson.optBoolean("continuous",false);
          if( continuous ) {
            replicationRequest.setContinuous(true);
          }
         
          config.addReplication(replicationRequest);
View Full Code Here

          String filterName = replicationJson.optString("filterName", null);
          if( null != filterName ) {
            replicationRequest.setFilter( filterName );
          }
         
          boolean continuous = replicationJson.optBoolean("continuous",false);
          if( continuous ) {
            replicationRequest.setContinuous(true);
          }
         
          config.addReplication(replicationRequest);
View Full Code Here

        if (formData.has("useRestApi")) {
            useRestApi = true;
            JSONObject restApi = formData.getJSONObject("useRestApi");
            gerritHttpUserName = restApi.optString("gerritHttpUserName", "");
            gerritHttpPassword = Secret.fromString(restApi.optString("gerritHttpPassword", ""));
            restCodeReview = restApi.optBoolean("restCodeReview", true);
            restVerified = restApi.optBoolean("restVerified", true);
        } else {
            useRestApi = false;
        }
View Full Code Here

            useRestApi = true;
            JSONObject restApi = formData.getJSONObject("useRestApi");
            gerritHttpUserName = restApi.optString("gerritHttpUserName", "");
            gerritHttpPassword = Secret.fromString(restApi.optString("gerritHttpPassword", ""));
            restCodeReview = restApi.optBoolean("restCodeReview", true);
            restVerified = restApi.optBoolean("restVerified", true);
        } else {
            useRestApi = false;
        }

        replicationConfig = ReplicationConfig.createReplicationConfigFromJSON(formData);
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.