Tabnine Logo
DescribableList.rebuildHetero
Code IndexAdd Tabnine to your IDE (free)

How to use
rebuildHetero
method
in
hudson.util.DescribableList

Best Java code snippets using hudson.util.DescribableList.rebuildHetero (Showing top 20 results out of 315)

origin: jenkinsci/jenkins

@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
  try {
    artifactManagerFactories.rebuildHetero(req, json, ArtifactManagerFactoryDescriptor.all(), "artifactManagerFactories");
    return true;
  } catch (IOException x) {
    throw new FormException(x, "artifactManagerFactories");
  }
}
origin: jenkinsci/jenkins

@Override
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
  try {
    authenticators.rebuildHetero(req,json, QueueItemAuthenticatorDescriptor.all(),"authenticators");
    return true;
  } catch (IOException e) {
    throw new FormException(e,"authenticators");
  }
}
origin: jenkinsci/jenkins

@Override
protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
  super.submit(req,rsp);
  JSONObject json = req.getSubmittedForm();
  getBuildWrappersList().rebuild(req,json, BuildWrappers.getFor(this));
  getBuildersList().rebuildHetero(req,json, Builder.all(), "builder");
  getPublishersList().rebuildHetero(req, json, Publisher.all(), "publisher");
}
origin: jenkinsci/jenkins

  columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(this);
columns.rebuildHetero(req, json, ListViewColumn.all(), "columns");
jobFilters.rebuildHetero(req, json, ViewJobFilter.all(), "jobFilters");
origin: org.jenkins-ci.plugins/nested-view

public void updateFromForm(StaplerRequest req, JSONObject formData, String key) throws IOException, Descriptor.FormException {
  columns.rebuildHetero(req, formData, getPossibleColumns(), key);
}
origin: org.jenkins-ci.main/jenkins-core

@Override
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
  try {
    authenticators.rebuildHetero(req,json, QueueItemAuthenticatorDescriptor.all(),"authenticators");
    return true;
  } catch (IOException e) {
    throw new FormException(e,"authenticators");
  }
}
origin: org.jenkins-ci.main/jenkins-core

@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
  try {
    artifactManagerFactories.rebuildHetero(req, json, ArtifactManagerFactoryDescriptor.all(), "artifactManagerFactories");
    return true;
  } catch (IOException x) {
    throw new FormException(x, "artifactManagerFactories");
  }
}
origin: org.jenkins-ci.main/jenkins-core

@Override
protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
  super.submit(req,rsp);
  JSONObject json = req.getSubmittedForm();
  getBuildWrappersList().rebuild(req,json, BuildWrappers.getFor(this));
  getBuildersList().rebuildHetero(req,json, Builder.all(), "builder");
  getPublishersList().rebuildHetero(req, json, Publisher.all(), "publisher");
}
origin: jenkinsci/ghprb-plugin

extensions.rebuildHetero(req, formData, getGlobalExtensionDescriptors(), "extensions");
origin: org.jenkins-ci.plugins/sectioned-view

