Tabnine Logo
DescribableList.toList
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
  • ImageIO (javax.imageio)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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