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

How to use
toMap
method
in
hudson.util.DescribableList

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

origin: jenkinsci/jenkins

/**
 * @deprecated as of 1.463
 *      We will be soon removing the restriction that only one instance of publisher is allowed per type.
 *      Use {@link #getPublishersList()} instead.
 */
@Deprecated
public Map<Descriptor<Publisher>,Publisher> getPublishers() {
  return getPublishersList().toMap();
}
origin: jenkinsci/jenkins

@SuppressWarnings("unchecked")
@Override public Map<TriggerDescriptor,Trigger<?>> getTriggers() {
  return triggers().toMap();
}
origin: jenkinsci/jenkins

public Map<Descriptor<BuildWrapper>,BuildWrapper> getBuildWrappers() {
  return getBuildWrappersList().toMap();
}
origin: org.jenkins-ci.plugins/cloudbees-folder

public Map<TriggerDescriptor,Trigger<?>> getTriggers() {
  return triggers.toMap();
}
origin: org.jenkins-ci.plugins/matrix-project

public Map<Descriptor<BuildWrapper>,BuildWrapper> getBuildWrappers() {
  return buildWrappers.toMap();
}
origin: org.jenkins-ci.plugins/matrix-project

public Map<Descriptor<Publisher>,Publisher> getPublishers() {
  return publishers.toMap();
}
origin: org.eclipse.hudson.main/hudson-core

/**
 * @inheritDoc
 */
public Map<Descriptor<Publisher>,Publisher> getPublishers() {
  return getPublishersList().toMap();
}
origin: org.eclipse.hudson/hudson-core

 /**
 * @inheritDoc
 */
@Override
public Map<Descriptor<Publisher>, Publisher> getPublishers() {
  return getPublishersList().toMap();
}

origin: org.jenkins-ci.main/jenkins-core

/**
 * @deprecated as of 1.463
 *      We will be soon removing the restriction that only one instance of publisher is allowed per type.
 *      Use {@link #getPublishersList()} instead.
 */
@Deprecated
public Map<Descriptor<Publisher>,Publisher> getPublishers() {
  return getPublishersList().toMap();
}
origin: org.jvnet.hudson.main/hudson-core

/**
 * @inheritDoc
 */
public Map<Descriptor<Publisher>,Publisher> getPublishers() {
  return getPublishersList().toMap();
}
origin: org.eclipse.hudson/hudson-core

/**
 * @inheritDoc
 */
 @Override
public Map<Descriptor<BuildWrapper>, BuildWrapper> getBuildWrappers() {
  return getBuildWrappersList().toMap();
}

origin: org.eclipse.hudson.main/hudson-core

/**
 * @inheritDoc
 */
public Map<Descriptor<BuildWrapper>,BuildWrapper> getBuildWrappers() {
  return getBuildWrappersList().toMap();
}
origin: org.jvnet.hudson.main/hudson-core

/**
 * @inheritDoc
 */
public Map<Descriptor<BuildWrapper>,BuildWrapper> getBuildWrappers() {
  return getBuildWrappersList().toMap();
}
origin: hudson/hudson-2.x

/**
 * @inheritDoc
 */
public Map<Descriptor<Publisher>,Publisher> getPublishers() {
  return getPublishersList().toMap();
}
origin: hudson/hudson-2.x

/**
 * @inheritDoc
 */
public Map<Descriptor<BuildWrapper>,BuildWrapper> getBuildWrappers() {
  return getBuildWrappersList().toMap();
}
origin: org.jenkins-ci.main/jenkins-core

@SuppressWarnings("unchecked")
@Override public Map<TriggerDescriptor,Trigger<?>> getTriggers() {
  return triggers().toMap();
}
origin: org.jenkins-ci.main/jenkins-core

public Map<Descriptor<BuildWrapper>,BuildWrapper> getBuildWrappers() {
  return getBuildWrappersList().toMap();
}
origin: jenkinsci/dingding-notifications-plugin

  private DingdingService getService(AbstractBuild build, TaskListener listener) {
    Map<Descriptor<Publisher>, Publisher> map = build.getProject().getPublishersList().toMap();
    for (Publisher publisher : map.values()) {
      if (publisher instanceof DingdingNotifier) {
        return ((DingdingNotifier) publisher).newDingdingService(build, listener);
      }
    }
    return null;
  }
}
origin: jlewallen/jenkins-hipchat-plugin

@SuppressWarnings("unchecked")
FineGrainedNotifier getNotifier(AbstractProject project) {
  Map<Descriptor<Publisher>, Publisher> map = project.getPublishersList().toMap();
  for (Publisher publisher : map.values()) {
    if (publisher instanceof HipChatNotifier) {
      return new ActiveNotifier((HipChatNotifier) publisher);
    }
  }
  return new DisabledNotifier();
}
origin: jlewallen/jenkins-hipchat-plugin

@Override
public boolean prebuild(AbstractBuild<?, ?> build, BuildListener listener) {
  if (startNotification) {
    Map<Descriptor<Publisher>, Publisher> map = build.getProject().getPublishersList().toMap();
    for (Publisher publisher : map.values()) {
      if (publisher instanceof HipChatNotifier) {
        logger.info("Invoking Started...");
        new ActiveNotifier((HipChatNotifier) publisher).started(build);
      }
    }
  }
  return super.prebuild(build, listener);
}
hudson.utilDescribableListtoMap

Javadoc

Creates a detached map from the current snapshot of the data, keyed from a descriptor to an instance.

Popular methods of DescribableList

  • get
  • toList
  • add
  • <init>
  • rebuild
  • remove
  • setOwner
  • getAll
  • 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

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Best IntelliJ plugins
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