congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DescribableList.addAll
Code IndexAdd Tabnine to your IDE (free)

How to use
addAll
method
in
hudson.util.DescribableList

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

origin: org.jenkins-ci.plugins/multiple-scms

@DataBoundConstructor
public MultiSCM(List<SCM> scmList) throws IOException {
  scms.addAll(scmList);
}
origin: jenkinsci/ghprb-plugin

private static DescribableList<GhprbExtension, GhprbExtensionDescriptor> copyExtensions(
    DescribableList<GhprbExtension, GhprbExtensionDescriptor>... extensionsList
) {
  DescribableList<GhprbExtension, GhprbExtensionDescriptor> copiedList = new DescribableList<>(Saveable.NOOP);
  for (DescribableList<GhprbExtension, GhprbExtensionDescriptor> extensions : extensionsList) {
    copiedList.addAll(extensions);
  }
  return copiedList;
}
origin: jenkinsci/junit-plugin

/**
 * @param testDataPublishers Test data publishers.
 *
 * @since 1.2
 */
@DataBoundSetter public final void setTestDataPublishers(@Nonnull List<TestDataPublisher> testDataPublishers) {
  this.testDataPublishers = new DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>>(Saveable.NOOP);
  this.testDataPublishers.addAll(testDataPublishers);
}
origin: jenkinsci/junit-plugin

/**
 * @param testDataPublishers Test data publishers.
 *
 * @since 1.2
 */
@DataBoundSetter public final void setTestDataPublishers(@Nonnull List<TestDataPublisher> testDataPublishers) {
  this.testDataPublishers = new DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>>(Saveable.NOOP);
  this.testDataPublishers.addAll(testDataPublishers);
}
origin: org.jenkins-ci.plugins/ivy

@Override
public DescribableList<Publisher, Descriptor<Publisher>> getPublishersList() {
  if (getParent().isAggregatorStyleBuild()) {
    return publishers;
  }
  DescribableList<Publisher, Descriptor<Publisher>> publishersList = new DescribableList<Publisher, Descriptor<Publisher>>(Saveable.NOOP);
  try {
    publishersList.addAll(createModulePublishers());
  } catch (IOException e) {
    LOGGER.warning("Failed to load module publisher list");
  }
  return publishersList;
}
origin: org.jvnet.hudson.plugins/ivy

@Override
public DescribableList<Publisher, Descriptor<Publisher>> getPublishersList() {
  if (getParent().isAggregatorStyleBuild()) {
    return publishers;
  }
  DescribableList<Publisher, Descriptor<Publisher>> publishersList = new DescribableList<Publisher, Descriptor<Publisher>>(Saveable.NOOP);
  try {
    publishersList.addAll(createModulePublishers());
  } catch (IOException e) {
    LOGGER.warning("Failed to load module publisher list");
  }
  return publishersList;
}
origin: org.hudsonci.plugins/ivy

@Override
public DescribableList<Publisher, Descriptor<Publisher>> getPublishersList() {
  if (getParent().isAggregatorStyleBuild()) {
    return publishers;
  }
  DescribableList<Publisher, Descriptor<Publisher>> publishersList = new DescribableList<Publisher, Descriptor<Publisher>>(Saveable.NOOP);
  try {
    publishersList.addAll(createModulePublishers());
  } catch (IOException e) {
    LOGGER.warning("Failed to load module publisher list");
  }
  return publishersList;
}
origin: jenkinsci/ghprb-plugin

public static DescribableList<GhprbExtension, GhprbExtensionDescriptor> matchesAll(
    DescribableList<GhprbExtension, GhprbExtensionDescriptor> extensions,
    Class<?>... types
) {
  Predicate predicate = PredicateUtils.allPredicate(createPredicate(types));
  DescribableList<GhprbExtension, GhprbExtensionDescriptor> copyExtensions = new DescribableList<>(Saveable.NOOP);
  copyExtensions.addAll(extensions);
  filterList(copyExtensions, predicate);
  return copyExtensions;
}
origin: jenkinsci/ghprb-plugin

public static DescribableList<GhprbExtension, GhprbExtensionDescriptor> matchesSome(
    DescribableList<GhprbExtension, GhprbExtensionDescriptor> extensions,
    Class<?>... types
) {
  Predicate predicate = PredicateUtils.anyPredicate(createPredicate(types));
  DescribableList<GhprbExtension, GhprbExtensionDescriptor> copyExtensions = new DescribableList<>(Saveable.NOOP);
  copyExtensions.addAll(extensions);
  filterList(copyExtensions, predicate);
  return copyExtensions;
}
origin: jenkinsci/ghprb-plugin

public static <T extends GhprbExtension> T getGlobal(Class<T> clazz) {
  DescribableList<GhprbExtension, GhprbExtensionDescriptor> copyExtensions = new DescribableList<>(Saveable.NOOP);
  copyExtensions.addAll(GhprbTrigger.DESCRIPTOR.getExtensions());
  filterList(copyExtensions, InstanceofPredicate.getInstance(clazz));
  return copyExtensions.get(clazz);
}
origin: hudson/hudson-2.x

