Class UIConfigSupportImpl
java.lang.Object
com.atlassian.bamboo.ww2.actions.build.admin.create.UIConfigSupportImpl
- All Implemented Interfaces:
UIConfigSupport
Default implementation of
UIConfigSupport.-
Constructor Summary
ConstructorsConstructorDescriptionUIConfigSupportImpl(BambooLicenseManager bambooLicenseManager, BambooUserManager bambooUserManager, TriggerTypeManager triggerTypeManager, JdkManager jdkManager, PlanManager planManager, ProjectManager projectManager, TaskManager taskManager, org.apache.struts2.text.TextProvider textProvider, BambooPermissionManager bambooPermissionManager) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcapabilityKeyToExecutableLabel(String capabilityKey) static StringcapabilityKeyToExecutableType(String capabilityKey) int@NotNull List<com.atlassian.user.Group> @NotNull Collection<BuildTriggerCondition> getCapabilityKeyToLabelMap(@NotNull String... executableType) intgetExecutableLabels(@NotNull String shortKey) getExecutableLabelTypeMap(@NotNull String... shortKey) @NotNull Collection<Project> int@NotNull Collection<Project> @Nullable String@Nullable StringGets aCollectionof all JDK labels available in the system.booleanisJdkLabelValid(@Nullable String label)
-
Constructor Details
-
UIConfigSupportImpl
@Inject public UIConfigSupportImpl(BambooLicenseManager bambooLicenseManager, BambooUserManager bambooUserManager, TriggerTypeManager triggerTypeManager, JdkManager jdkManager, PlanManager planManager, ProjectManager projectManager, TaskManager taskManager, org.apache.struts2.text.TextProvider textProvider, BambooPermissionManager bambooPermissionManager)
-
-
Method Details
-
getCurrentPlanCount
@TemplateAccessible public int getCurrentPlanCount()- Specified by:
getCurrentPlanCountin interfaceUIConfigSupport- Returns:
- the current count of plans on this instance
-
getAllowedNumberOfPlans
@TemplateAccessible public int getAllowedNumberOfPlans()- Specified by:
getAllowedNumberOfPlansin interfaceUIConfigSupport- Returns:
- the number of plans that are allowed on this instance
-
getExistingProjectsCount
public int getExistingProjectsCount()- Specified by:
getExistingProjectsCountin interfaceUIConfigSupport
-
getExistingProjects
- Specified by:
getExistingProjectsin interfaceUIConfigSupport- Returns:
- a list of all existing projects in the bamboo system.
-
getExistingProjectsForPlanCreation
@TemplateAccessible @NotNull public @NotNull Collection<Project> getExistingProjectsForPlanCreation()- Specified by:
getExistingProjectsForPlanCreationin interfaceUIConfigSupport
-
getFirstProjectKey
- Specified by:
getFirstProjectKeyin interfaceUIConfigSupport
-
getFirstProjectKeyForPlanCreation
- Specified by:
getFirstProjectKeyForPlanCreationin interfaceUIConfigSupport
-
getBuildTriggerConditions
- Specified by:
getBuildTriggerConditionsin interfaceUIConfigSupport- Returns:
- a list of currently available build trigger condition plugins.
-
getDeploymentTriggerBranchSelectionOptions
- Specified by:
getDeploymentTriggerBranchSelectionOptionsin interfaceUIConfigSupport
-
getExecutableLabelTypesMap
- Specified by:
getExecutableLabelTypesMapin interfaceUIConfigSupport- Returns:
- All executables registered in the system (sorted by the label).
-
getExecutableLabelTypeMap
@TemplateAccessible @NotNull public @NotNull Map<String,String> getExecutableLabelTypeMap(@NotNull @NotNull String... shortKey) - Specified by:
getExecutableLabelTypeMapin interfaceUIConfigSupport- Returns:
- All executables with the given short key registered in the system (sorted by the label).
-
getCapabilityKeyToLabelMap
@TemplateAccessible @NotNull public @NotNull Map<String,String> getCapabilityKeyToLabelMap(@NotNull @NotNull String... executableType) - Specified by:
getCapabilityKeyToLabelMapin interfaceUIConfigSupport
-
capabilityKeyToExecutableLabel
-
capabilityKeyToExecutableType
-
getExecutableLabels
@TemplateAccessible @NotNull public @NotNull List<String> getExecutableLabels(@NotNull @NotNull String shortKey) - Specified by:
getExecutableLabelsin interfaceUIConfigSupport
-
getWebRepositoryJson
- Specified by:
getWebRepositoryJsonin interfaceUIConfigSupport- Throws:
Exception
-
getJdkLabels
Gets aCollectionof all JDK labels available in the system.- Specified by:
getJdkLabelsin interfaceUIConfigSupport- Returns:
-
isJdkLabelValid
- Specified by:
isJdkLabelValidin interfaceUIConfigSupport
-
getDefaultJdkLabel
- Specified by:
getDefaultJdkLabelin interfaceUIConfigSupport
-
getLinkedRepositoryAccessOptions
-
getAvailableGroups
- Specified by:
getAvailableGroupsin interfaceUIConfigSupport
-
getAvailableUserNames
- Specified by:
getAvailableUserNamesin interfaceUIConfigSupport
-