Class VcsUIConfigBean
java.lang.Object
com.atlassian.bamboo.configuration.repository.VcsUIConfigBean
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVcsUIConfigBean
(VcsRepositoryManager vcsRepositoryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, ProjectManager projectManager, TemplateRenderer templateRenderer, com.atlassian.struts.TextProvider textProvider, VcsViewerUIConfigBean vcsViewerUIConfigBean, VcsConfigurationHelper vcsConfigurationHelper, VcsBambooSpecsConfigurator vcsBambooSpecsConfigurator) -
Method Summary
Modifier and TypeMethodDescription@NotNull List<VcsUIConfigBean.VcsTypeSelector>
getAllRepositoriesForCreate
(String projectKey) Return a list of all (global and project) repositories the user can select from, For the create wizard@NotNull List<VcsUIConfigBean.VcsTypeSelector>
Return a list of all global repositories the user has administration permissions to; for the Bamboo Specs Wizard@NotNull PartialVcsRepositoryData
getPartialVcsConfigurationFromActionData
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull String repositoryName, @Nullable String userDescription, @Nullable PartialVcsRepositoryData previousVcsDefinition, @NotNull Set<VcsConfigurationHelper.Overrides> overrides) @NotNull PartialVcsRepositoryData
getPartialVcsConfigurationFromActionData
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull String repositoryName, @Nullable String userDescription, @Nullable Long projectId, @Nullable PartialVcsRepositoryData previousVcsDefinition, boolean unused, @NotNull Set<VcsConfigurationHelper.Overrides> overrides) @NotNull PartialVcsRepositoryData
overrideBranchDetectionOptionsWithActionData
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull PartialVcsRepositoryData vcsDefinition) Special handling for 'branches' tab; in this tab we only want to change branch detection options and nothing else.@NotNull VcsUIConfigBean.VcsHtmlFragments
prepareCreateHtmlFragments
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull TaskRenderMode renderMode, @Nullable Long projectId) @NotNull VcsUIConfigBean.VcsHtmlFragments
prepareEditHtmlFragments
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull PartialVcsRepositoryData unmergedData, @NotNull TaskRenderMode renderMode, @Nullable Long projectId) @NotNull VcsUIConfigBean.VcsHtmlFragments
prepareMavenImportHtmlFragments
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull TaskRenderMode renderMode, @Nullable Long projectId) @NotNull VcsUIConfigBean.VcsHtmlFragments
prepareViewHtmlFragments
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull VcsRepositoryData vcsDefinition, @Nullable Long projectId) @NotNull String
renderBranchIntegrationHtml
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, VcsRepositoryData vcsDefinition) void
validateVcsConfiguration
(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @Nullable PartialVcsRepositoryData previousVcsData, @NotNull ErrorCollection errorCollection, @NotNull Set<VcsConfigurationHelper.Overrides> overrides)
-
Field Details
-
POM_PATH_CFG_KEY
- See Also:
-
-
Constructor Details
-
VcsUIConfigBean
public VcsUIConfigBean(VcsRepositoryManager vcsRepositoryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, ProjectManager projectManager, TemplateRenderer templateRenderer, com.atlassian.struts.TextProvider textProvider, VcsViewerUIConfigBean vcsViewerUIConfigBean, VcsConfigurationHelper vcsConfigurationHelper, VcsBambooSpecsConfigurator vcsBambooSpecsConfigurator)
-
-
Method Details
-
prepareCreateHtmlFragments
@NotNull public @NotNull VcsUIConfigBean.VcsHtmlFragments prepareCreateHtmlFragments(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull TaskRenderMode renderMode, @Nullable @Nullable Long projectId) - Parameters:
vcsDescriptor
-renderMode
-- Returns:
-
prepareMavenImportHtmlFragments
@NotNull public @NotNull VcsUIConfigBean.VcsHtmlFragments prepareMavenImportHtmlFragments(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull TaskRenderMode renderMode, @Nullable @Nullable Long projectId) -
prepareEditHtmlFragments
@NotNull public @NotNull VcsUIConfigBean.VcsHtmlFragments prepareEditHtmlFragments(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull PartialVcsRepositoryData unmergedData, @NotNull @NotNull TaskRenderMode renderMode, @Nullable @Nullable Long projectId) -
prepareViewHtmlFragments
@NotNull public @NotNull VcsUIConfigBean.VcsHtmlFragments prepareViewHtmlFragments(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull VcsRepositoryData vcsDefinition, @Nullable @Nullable Long projectId) - Parameters:
vcsDescriptor
-vcsDefinition
-- Returns:
-
validateVcsConfiguration
public void validateVcsConfiguration(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @Nullable @Nullable PartialVcsRepositoryData previousVcsData, @NotNull @NotNull ErrorCollection errorCollection, @NotNull @NotNull Set<VcsConfigurationHelper.Overrides> overrides) -
getPartialVcsConfigurationFromActionData
@NotNull public @NotNull PartialVcsRepositoryData getPartialVcsConfigurationFromActionData(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull String repositoryName, @Nullable @Nullable String userDescription, @Nullable @Nullable PartialVcsRepositoryData previousVcsDefinition, @NotNull @NotNull Set<VcsConfigurationHelper.Overrides> overrides) -
overrideBranchDetectionOptionsWithActionData
@NotNull public @NotNull PartialVcsRepositoryData overrideBranchDetectionOptionsWithActionData(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull PartialVcsRepositoryData vcsDefinition) Special handling for 'branches' tab; in this tab we only want to change branch detection options and nothing else. If the options are identical to parent repo, don't create an override. -
getPartialVcsConfigurationFromActionData
@NotNull public @NotNull PartialVcsRepositoryData getPartialVcsConfigurationFromActionData(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull String repositoryName, @Nullable @Nullable String userDescription, @Nullable @Nullable Long projectId, @Nullable @Nullable PartialVcsRepositoryData previousVcsDefinition, boolean unused, @NotNull @NotNull Set<VcsConfigurationHelper.Overrides> overrides) -
renderBranchIntegrationHtml
@NotNull public @NotNull String renderBranchIntegrationHtml(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, VcsRepositoryData vcsDefinition) -
getAllRepositoriesForCreate
@NotNull public @NotNull List<VcsUIConfigBean.VcsTypeSelector> getAllRepositoriesForCreate(String projectKey) Return a list of all (global and project) repositories the user can select from, For the create wizard- Returns:
- RepositoryOptions for display in the UI
-
getLinkedRepositoriesForSpecsCreate
@NotNull public @NotNull List<VcsUIConfigBean.VcsTypeSelector> getLinkedRepositoriesForSpecsCreate()Return a list of all global repositories the user has administration permissions to; for the Bamboo Specs Wizard- Returns:
- RepositoryOptions for display in the UI
-
getNullRepositorySelector
-