Codota Logo
DescribableList.toList
Code IndexAdd Codota to your IDE (free)

How to use
toList
method
in
hudson.util.DescribableList

Best Java code snippets using hudson.util.DescribableList.toList (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

/**
 * @deprecated as of 1.301
 *      Use {@link #getMonitors()}.
 */
@Deprecated
public static List<NodeMonitor> get_monitors() {
  return monitors.toList();
}
origin: jenkinsci/jenkins

/**
 * Obtains all the instances of {@link NodeMonitor}s that are alive.
 * @since 1.187
 */
public static List<NodeMonitor> getAll() {
  return ComputerSet.getMonitors().toList();
}
origin: jenkinsci/jenkins

@Exported
public List<LabelAtomProperty> getPropertiesList() {
  return properties.toList();
}
origin: jenkinsci/jenkins

public List<Builder> getBuilders() {
  return getBuildersList().toList();
}
origin: jenkinsci/jenkins

/**
 * List of all {@link ViewProperty}s exposed primarily for the remoting API.
 * @since 1.406
 */
@Exported(name="property",inline=true)
public List<ViewProperty> getAllProperties() {
  return getProperties().toList();
}
origin: jenkinsci/jenkins

  @Override
  public Object onConvert(Type targetType, Class targetTypeErasure, Object jsonSource) {
    if (jsonForProperties != jsonSource) {
      return old.get().onConvert(targetType, targetTypeErasure, jsonSource);
    }
    try {
      DescribableList<NodeProperty<?>, NodePropertyDescriptor> tmp = new DescribableList<NodeProperty<?>, NodePropertyDescriptor>(Saveable.NOOP,getNodeProperties().toList());
      tmp.rebuild(req, jsonForProperties, NodeProperty.all());
      return tmp.toList();
    } catch (FormException e) {
      throw new IllegalArgumentException(e);
    } catch (IOException e) {
      throw new IllegalArgumentException(e);
    }
  }
}));
origin: jenkinsci/jenkins

public MavenInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException {
  return new MavenInstallation(getName(), translateFor(node, log), getProperties().toList());
}
origin: jenkinsci/jenkins

public MavenInstallation forEnvironment(EnvVars environment) {
  return new MavenInstallation(getName(), environment.expand(getHome()), getProperties().toList());
}
origin: org.jenkins-ci.main/jenkins-core

/**
 * @deprecated as of 1.301
 *      Use {@link #getMonitors()}.
 */
@Deprecated
public static List<NodeMonitor> get_monitors() {
  return monitors.toList();
}
origin: org.eclipse.hudson/hudson-core

/**
 * @return list of {@link Trigger} elements.
 */
public List<Trigger<?>> getTriggersList() {
  return getTriggerDescribableList().toList();
}
origin: org.eclipse.hudson.main/hudson-core

/**
 * @inheritDoc
 */
public List<Builder> getBuilders() {
  return getBuildersList().toList();
}
origin: org.eclipse.hudson/hudson-plugin-utils

/**
 * @throws UnsupportedProjectException if the Project type is
 * {@link Type#UNSUPPORTED}.
 */
public Collection<Publisher> getPublishers() {
  return getPublishersList().toList();
}
origin: org.jvnet.hudson.main/hudson-plugin-utils

/**
 * @throws UnsupportedProjectException if the Project type is {@link Type#UNSUPPORTED}.
 */
public Collection<BuildWrapper> getBuildWrappers() {
  return getBuildWrappersList().toList();
}
origin: org.jvnet.hudson.main/hudson-plugin-utils

/**
 * @throws UnsupportedProjectException if the Project type is {@link Type#UNSUPPORTED}.
 */
public Collection<Publisher> getPublishers() {
  return getPublishersList().toList();
}
origin: org.eclipse.hudson.main/hudson-plugin-utils

/**
 * @throws UnsupportedProjectException if the Project type is {@link Type#UNSUPPORTED}.
 */
public Collection<BuildWrapper> getBuildWrappers() {
  return getBuildWrappersList().toList();
}
origin: org.jvnet.hudson.main/hudson-core

@Override
public boolean allowOverrideValue(DescribableList cascadingValue, DescribableList candidateValue) {
  if (null == cascadingValue && null == candidateValue) {
    return false;
  }
  if (null != cascadingValue && null != candidateValue) {
    List cascadingList = cascadingValue.toList();
    List candidateList = candidateValue.toList();
    return !(CollectionUtils.isEqualCollection(cascadingList, candidateList) || DeepEquals.deepEquals(cascadingList, candidateList));
  }
  return true;
}
origin: org.jenkins-ci.main/jenkins-core

/**
 * Obtains all the instances of {@link NodeMonitor}s that are alive.
 * @since 1.187
 */
public static List<NodeMonitor> getAll() {
  return ComputerSet.getMonitors().toList();
}
origin: org.eclipse.hudson/hudson-core

@Override
public boolean allowOverrideValue(DescribableList cascadingValue, DescribableList candidateValue) {
  if (null == cascadingValue && null == candidateValue) {
    return false;
  }
  if (null != cascadingValue && null != candidateValue) {
    List cascadingList = cascadingValue.toList();
    List candidateList = candidateValue.toList();
    return !(CollectionUtils.isEqualCollection(cascadingList, candidateList) || DeepEquals.deepEquals(cascadingList, candidateList));
  }
  return true;
}
origin: groupon/DotCi

  @Override
  public Object encode(Object value, MappedField optionalExtraInfo) {
    if (value == null) return null;

    DescribableList describableList = (DescribableList) value;

    BasicDBList convertedList = new BasicDBList();

    for (Object obj : describableList.toList()) {
      convertedList.add(getMapper().toDBObject(obj));
    }

    return convertedList;
  }
}
origin: org.hudsonci.plugins/mercurial

public MercurialInstallation forNode(Node node, TaskListener log)
    throws IOException, InterruptedException {
  return new MercurialInstallation(getName(), translateFor(node, log),
      executable, debug, useCaches, useSharing,
      getProperties().toList());
}
hudson.utilDescribableListtoList

Popular methods of DescribableList

  • get
  • 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
  • addAll
  • isEmpty
  • addAll,
  • isEmpty,
  • replace,
  • replaceBy,
  • addAllTo,
  • removeAll,
  • size,
  • onModified,
  • clear

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
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