Codota Logo
DescribableList.rebuildHetero
Code IndexAdd Codota 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)

  • Common ways to obtain DescribableList
private void myMethod () {
DescribableList d =
  • Codota IconBuildableItemWithBuildWrappers biwbw;biwbw.getBuildWrappersList()
  • Codota IconSaveable owner;new DescribableList<ToolProperty<?>, ToolPropertyDescriptor>(owner)
  • Codota IconListView listView;new DescribableList<ViewJobFilter, Descriptor<ViewJobFilter>>(listView)
  • Smart code suggestions by Codota
}
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 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
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 {
    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
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
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

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Reference (javax.naming)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now