@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { req.bindJSON(this, json); save(); return super.configure(req, json); }
@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { connections = req.bindJSONToList(GitLabConnection.class, json.get("connections")); useAuthenticatedEndpoint = json.getBoolean("useAuthenticatedEndpoint"); refreshConnectionMap(); save(); return super.configure(req, json); }
public boolean superConfigure(StaplerRequest req, JSONObject json) throws FormException { return super.configure(req, json); }
public boolean superConfigure(StaplerRequest req) throws FormException { return super.configure(req); }
public boolean superConfigure(StaplerRequest req) throws FormException { return super.configure(req); }
public boolean superConfigure(StaplerRequest req, JSONObject json) throws FormException { return super.configure(req, json); }
@Override public boolean configure(StaplerRequest req, JSONObject formData) throws FormException { // To persist global configuration information, // set that to properties and call save(). debugMode = Boolean.parseBoolean(formData.getString("debugMode")); save(); return super.configure(req,formData); }
@Override public boolean configure(StaplerRequest req, JSONObject formData) throws FormException { this.prefix = formData.getString("prefix"); this.host = formData.getString("host"); this.port = formData.getInt("port"); save(); return super.configure(req,formData); }
@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { req.bindJSON(this, json); save(); return super.configure(req, json); }
@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { initPython(); if (pexec.isImplemented(21)) { return pexec.execPythonBool("configure", req, json); } else { return super.configure(req, json); } }
@Override public boolean configure(StaplerRequest req) throws FormException { initPython(); if (pexec.isImplemented(20)) { return pexec.execPythonBool("configure", req); } else { return super.configure(req); } }
@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { initPython(); if (pexec.isImplemented(21)) { return pexec.execPythonBool("configure", req, json); } else { return super.configure(req, json); } }
@Override public boolean configure(StaplerRequest req) throws FormException { initPython(); if (pexec.isImplemented(20)) { return pexec.execPythonBool("configure", req); } else { return super.configure(req); } }
/** * {@inheritDoc} */ @Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { if (Jenkins.getActiveInstance().hasPermission(Jenkins.ADMINISTER)) { if (!json.has("restrictions")) { // JENKINS-36090 stapler "helpfully" does not submit the restrictions if there are none // and hence you can never delete the laste one json.put("restrictions", new JSONArray()); } req.bindJSON(this, json); return super.configure(req, json); } return false; }
/** * {@inheritDoc} */ @Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { if (Jenkins.getActiveInstance().hasPermission(Jenkins.ADMINISTER)) { if (!json.has("restrictions")) { // JENKINS-36090 stapler "helpfully" does not submit the restrictions if there are none // and hence you can never delete the laste one json.put("restrictions", new JSONArray()); } req.bindJSON(this, json); return super.configure(req, json); } return false; }