Class UIConfigSupportImpl
- java.lang.Object
-
- com.atlassian.bamboo.ww2.actions.build.admin.create.UIConfigSupportImpl
-
- All Implemented Interfaces:
UIConfigSupport
public class UIConfigSupportImpl extends Object implements UIConfigSupport
Default implementation ofUIConfigSupport
.
-
-
Constructor Summary
Constructors Constructor Description UIConfigSupportImpl(BambooLicenseManager bambooLicenseManager, BambooUserManager bambooUserManager, TriggerTypeManager triggerTypeManager, JdkManager jdkManager, PlanManager planManager, ProjectManager projectManager, RepositoryManager repositoryManager, TaskManager taskManager, com.opensymphony.xwork2.TextProvider textProvider, WebRepositoryViewerManager webRepositoryViewerManager, BambooPermissionManager bambooPermissionManager)
-
Method Summary
-
-
-
Constructor Detail
-
UIConfigSupportImpl
@Autowired public UIConfigSupportImpl(BambooLicenseManager bambooLicenseManager, BambooUserManager bambooUserManager, TriggerTypeManager triggerTypeManager, JdkManager jdkManager, PlanManager planManager, ProjectManager projectManager, RepositoryManager repositoryManager, TaskManager taskManager, com.opensymphony.xwork2.TextProvider textProvider, WebRepositoryViewerManager webRepositoryViewerManager, BambooPermissionManager bambooPermissionManager)
-
-
Method Detail
-
getCurrentPlanCount
public int getCurrentPlanCount()
- Specified by:
getCurrentPlanCount
in interfaceUIConfigSupport
- Returns:
- the current count of plans on this instance
-
getAllowedNumberOfPlans
public int getAllowedNumberOfPlans()
- Specified by:
getAllowedNumberOfPlans
in interfaceUIConfigSupport
- Returns:
- the number of plans that are allowed on this instance
-
getExistingProjectsCount
public int getExistingProjectsCount()
- Specified by:
getExistingProjectsCount
in interfaceUIConfigSupport
-
getExistingProjects
@NotNull public @NotNull Collection<Project> getExistingProjects()
- Specified by:
getExistingProjects
in interfaceUIConfigSupport
- Returns:
- a list of all existing projects in the bamboo system.
-
getExistingProjectsForPlanCreation
@NotNull public @NotNull Collection<Project> getExistingProjectsForPlanCreation()
- Specified by:
getExistingProjectsForPlanCreation
in interfaceUIConfigSupport
-
getFirstProjectKey
@Nullable public @Nullable String getFirstProjectKey()
- Specified by:
getFirstProjectKey
in interfaceUIConfigSupport
-
getFirstProjectKeyForPlanCreation
@Nullable public @Nullable String getFirstProjectKeyForPlanCreation()
- Specified by:
getFirstProjectKeyForPlanCreation
in interfaceUIConfigSupport
-
getWebRepositoryViewers
@NotNull public @NotNull List<WebRepositoryViewer> getWebRepositoryViewers()
- Specified by:
getWebRepositoryViewers
in interfaceUIConfigSupport
- Returns:
- a list of all currently enabled web repository viewers
-
getBuildTriggerConditions
@NotNull public @NotNull Collection<BuildTriggerCondition> getBuildTriggerConditions()
- Specified by:
getBuildTriggerConditions
in interfaceUIConfigSupport
- Returns:
- a list of currently available build trigger condition plugins.
-
getDeploymentTriggerBranchSelectionOptions
@NotNull public @NotNull Map<String,String> getDeploymentTriggerBranchSelectionOptions()
- Specified by:
getDeploymentTriggerBranchSelectionOptions
in interfaceUIConfigSupport
-
getFilterOptions
@NotNull public @NotNull Collection<NameValuePair> getFilterOptions()
- Specified by:
getFilterOptions
in interfaceUIConfigSupport
- Returns:
- a list of change detection filter options. Filter options let you include or exclude files from triggering change detection
-
getExecutableLabelTypeMap
@NotNull public @NotNull Map<String,String> getExecutableLabelTypeMap()
- Specified by:
getExecutableLabelTypeMap
in interfaceUIConfigSupport
- Returns:
- All executables registered in the system (sorted by the label).
-
getExecutableLabelTypesMap
@NotNull public @NotNull com.google.common.collect.Multimap<String,String> getExecutableLabelTypesMap()
- Specified by:
getExecutableLabelTypesMap
in interfaceUIConfigSupport
- Returns:
- All executables registered in the system (sorted by the label).
-
getExecutableLabelTypeMap
@NotNull public @NotNull Map<String,String> getExecutableLabelTypeMap(@NotNull @NotNull String... shortKey)
- Specified by:
getExecutableLabelTypeMap
in interfaceUIConfigSupport
- Returns:
- All executables with the given short key registered in the system (sorted by the label).
-
getCapabilityKeyToLabelMap
@NotNull public @NotNull Map<String,String> getCapabilityKeyToLabelMap(@NotNull @NotNull String... executableType)
- Specified by:
getCapabilityKeyToLabelMap
in interfaceUIConfigSupport
-
capabilityKeyToExecutableLabel
public static String capabilityKeyToExecutableLabel(String capabilityKey)
-
capabilityKeyToExecutableType
public static String capabilityKeyToExecutableType(String capabilityKey)
-
getExecutableLabels
@NotNull public @NotNull List<String> getExecutableLabels(@NotNull @NotNull String shortKey)
- Specified by:
getExecutableLabels
in interfaceUIConfigSupport
-
getWebRepositoryJson
public String getWebRepositoryJson() throws Exception
- Specified by:
getWebRepositoryJson
in interfaceUIConfigSupport
- Throws:
Exception
-
getPollingTypes
public List<Pair<String,String>> getPollingTypes()
- Specified by:
getPollingTypes
in interfaceUIConfigSupport
-
getPollingTypeName
@NotNull public @NotNull String getPollingTypeName(@NotNull @NotNull String pollingTypeKey)
- Specified by:
getPollingTypeName
in interfaceUIConfigSupport
-
getJdkLabels
@NotNull public @NotNull List<String> getJdkLabels()
Gets aCollection
of all JDK labels available in the system.- Specified by:
getJdkLabels
in interfaceUIConfigSupport
- Returns:
-
isJdkLabelValid
public boolean isJdkLabelValid(@Nullable @Nullable String label)
- Specified by:
isJdkLabelValid
in interfaceUIConfigSupport
-
getDefaultJdkLabel
public String getDefaultJdkLabel()
- Specified by:
getDefaultJdkLabel
in interfaceUIConfigSupport
-
getLinkedRepositoryAccessOptions
@NotNull public @NotNull List<String> getLinkedRepositoryAccessOptions()
-
getRepositories
@NotNull public @NotNull List<Repository> getRepositories()
- Specified by:
getRepositories
in interfaceUIConfigSupport
- Returns:
- a list of all Repository plugins currently enabled in Bamboo, sorted by weight
-
getAvailableGroups
@NotNull public @NotNull List<com.atlassian.user.Group> getAvailableGroups()
- Specified by:
getAvailableGroups
in interfaceUIConfigSupport
-
getAvailableUserNames
@NotNull public @NotNull List<String> getAvailableUserNames()
- Specified by:
getAvailableUserNames
in interfaceUIConfigSupport
-
requiresRepositoryDataOnView
public boolean requiresRepositoryDataOnView(@NotNull @NotNull Repository repository)
-
-