jetbrains.buildServer.web.util
Class BuildTypesHierarchyBean

java.lang.Object
  extended by jetbrains.buildServer.web.util.ProjectHierarchyBean
      extended by jetbrains.buildServer.web.util.BuildTypesHierarchyBean

public class BuildTypesHierarchyBean
extends ProjectHierarchyBean

Represents the helper bean class for a project with build types that knows its depth, hence allows to place them correctly in the web UI. The build types are own (or direct) build types of the project.

This particular bean is intended to be used in all drop downs and multi-selects that show build types grouped by projects.

Since:
8.0
Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class jetbrains.buildServer.web.util.ProjectHierarchyBean
ProjectHierarchyBean.BeanCreator<T extends ProjectHierarchyBean>
 
Field Summary
 
Fields inherited from class jetbrains.buildServer.web.util.ProjectHierarchyBean
MAX_DEPTH, myDepth, myProject
 
Constructor Summary
BuildTypesHierarchyBean(SProject project, java.util.List<SBuildType> buildTypes)
           
 
Method Summary
 java.util.List<SBuildType> getBuildTypes()
           
static java.util.List<BuildTypesHierarchyBean> getBuildTypesFor(java.util.Collection<SBuildType> buildTypes)
           
static java.util.List<BuildTypesHierarchyBean> getBuildTypesFor(java.util.Collection<SProject> projects, boolean alreadySorted)
           
static java.util.List<BuildTypesHierarchyBean> getBuildTypesFor(java.util.Map<SProject,java.util.List<SBuildType>> map, boolean alreadySorted)
           
static java.util.List<BuildTypesHierarchyBean> getBuildTypesFor(ProjectManager projectManager)
           
 
Methods inherited from class jetbrains.buildServer.web.util.ProjectHierarchyBean
buildFor, fixProjectsOrderWithRespectToHierarchy, getDepth, getLimitedDepth, getLimitedDepth, getProject, getProjectsFor, getProjectsFor, isParent, setDepth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildTypesHierarchyBean

public BuildTypesHierarchyBean(@NotNull
                               SProject project,
                               @NotNull
                               java.util.List<SBuildType> buildTypes)
Method Detail

getBuildTypes

@NotNull
public java.util.List<SBuildType> getBuildTypes()

getBuildTypesFor

@NotNull
public static java.util.List<BuildTypesHierarchyBean> getBuildTypesFor(@NotNull
                                                                               java.util.Map<SProject,java.util.List<SBuildType>> map,
                                                                               boolean alreadySorted)

getBuildTypesFor

@NotNull
public static java.util.List<BuildTypesHierarchyBean> getBuildTypesFor(@NotNull
                                                                               java.util.Collection<SProject> projects,
                                                                               boolean alreadySorted)

getBuildTypesFor

@NotNull
public static java.util.List<BuildTypesHierarchyBean> getBuildTypesFor(@NotNull
                                                                               ProjectManager projectManager)

getBuildTypesFor

@NotNull
public static java.util.List<BuildTypesHierarchyBean> getBuildTypesFor(@NotNull
                                                                               java.util.Collection<SBuildType> buildTypes)