@Internal public class VcsUIConfigBean extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VcsUIConfigBean.VcsHtmlFragment |
static class |
VcsUIConfigBean.VcsHtmlFragments |
static class |
VcsUIConfigBean.VcsTypeSelector |
Modifier and Type | Field and Description |
---|---|
static String |
POM_PATH_CFG_KEY |
Constructor and Description |
---|
VcsUIConfigBean(VcsRepositoryManager vcsRepositoryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
ProjectManager projectManager,
TemplateRenderer templateRenderer,
com.atlassian.struts.TextProvider textProvider,
VcsViewerUIConfigBean vcsViewerUIConfigBean,
VcsConfigurationHelper vcsConfigurationHelper,
VcsBambooSpecsConfigurator vcsBambooSpecsConfigurator) |
Modifier and Type | Method and 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 Wizard
|
VcsUIConfigBean.VcsTypeSelector |
getNullRepositorySelector() |
@NotNull PartialVcsRepositoryData |
getPartialVcsConfigurationFromActionData(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor,
@NotNull String repositoryName,
@Nullable String userDescription,
@Nullable Long projectId,
@Nullable PartialVcsRepositoryData previousVcsDefinition,
boolean applyDefaultValues,
@NotNull Set<VcsConfigurationHelper.Overrides> overrides) |
@NotNull PartialVcsRepositoryData |
getPartialVcsConfigurationFromActionData(@NotNull VcsRepositoryModuleDescriptor vcsDescriptor,
@NotNull String repositoryName,
@Nullable String userDescription,
@Nullable PartialVcsRepositoryData previousVcsDefinition,
@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) |
public static final String POM_PATH_CFG_KEY
public VcsUIConfigBean(VcsRepositoryManager vcsRepositoryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, ProjectManager projectManager, TemplateRenderer templateRenderer, com.atlassian.struts.TextProvider textProvider, VcsViewerUIConfigBean vcsViewerUIConfigBean, VcsConfigurationHelper vcsConfigurationHelper, VcsBambooSpecsConfigurator vcsBambooSpecsConfigurator)
@NotNull public @NotNull VcsUIConfigBean.VcsHtmlFragments prepareCreateHtmlFragments(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull TaskRenderMode renderMode, @Nullable @Nullable Long projectId)
vcsDescriptor
- renderMode
- @NotNull public @NotNull VcsUIConfigBean.VcsHtmlFragments prepareMavenImportHtmlFragments(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull TaskRenderMode renderMode, @Nullable @Nullable Long projectId)
@NotNull public @NotNull VcsUIConfigBean.VcsHtmlFragments prepareEditHtmlFragments(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull PartialVcsRepositoryData unmergedData, @NotNull @NotNull TaskRenderMode renderMode, @Nullable @Nullable Long projectId)
@NotNull public @NotNull VcsUIConfigBean.VcsHtmlFragments prepareViewHtmlFragments(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull VcsRepositoryData vcsDefinition, @Nullable @Nullable Long projectId)
vcsDescriptor
- vcsDefinition
- public void validateVcsConfiguration(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @Nullable @Nullable PartialVcsRepositoryData previousVcsData, @NotNull @NotNull ErrorCollection errorCollection, @NotNull @NotNull Set<VcsConfigurationHelper.Overrides> overrides)
@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)
@NotNull public @NotNull PartialVcsRepositoryData overrideBranchDetectionOptionsWithActionData(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, @NotNull @NotNull PartialVcsRepositoryData vcsDefinition)
@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 applyDefaultValues, @NotNull @NotNull Set<VcsConfigurationHelper.Overrides> overrides)
@NotNull public @NotNull String renderBranchIntegrationHtml(@NotNull @NotNull VcsRepositoryModuleDescriptor vcsDescriptor, VcsRepositoryData vcsDefinition)
@NotNull public @NotNull List<VcsUIConfigBean.VcsTypeSelector> getAllRepositoriesForCreate(String projectKey)
@NotNull public @NotNull List<VcsUIConfigBean.VcsTypeSelector> getLinkedRepositoriesForSpecsCreate()
public VcsUIConfigBean.VcsTypeSelector getNullRepositorySelector()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.