Ejemplo n.º 1
0
 public void load() {
   XmlFile file = getConfigFile();
   if (file.exists()) {
     try {
       file.unmarshal(this);
     } catch (IOException e) {
       LOGGER.log(Level.WARNING, "Failed to load " + file, e);
     }
   }
   properties.setOwner(this);
   updateTransientActions();
 }
Ejemplo n.º 2
0
  /** Accepts the update to the node configuration. */
  @RequirePOST
  public void doConfigSubmit(StaplerRequest req, StaplerResponse rsp)
      throws IOException, ServletException, FormException {
    final Jenkins app = Jenkins.getInstance();

    app.checkPermission(Jenkins.ADMINISTER);

    properties.rebuild(req, req.getSubmittedForm(), getApplicablePropertyDescriptors());

    this.description = req.getSubmittedForm().getString("description");

    updateTransientActions();
    save();

    FormApply.success(".").generateResponse(req, rsp, null);
  }
Ejemplo n.º 3
0
 @Exported
 public List<LabelAtomProperty> getPropertiesList() {
   return properties.toList();
 }