Class VcsUIConfigBean
- java.lang.Object
-
- com.atlassian.bamboo.configuration.repository.VcsUIConfigBean
-
@Internal public class VcsUIConfigBean extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VcsUIConfigBean.VcsHtmlFragment
static class
VcsUIConfigBean.VcsHtmlFragments
static class
VcsUIConfigBean.VcsTypeSelector
-
Field Summary
Fields Modifier and Type Field Description static String
POM_PATH_CFG_KEY
-
Constructor Summary
Constructors Constructor Description VcsUIConfigBean(VcsRepositoryManager vcsRepositoryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, ProjectManager projectManager, TemplateRenderer templateRenderer, com.atlassian.struts.TextProvider textProvider, VcsViewerUIConfigBean vcsViewerUIConfigBean, VcsConfigurationHelper vcsConfigurationHelper, VcsBambooSpecsConfigurator vcsBambooSpecsConfigurator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @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>
getLinkedRepositoriesForSpecsCreate()
Return a list of all global repositories the user has administration permissions to; for the Bamboo Specs WizardVcsUIConfigBean.VcsTypeSelector
getNullRepositorySelector()
@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 Detail
-
POM_PATH_CFG_KEY
public static final String POM_PATH_CFG_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
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
public VcsUIConfigBean.VcsTypeSelector getNullRepositorySelector()
-
-