com.atlassian.bamboo.ww2.actions.build.admin.create
Class UIConfigBean

java.lang.Object
  extended by com.atlassian.bamboo.ww2.actions.build.admin.create.UIConfigBean
All Implemented Interfaces:
UIConfigSupport

public class UIConfigBean
extends java.lang.Object
implements UIConfigSupport

Default implementation of UIConfigSupport.


Constructor Summary
UIConfigBean(WebRepositoryViewerManager webRepositoryViewerManager, BuildStrategyManager buildStrategyManager, RepositoryManager repositoryManager, BuilderManager builderManager, ProjectManager projectManager, BambooLicenseManager bambooLicenseManager, PlanManager planManager, JdkManager jdkManager, TaskManager taskManager, com.opensymphony.xwork.TextProvider textProvider)
           
 
Method Summary
 java.util.List<Builder> getAllBuilders()
          Deprecated. since 3.1
 int getAllowedNumberOfPlans()
           
 java.util.Collection<Builder> getBuilderTypes()
          Deprecated. since 3.1
 java.util.Collection<BuildStrategy> getBuildStrategies()
           
 java.util.Collection<BuildStrategy> getBuildStrategies(boolean sourceControlUsed)
           
 java.util.Collection<BuildTriggerCondition> getBuildTriggerConditions()
           
 int getCurrentPlanCount()
           
 java.lang.String getDefaultJdkLabel()
           
 java.util.List<java.lang.String> getExecutableLabels(java.lang.String shortKey)
           
 java.util.Map<java.lang.String,java.lang.String> getExecutableLabelTypeMap()
           
 java.util.Collection<Project> getExistingProjects()
           
 java.util.Collection<NameValuePair> getFilterOptions()
           
 java.lang.String getFirstProjectKey()
           
 java.util.List<java.lang.String> getJdkLabels()
          Gets a Collection of all JDK labels available in the system.
 java.util.Map<java.lang.String,java.lang.String> getLegacyBuilderLabelTypeMap()
          Deprecated. since 3.1
 java.util.List<Pair<java.lang.String,java.lang.String>> getPollingTypes()
           
 java.util.List<Repository> getRepositories()
           
 java.util.List<Repository> getRepositoriesForCreate()
           
 java.lang.String getWebRepositoryJson()
           
 java.util.List<WebRepositoryViewer> getWebRepositoryViewers()
           
 boolean isJdkLabelValid(java.lang.String label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIConfigBean

public UIConfigBean(WebRepositoryViewerManager webRepositoryViewerManager,
                    BuildStrategyManager buildStrategyManager,
                    RepositoryManager repositoryManager,
                    BuilderManager builderManager,
                    ProjectManager projectManager,
                    BambooLicenseManager bambooLicenseManager,
                    PlanManager planManager,
                    JdkManager jdkManager,
                    TaskManager taskManager,
                    com.opensymphony.xwork.TextProvider textProvider)
Method Detail

getCurrentPlanCount

public int getCurrentPlanCount()
Specified by:
getCurrentPlanCount in interface UIConfigSupport
Returns:
the current count of plans on this instance

getAllowedNumberOfPlans

public int getAllowedNumberOfPlans()
Specified by:
getAllowedNumberOfPlans in interface UIConfigSupport
Returns:
the number of plans that are allowed on this instance

getExistingProjects

@NotNull
public java.util.Collection<Project> getExistingProjects()
Specified by:
getExistingProjects in interface UIConfigSupport
Returns:
a list of all existing projects in the bamboo system.

getFirstProjectKey

@Nullable
public java.lang.String getFirstProjectKey()
Specified by:
getFirstProjectKey in interface UIConfigSupport

getWebRepositoryViewers

@NotNull
public java.util.List<WebRepositoryViewer> getWebRepositoryViewers()
Specified by:
getWebRepositoryViewers in interface UIConfigSupport
Returns:
a list of all currently enabled web repository viewers

getBuildStrategies

@NotNull
public java.util.Collection<BuildStrategy> getBuildStrategies()
Specified by:
getBuildStrategies in interface UIConfigSupport
Returns:
a list of all the different build strategies available to the user to select from.

getBuildStrategies

@NotNull
public java.util.Collection<BuildStrategy> getBuildStrategies(boolean sourceControlUsed)
Specified by:
getBuildStrategies in interface UIConfigSupport

getBuildTriggerConditions

@NotNull
public java.util.Collection<BuildTriggerCondition> getBuildTriggerConditions()
Specified by:
getBuildTriggerConditions in interface UIConfigSupport
Returns:
a list of currently available build trigger condition plugins.

getFilterOptions

@NotNull
public java.util.Collection<NameValuePair> getFilterOptions()
Specified by:
getFilterOptions in interface UIConfigSupport
Returns:
a list of change detection filter options. Filter options let you include or exclude files from triggering change detection

getRepositoriesForCreate

@NotNull
public java.util.List<Repository> getRepositoriesForCreate()
Returns:
a list of all Repository plugins currently enabled in Bamboo and additionally option for none

getRepositories

@NotNull
public java.util.List<Repository> getRepositories()
Specified by:
getRepositories in interface UIConfigSupport
Returns:
a list of all Repository plugins currently enabled in Bamboo

getAllBuilders

@NotNull
@Deprecated
public java.util.List<Builder> getAllBuilders()
Deprecated. since 3.1

Specified by:
getAllBuilders in interface UIConfigSupport
Returns:
a list of all the builder plugins currently enabled in Bamboo

getBuilderTypes

@NotNull
@Deprecated
public java.util.Collection<Builder> getBuilderTypes()
Deprecated. since 3.1

Specified by:
getBuilderTypes in interface UIConfigSupport
Returns:
a map of all builders against their Label

getExecutableLabelTypeMap

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getExecutableLabelTypeMap()
Specified by:
getExecutableLabelTypeMap in interface UIConfigSupport
Returns:
the total set of executable maps (sorted by the label).

getLegacyBuilderLabelTypeMap

@Deprecated
public java.util.Map<java.lang.String,java.lang.String> getLegacyBuilderLabelTypeMap()
Deprecated. since 3.1

Specified by:
getLegacyBuilderLabelTypeMap in interface UIConfigSupport
Returns:
the total set of executable maps (sorted by the label).

getExecutableLabels

@NotNull
public java.util.List<java.lang.String> getExecutableLabels(@NotNull
                                                                    java.lang.String shortKey)
Specified by:
getExecutableLabels in interface UIConfigSupport

getWebRepositoryJson

public java.lang.String getWebRepositoryJson()
                                      throws java.lang.Exception
Specified by:
getWebRepositoryJson in interface UIConfigSupport
Throws:
java.lang.Exception

getPollingTypes

public java.util.List<Pair<java.lang.String,java.lang.String>> getPollingTypes()
Specified by:
getPollingTypes in interface UIConfigSupport

getJdkLabels

@NotNull
public java.util.List<java.lang.String> getJdkLabels()
Gets a Collection of all JDK labels available in the system.

Specified by:
getJdkLabels in interface UIConfigSupport
Returns:

isJdkLabelValid

public boolean isJdkLabelValid(@Nullable
                               java.lang.String label)
Specified by:
isJdkLabelValid in interface UIConfigSupport

getDefaultJdkLabel

public java.lang.String getDefaultJdkLabel()
Specified by:
getDefaultJdkLabel in interface UIConfigSupport


Copyright © 2011 Atlassian. All Rights Reserved.