Class UIConfigSupportImpl
java.lang.Object
com.atlassian.bamboo.ww2.actions.build.admin.create.UIConfigSupportImpl
- All Implemented Interfaces:
UIConfigSupport
Default implementation of
UIConfigSupport
.-
Constructor Summary
ConstructorDescriptionUIConfigSupportImpl
(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
Modifier and TypeMethodDescriptionstatic String
capabilityKeyToExecutableLabel
(String capabilityKey) static String
capabilityKeyToExecutableType
(String capabilityKey) int
@NotNull List<com.atlassian.user.Group>
@NotNull Collection<BuildTriggerCondition>
getCapabilityKeyToLabelMap
(@NotNull String... executableType) int
getExecutableLabels
(@NotNull String shortKey) getExecutableLabelTypeMap
(@NotNull String... shortKey) @NotNull Collection<Project>
int
@NotNull Collection<Project>
@NotNull Collection<NameValuePair>
@Nullable String
@Nullable String
Gets aCollection
of all JDK labels available in the system.@NotNull String
getPollingTypeName
(@NotNull String pollingTypeKey) @NotNull List<Repository>
@NotNull List<WebRepositoryViewer>
boolean
isJdkLabelValid
(@Nullable String label) boolean
requiresRepositoryDataOnView
(@NotNull Repository repository)
-
Constructor Details
-
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 Details
-
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
- Specified by:
getExistingProjects
in interfaceUIConfigSupport
- Returns:
- a list of all existing projects in the bamboo system.
-
getExistingProjectsForPlanCreation
- Specified by:
getExistingProjectsForPlanCreation
in interfaceUIConfigSupport
-
getFirstProjectKey
- Specified by:
getFirstProjectKey
in interfaceUIConfigSupport
-
getFirstProjectKeyForPlanCreation
- Specified by:
getFirstProjectKeyForPlanCreation
in interfaceUIConfigSupport
-
getWebRepositoryViewers
- Specified by:
getWebRepositoryViewers
in interfaceUIConfigSupport
- Returns:
- a list of all currently enabled web repository viewers
-
getBuildTriggerConditions
- Specified by:
getBuildTriggerConditions
in interfaceUIConfigSupport
- Returns:
- a list of currently available build trigger condition plugins.
-
getDeploymentTriggerBranchSelectionOptions
- Specified by:
getDeploymentTriggerBranchSelectionOptions
in interfaceUIConfigSupport
-
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
- Specified by:
getExecutableLabelTypeMap
in interfaceUIConfigSupport
- Returns:
- All executables registered in the system (sorted by the label).
-
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
-
capabilityKeyToExecutableType
-
getExecutableLabels
- Specified by:
getExecutableLabels
in interfaceUIConfigSupport
-
getWebRepositoryJson
- Specified by:
getWebRepositoryJson
in interfaceUIConfigSupport
- Throws:
Exception
-
getPollingTypes
- Specified by:
getPollingTypes
in interfaceUIConfigSupport
-
getPollingTypeName
- Specified by:
getPollingTypeName
in interfaceUIConfigSupport
-
getJdkLabels
Gets aCollection
of all JDK labels available in the system.- Specified by:
getJdkLabels
in interfaceUIConfigSupport
- Returns:
-
isJdkLabelValid
- Specified by:
isJdkLabelValid
in interfaceUIConfigSupport
-
getDefaultJdkLabel
- Specified by:
getDefaultJdkLabel
in interfaceUIConfigSupport
-
getLinkedRepositoryAccessOptions
-
getRepositories
- Specified by:
getRepositories
in interfaceUIConfigSupport
- Returns:
- a list of all Repository plugins currently enabled in Bamboo, sorted by weight
-
getAvailableGroups
- Specified by:
getAvailableGroups
in interfaceUIConfigSupport
-
getAvailableUserNames
- Specified by:
getAvailableUserNames
in interfaceUIConfigSupport
-
requiresRepositoryDataOnView
-