/**
 * Converts collection of propertyClass descriptors to {@link DescribableList}
 *
 * @param descriptors .
 * @param owner new owner for properties.
 * @param propertyClass projectProperty
 * @return {@link DescribableList}
 */
@SuppressWarnings("unchecked")
public static <T extends Describable<T>, D extends Descriptor<T>, P extends IProjectProperty> DescribableList<T, D>
convertToDescribableList(List<D> descriptors, Job owner, Class<P> propertyClass) {
  List<T> describableList = new CopyOnWriteArrayList<T>();
  DescribableList<T, D> result = new DescribableList<T, D>(owner);
  for (Descriptor<T> descriptor : descriptors) {
    IProjectProperty<T> property =
      CascadingUtil.getProjectProperty(owner, descriptor.getJsonSafeClassName(), propertyClass);
    if (null != property.getValue()) {
      describableList.add(property.getValue());
    }
  }
  try {
    owner.setAllowSave(false);
    result.addAll(describableList);
    owner.setAllowSave(true);
  } catch (IOException e) {
    LOGGER.log(Level.WARNING, "Failed to add list of describable elements", e);
  }
  return result;
}
origin: org.eclipse.hudson/hudson-core

  /**
   * Converts collection of propertyClass descriptors to
   * {@link DescribableList}
   *
   * @param descriptors .
   * @param owner new owner for properties.
   * @param propertyClass projectProperty
   * @return {@link DescribableList}
   */
  @SuppressWarnings("unchecked")
  public static <T extends Describable<T>, D extends Descriptor<T>, P extends IProjectProperty> DescribableList<T, D> convertToDescribableList(List<D> descriptors, Job owner, Class<P> propertyClass) {
    List<T> describableList = new CopyOnWriteArrayList<T>();
    DescribableList<T, D> result = new DescribableList<T, D>(owner);
    for (Descriptor<T> descriptor : descriptors) {
      IProjectProperty<T> property =
          CascadingUtil.getProjectProperty(owner, descriptor.getJsonSafeClassName(), propertyClass);
      if (null != property.getValue()) {
        describableList.add(property.getValue());
      }
    }
    try {
      owner.setAllowSave(false);
      result.addAll(describableList);
      owner.setAllowSave(true);
    } catch (IOException e) {
      LOGGER.log(Level.WARNING, "Failed to add list of describable elements", e);
    }
    return result;
  }
}
origin: org.jvnet.hudson.main/hudson-core

/**
 * Converts collection of propertyClass descriptors to {@link DescribableList}
 *
 * @param descriptors .
 * @param owner new owner for properties.
 * @param propertyClass projectProperty
 * @return {@link DescribableList}
 */
@SuppressWarnings("unchecked")
public static <T extends Describable<T>, D extends Descriptor<T>, P extends IProjectProperty> DescribableList<T, D>
convertToDescribableList(List<D> descriptors, Job owner, Class<P> propertyClass) {
  List<T> describableList = new CopyOnWriteArrayList<T>();
  DescribableList<T, D> result = new DescribableList<T, D>(owner);
  for (Descriptor<T> descriptor : descriptors) {
    IProjectProperty<T> property =
      CascadingUtil.getProjectProperty(owner, descriptor.getJsonSafeClassName(), propertyClass);
    if (null != property.getValue()) {
      describableList.add(property.getValue());
    }
  }
  try {
    owner.setAllowSave(false);
    result.addAll(describableList);
    owner.setAllowSave(true);
  } catch (IOException e) {
    LOGGER.log(Level.WARNING, "Failed to add list of describable elements", e);
  }
  return result;
}
origin: org.eclipse.hudson.main/hudson-core

/**
 * Converts collection of propertyClass descriptors to {@link DescribableList}
 *
 * @param descriptors .
 * @param owner new owner for properties.
 * @param propertyClass projectProperty
 * @return {@link DescribableList}
 */
@SuppressWarnings("unchecked")
public static <T extends Describable<T>, D extends Descriptor<T>, P extends IProjectProperty> DescribableList<T, D>
convertToDescribableList(List<D> descriptors, Job owner, Class<P> propertyClass) {
  List<T> describableList = new CopyOnWriteArrayList<T>();
  DescribableList<T, D> result = new DescribableList<T, D>(owner);
  for (Descriptor<T> descriptor : descriptors) {
    IProjectProperty<T> property =
      CascadingUtil.getProjectProperty(owner, descriptor.getJsonSafeClassName(), propertyClass);
    if (null != property.getValue()) {
      describableList.add(property.getValue());
    }
  }
  try {
    owner.setAllowSave(false);
    result.addAll(describableList);
    owner.setAllowSave(true);
  } catch (IOException e) {
    LOGGER.log(Level.WARNING, "Failed to add list of describable elements", e);
  }
  return result;
}
hudson.utilDescribableListaddAll

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.
  • rebuildHetero
    Rebuilds the list by creating a fresh instances from the submitted form. This version works with the
  • isEmpty
  • rebuildHetero,
  • isEmpty,
  • replace,
  • replaceBy,
  • addAllTo,
  • removeAll,
  • size,
  • onModified,
  • clear

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
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