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

How to use
getAll
method
in
hudson.util.DescribableList

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

origin: org.jenkins-ci.plugins/s3

  private static List<S3CopyArtifact> getCopiers(AbstractProject project) {
    DescribableList<Builder,Descriptor<Builder>> list =
        project instanceof Project ? ((Project<?,?>)project).getBuildersList()
         : (project instanceof MatrixProject ?
           ((MatrixProject)project).getBuildersList() : null);
    if (list == null) return Collections.emptyList();
    return (List<S3CopyArtifact>)list.getAll(S3CopyArtifact.class);
  }
}
origin: jenkinsci/copyartifact-plugin

private static List<CopyArtifact> getCopyArtifactsInProject(AbstractProject<?,?> project) throws IOException {
  DescribableList<Builder,Descriptor<Builder>> list =
      project instanceof Project ? ((Project<?,?>)project).getBuildersList()
       : (project instanceof MatrixProject ?
         ((MatrixProject)project).getBuildersList() : null);
  if (list == null) return Collections.emptyList();
  return list.getAll(CopyArtifact.class);
}
origin: jenkinsci/cloudbees-folder-plugin

/**
 * Historical synonym for {@link #canAdd}.
 *
 * @param tid the potential child item.
 * @return {@code true} if it can be added.
 */
public boolean isAllowedChild(TopLevelItem tid) {
  for (FolderProperty<?> p : getProperties().getAll(FolderProperty.class)) {
    if (!p.allowsParentToHave(tid)) {
      return false;
    }
  }
  return true;
}
origin: org.jvnet.hudson.main/maven3-plugin

public List<BuildConfigurationDTO> getBuilderConfigurations(final String projectName) {
  checkNotNull(projectName);
  log.debug("Fetching builder configs: {}", projectName);
  MetaProject project = new MetaProject(projects.getProject(projectName));
  project.checkPermission(Item.CONFIGURE);
  List<MavenBuilder> builders = project.getBuildersList().getAll(MavenBuilder.class);
  List<BuildConfigurationDTO> configs = Lists.newArrayListWithCapacity(builders.size());
  for (MavenBuilder builder : builders) {
    configs.add(builder.getConfig());
  }
  return configs;
}
origin: org.jenkins-ci.plugins/cloudbees-folder

/**
 * Historical synonym for {@link #canAdd}.
 *
 * @param tid the potential child item.
 * @return {@code true} if it can be added.
 */
public boolean isAllowedChild(TopLevelItem tid) {
  for (FolderProperty<?> p : getProperties().getAll(FolderProperty.class)) {
    if (!p.allowsParentToHave(tid)) {
      return false;
    }
  }
  return true;
}
origin: jenkinsci/cloudbees-folder-plugin

@Deprecated
protected List<Action> createTransientActions() {
  Vector<Action> ta = new Vector<Action>();
  for (TransientFolderActionFactory tpaf : TransientFolderActionFactory.all()) {
    ta.addAll(Util.fixNull(tpaf.createFor(this))); // be defensive against null
  }
  for (FolderProperty<?> p: getProperties().getAll(FolderProperty.class)) {
    ta.addAll(Util.fixNull(p.getFolderActions()));
  }
  return ta;
}
origin: org.jenkins-ci.plugins/cloudbees-folder

@SuppressWarnings("deprecation")
protected List<Action> createTransientActions() {
  Vector<Action> ta = new Vector<Action>();
  for (TransientFolderActionFactory tpaf : TransientFolderActionFactory.all()) {
    ta.addAll(Util.fixNull(tpaf.createFor(this))); // be defensive against null
  }
  for (FolderProperty<?> p: getProperties().getAll(FolderProperty.class)) {
    ta.addAll(Util.fixNull(p.getFolderActions()));
  }
  return ta;
}
origin: org.jenkins-ci.plugins/ivy

private void copyParentBuildWrappers(IvyModuleSet parent)
{
  if(!parent.isAggregatorStyleBuild())
  {
    List<BuildWrapper> parentWrappers = parent.getBuildWrappersList().getAll(BuildWrapper.class);
  
    
    
    for (BuildWrapper buildWrapper : parentWrappers) {
      try
      {
        IvyClonerWrapper cloner = new IvyClonerWrapper();
        cloner.dontClone(Descriptor.class);
        getBuildWrappersList().add(cloner.deepClone(buildWrapper));
      }
      catch(IOException e)
      {
        throw new RuntimeException("Could not copy build wrappers", e);
      }
    }
  }
}
 
