public class UIConfigBeanImpl extends Object implements UIConfigBean
UIConfigSupport
.Constructor and Description |
---|
UIConfigBeanImpl(WebRepositoryViewerManager webRepositoryViewerManager,
BuildStrategyManager buildStrategyManager,
RepositoryManager repositoryManager,
ProjectManager projectManager,
BambooLicenseManager bambooLicenseManager,
PlanManager planManager,
JdkManager jdkManager,
TaskManager taskManager,
com.opensymphony.xwork2.TextProvider textProvider,
RepositoryDefinitionManager repositoryDefinitionManager) |
public UIConfigBeanImpl(WebRepositoryViewerManager webRepositoryViewerManager, BuildStrategyManager buildStrategyManager, RepositoryManager repositoryManager, ProjectManager projectManager, BambooLicenseManager bambooLicenseManager, PlanManager planManager, JdkManager jdkManager, TaskManager taskManager, com.opensymphony.xwork2.TextProvider textProvider, RepositoryDefinitionManager repositoryDefinitionManager)
public int getCurrentPlanCount()
getCurrentPlanCount
in interface UIConfigSupport
public int getAllowedNumberOfPlans()
getAllowedNumberOfPlans
in interface UIConfigSupport
@NotNull public Collection<Project> getExistingProjects()
getExistingProjects
in interface UIConfigSupport
@Nullable public String getFirstProjectKey()
getFirstProjectKey
in interface UIConfigSupport
@NotNull public List<WebRepositoryViewer> getWebRepositoryViewers()
getWebRepositoryViewers
in interface UIConfigSupport
@NotNull public Collection<BuildStrategy> getBuildStrategies()
getBuildStrategies
in interface UIConfigSupport
@NotNull public String getBuildStrategyName(@NotNull String buildStrategyKey)
getBuildStrategyName
in interface UIConfigSupport
@NotNull public Collection<BuildStrategy> getBuildStrategies(boolean sourceControlUsed)
getBuildStrategies
in interface UIConfigSupport
sourceControlUsed
- iff true result will include strategies implementing RepositoryAwareBuildStrategy
@NotNull public Collection<BuildStrategy> getBuildStrategiesForCreate(boolean sourceControlUsed)
getBuildStrategiesForCreate
in interface UIConfigBean
getBuildStrategiesForCreate
in interface UIConfigSupport
sourceControlUsed
- iff true result will include strategies implementing RepositoryAwareBuildStrategy
@NotNull public Collection<BuildStrategy> getTriggerTypes(@NotNull Class<? extends Triggerable> triggerableType)
getTriggerTypes
in interface UIConfigSupport
@NotNull public Collection<BuildStrategy> getTriggerTypes(@NotNull Class<? extends Triggerable> triggerableType, boolean sourceControlUsed)
getTriggerTypes
in interface UIConfigSupport
sourceControlUsed
- iff true result will include strategies implementing RepositoryAwareBuildStrategy
@NotNull public Collection<BuildTriggerCondition> getBuildTriggerConditions()
getBuildTriggerConditions
in interface UIConfigSupport
@NotNull public Map<String,String> getDeploymentTriggerBranchSelectionOptions()
getDeploymentTriggerBranchSelectionOptions
in interface UIConfigSupport
@NotNull public Collection<NameValuePair> getFilterOptions()
getFilterOptions
in interface UIConfigSupport
@NotNull public Map<String,String> getExecutableLabelTypeMap()
getExecutableLabelTypeMap
in interface UIConfigSupport
@NotNull public List<String> getExecutableLabels(@NotNull String shortKey)
getExecutableLabels
in interface UIConfigSupport
public String getWebRepositoryJson() throws Exception
getWebRepositoryJson
in interface UIConfigSupport
Exception
public List<Pair<String,String>> getPollingTypes()
getPollingTypes
in interface UIConfigSupport
@NotNull public String getPollingTypeName(@NotNull String pollingTypeKey)
getPollingTypeName
in interface UIConfigSupport
@NotNull public List<String> getJdkLabels()
Collection
of all JDK labels available in the system.getJdkLabels
in interface UIConfigSupport
public boolean isJdkLabelValid(@Nullable String label)
isJdkLabelValid
in interface UIConfigSupport
public String getDefaultJdkLabel()
getDefaultJdkLabel
in interface UIConfigSupport
@NotNull public List<Repository> getRepositories()
getRepositories
in interface UIConfigSupport
@NotNull public List<StandaloneRepository> getStandaloneRepositories()
getStandaloneRepositories
in interface UIConfigSupport
@NotNull public List<RepositoryOption> getLinkedRepositoriesForCreate()
@NotNull public List<RepositoryOption> getRepositoryTypeOptionsForPlanCreate()
@NotNull public List<RepositoryOption> getRepositoriesForEdit(@Nullable ImmutablePlan plan, @Nullable String selectedRepository)
getAvailableGlobalRepositories(ImmutablePlan, String)
plan
- selectedRepository
- key (id) of currently selected repositorypublic boolean requiresRepositoryDataOnView(@NotNull Repository repository)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.