@Override
public SectionedViewSection newInstance(StaplerRequest req, JSONObject formData) throws FormException {
  ListViewSection section = (ListViewSection) super.newInstance(req, formData);
  if (section.columns == null) {
    section.columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(Saveable.NOOP);
  }
  try {
    section.columns.rebuildHetero(req, formData, Hudson.getInstance().<ListViewColumn,Descriptor<ListViewColumn>>getDescriptorList(ListViewColumn.class), "columns");
  } catch (IOException e) {
    throw new FormException("Error rebuilding list of columns.", e, "columns");
  }
  return section;
}
origin: org.jenkins-ci.plugins/sectioned-view

  section.jobFilters.rebuildHetero(req, formData, ViewJobFilter.all(), "jobFilters");
} catch (IOException e) {
  throw new FormException("Error rebuilding list of view job filters.", e, "jobFilters");
origin: org.jenkins-ci.plugins/sectioned-view

/**
 * Handles the configuration submission.
 * 
 * Load view-specific properties here.
 */
@Override
protected void submit(StaplerRequest req) throws ServletException,
    FormException {
  if (sections == null) {
    sections = new DescribableList<SectionedViewSection, Descriptor<SectionedViewSection>>(
        Saveable.NOOP);
  }
  try {
    sections.rebuildHetero(req, req.getSubmittedForm(), Hudson
        .getInstance().<SectionedViewSection, Descriptor<SectionedViewSection>>getDescriptorList(SectionedViewSection.class),
        "sections");
  } catch (IOException e) {
    throw new FormException("Error rebuilding list of sections.", e, "sections");
  }
}
origin: org.eclipse.hudson/hudson-core

  columns = new DescribableList<ListViewColumn, Descriptor<ListViewColumn>>(this);
columns.rebuildHetero(req, req.getSubmittedForm(), ListViewColumn.all(), "columns");
jobFilters.rebuildHetero(req, req.getSubmittedForm(), ViewJobFilter.all(), "jobFilters");
origin: org.eclipse.hudson.main/hudson-core

  columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(this);
columns.rebuildHetero(req, req.getSubmittedForm(), ListViewColumn.all(), "columns");
jobFilters.rebuildHetero(req, req.getSubmittedForm(), ViewJobFilter.all(), "jobFilters");
origin: hudson/hudson-2.x

  columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(this);
columns.rebuildHetero(req, req.getSubmittedForm(), ListViewColumn.all(), "columns");
jobFilters.rebuildHetero(req, req.getSubmittedForm(), ViewJobFilter.all(), "jobFilters");
origin: org.jvnet.hudson.main/hudson-core

  columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(this);
columns.rebuildHetero(req, req.getSubmittedForm(), ListViewColumn.all(), "columns");
jobFilters.rebuildHetero(req, req.getSubmittedForm(), ViewJobFilter.all(), "jobFilters");
origin: hudson.plugins/project-inheritance

  >(this);
references.rebuildHetero(
    req, req.getSubmittedForm(),
    AbstractProjectReference.all(), "projects"
  columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(this);
columns.rebuildHetero(req, req.getSubmittedForm(), ListViewColumn.all(), "columns");
origin: org.jenkins-ci.plugins/matrix-project

@Override
protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException {
  super.submit(req, rsp);
  JSONObject json = req.getSubmittedForm();
  if(req.getParameter("hasCombinationFilter")!=null) {
    this.combinationFilter = Util.nullify(req.getParameter("combinationFilter"));
  } else {
    this.combinationFilter = null;
  }
  if(json.optBoolean("hasChildCustomWorkspace", json.has("childCustomWorkspace"))) {
   setChildCustomWorkspace(Util.fixEmptyAndTrim(json.optString("childCustomWorkspace")));
  } else {
    setChildCustomWorkspace(null);
  }
  List<MatrixExecutionStrategyDescriptor> esd = getDescriptor().getExecutionStrategyDescriptors();
  if (esd.size()>1)
    executionStrategy = req.bindJSON(MatrixExecutionStrategy.class,json.getJSONObject("executionStrategy"));
  else
    executionStrategy = req.bindJSON(esd.get(0).clazz,json.getJSONObject("executionStrategy"));
  DescribableList<Axis,AxisDescriptor> newAxes = new DescribableList<Axis,AxisDescriptor>(this);
  newAxes.rebuildHetero(req, json, Axis.all(),"axis");
  checkAxes(newAxes);
  this.axes = new AxisList(newAxes.toList());
  buildWrappers.rebuild(req, json, BuildWrappers.getFor(this));
  builders.rebuildHetero(req, json, Builder.all(), "builder");
  publishers.rebuildHetero(req, json, Publisher.all(), "publisher");
  rebuildConfigurations(null);
}
origin: org.jenkins-ci.main/jenkins-core

  columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(this);
columns.rebuildHetero(req, json, ListViewColumn.all(), "columns");
jobFilters.rebuildHetero(req, json, ViewJobFilter.all(), "jobFilters");
origin: jenkinsci/maven-plugin

mavenValidationLevel = NumberUtils.toInt(req.getParameter("maven.validationLevel"), -1);
reporters.rebuild(req,json,MavenReporters.getConfigurableList());
publishers.rebuildHetero(req, json, Publisher.all(), "publisher");
buildWrappers.rebuild(req, json, BuildWrappers.getFor(this));
JSONObject enableTriggerDownstreamProjects = json.optJSONObject("enableTriggerDownstreamProjects");
prebuilders.rebuildHetero(req,json, Builder.all(), "prebuilder");
postbuilders.rebuildHetero(req,json, Builder.all(), "postbuilder");
hudson.utilDescribableListrebuildHetero

Javadoc

Rebuilds the list by creating a fresh instances from the submitted form.

This version works with the the <f:hetero-list> UI tag, where the user is allowed to create multiple instances of the same descriptor. Order is also significant.

Popular methods of DescribableList

  • get
  • toList
  • add
  • <init>
  • rebuild
  • remove
  • setOwner
  • getAll
  • toMap
    Creates a detached map from the current snapshot of the data, keyed from a descriptor to an instance
  • buildDependencyGraph
    Picks up DependecyDeclarers and allow it to build dependencies.
  • addAll
  • isEmpty
  • addAll,
  • isEmpty,
  • replace,
  • replaceBy,
  • addAllTo,
  • removeAll,
  • size,
  • onModified,
  • clear

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JComboBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now