origin: org.jvnet.hudson.plugins/ivy

private void copyParentBuildWrappers(IvyModuleSet parent)
{
  if(!parent.isAggregatorStyleBuild())
  {
    List<BuildWrapper> parentWrappers = parent.getBuildWrappersList().getAll(BuildWrapper.class);
  
    
    
    for (BuildWrapper buildWrapper : parentWrappers) {
      try
      {
        IvyClonerWrapper cloner = new IvyClonerWrapper();
        cloner.dontClone(Descriptor.class);
        getBuildWrappersList().add(cloner.deepClone(buildWrapper));
      }
      catch(IOException e)
      {
        throw new RuntimeException("Could not copy build wrappers", e);
      }
    }
  }
}

origin: org.hudsonci.plugins/ivy

private void copyParentBuildWrappers(IvyModuleSet parent)
{
  if(!parent.isAggregatorStyleBuild())
  {
    List<BuildWrapper> parentWrappers = parent.getBuildWrappersList().getAll(BuildWrapper.class);
  
    
    
    for (BuildWrapper buildWrapper : parentWrappers) {
      try
      {
        IvyClonerWrapper cloner = new IvyClonerWrapper();
        cloner.dontClone(Descriptor.class);
        getBuildWrappersList().add(cloner.deepClone(buildWrapper));
      }
      catch(IOException e)
      {
        throw new RuntimeException("Could not copy build wrappers", e);
      }
    }
  }
}

origin: org.jenkins-ci.plugins/cloudbees-folder

/**
 * Returns true if the specified descriptor type is allowed for this container.
 *
 * @param tid the type of child item.
 * @return {@code true} if it can be added.
 */
public boolean isAllowedChildDescriptor(TopLevelItemDescriptor tid) {
  for (FolderProperty<?> p : getProperties().getAll(FolderProperty.class)) {
    if (!p.allowsParentToCreate(tid)) {
      return false;
    }
  }
  if (!getACL().hasCreatePermission(Jenkins.getAuthentication(), this, tid)) {
    return false;
  }
  return tid.isApplicableIn(this);
}
origin: jenkinsci/cloudbees-folder-plugin

/**
 * Returns true if the specified descriptor type is allowed for this container.
 *
 * @param tid the type of child item.
 * @return {@code true} if it can be added.
 */
public boolean isAllowedChildDescriptor(TopLevelItemDescriptor tid) {
  for (FolderProperty<?> p : getProperties().getAll(FolderProperty.class)) {
    if (!p.allowsParentToCreate(tid)) {
      return false;
    }
  }
  if (!getACL().hasCreatePermission(Jenkins.getAuthentication(), this, tid)) {
    return false;
  }
  return tid.isApplicableIn(this);
}
origin: hudson/hudson-2.x

List<BuildTrigger> existingList = pl.getAll(BuildTrigger.class);
BuildTrigger existing;
switch (existingList.size()) {
origin: org.jvnet.hudson.main/hudson-core

List<BuildTrigger> existingList = pl.getAll(BuildTrigger.class);
BuildTrigger existing;
switch (existingList.size()) {
origin: org.eclipse.hudson/hudson-core

List<BuildTrigger> existingList = pl.getAll(BuildTrigger.class);
BuildTrigger existing;
switch (existingList.size()) {
origin: org.eclipse.hudson.main/hudson-core

List<BuildTrigger> existingList = pl.getAll(BuildTrigger.class);
BuildTrigger existing;
switch (existingList.size()) {
origin: carlossg/jenkins-kubernetes-plugin

    .getAll(EnvironmentVariablesNodeProperty.class);
if (envVarsNodePropertyList != null && envVarsNodePropertyList.size() != 0) {
  globalVars = envVarsNodePropertyList.get(0).getEnvVars();
hudson.utilDescribableListgetAll

Popular methods of DescribableList

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

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Kernel (java.awt.image)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for Android Studio
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