public class LegacyVcsLocationConfigurator extends LegacyExecutorBase implements VcsLocationConfigurator
| Modifier and Type | Field and Description |
|---|---|
static String |
LEGACY_XML |
repositoryModuleDescriptor| Constructor and Description |
|---|
LegacyVcsLocationConfigurator(RepositoryModuleDescriptor repositoryModuleDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultsForAdvancedOptions(@NotNull Map<String,String> cfgMap)
In Plan creation screen advanced options' UI is not displayed.
|
@NotNull Map<String,String> |
generateConfigMap(@NotNull ActionParametersMap actionParametersMap,
@Nullable VcsLocationDefinition previousDefinition) |
@NotNull String |
getLocationIdentifier(@NotNull VcsLocationDefinition vcsLocationDefinition)
A string representing the location of the repository.
|
protected Repository |
getRepositoryInstance(@Nullable VcsLocationDefinition vcsLocationDefinition) |
Optional<VcsType> |
getScmType(@NotNull VcsLocationDefinition vcsLocationDefinition)
Return the type of vcs system used by a repository.
|
@NotNull String |
getServerHost(@NotNull VcsLocationDefinition vcsLocationDefinition)
What's the repository server host.
|
@NotNull Iterable<Long> |
getSharedCredentialsIds(@NotNull VcsLocationDefinition vcsLocationDefinition)
Returns a list of shared credential ids used by a repository.
|
void |
populateContextForCreate(@NotNull Map<String,Object> context) |
void |
populateContextForEdit(@NotNull Map<String,Object> context,
@NotNull VcsLocationDefinition vcsLocationDefinition) |
void |
populateContextForView(@NotNull Map<String,Object> context,
@NotNull VcsLocationDefinition vcsLocationDefinition) |
void |
validate(@NotNull ActionParametersMap actionParametersMap,
@Nullable VcsLocationDefinition previousDefinition,
@NotNull ErrorCollection errorCollection) |
void |
validateForConnectionTesting(@NotNull ActionParametersMap actionParametersMap,
@Nullable VcsLocationDefinition previousDefinition,
@NotNull ErrorCollection errorCollection)
A method similar to
VcsLocationConfigurator.validate(ActionParametersMap, VcsLocationDefinition, ErrorCollection) used to validate repository configuration
before connection testing. |
getNewRepositoryInstance, getNewRepositoryInstanceAs, getRepositoryInstance, getRepositoryInstanceAs, xmlToConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWebhookEnabled, setVcsLocationDataInConfigpublic static final String LEGACY_XML
public LegacyVcsLocationConfigurator(RepositoryModuleDescriptor repositoryModuleDescriptor)
public void populateContextForCreate(@NotNull
@NotNull Map<String,Object> context)
populateContextForCreate in interface VcsLocationConfiguratorprotected Repository getRepositoryInstance(@Nullable @Nullable VcsLocationDefinition vcsLocationDefinition)
public void populateContextForEdit(@NotNull
@NotNull Map<String,Object> context,
@NotNull
@NotNull VcsLocationDefinition vcsLocationDefinition)
populateContextForEdit in interface VcsLocationConfiguratorpublic void populateContextForView(@NotNull
@NotNull Map<String,Object> context,
@NotNull
@NotNull VcsLocationDefinition vcsLocationDefinition)
populateContextForView in interface VcsLocationConfiguratorpublic void validate(@NotNull
@NotNull ActionParametersMap actionParametersMap,
@Nullable
@Nullable VcsLocationDefinition previousDefinition,
@NotNull
@NotNull ErrorCollection errorCollection)
validate in interface VcsLocationConfiguratorpublic void validateForConnectionTesting(@NotNull
@NotNull ActionParametersMap actionParametersMap,
@Nullable
@Nullable VcsLocationDefinition previousDefinition,
@NotNull
@NotNull ErrorCollection errorCollection)
VcsLocationConfiguratorVcsLocationConfigurator.validate(ActionParametersMap, VcsLocationDefinition, ErrorCollection) used to validate repository configuration
before connection testing.
This method may be more relaxed than normal validation. Additionally, different error messages may be displayed
(e.g. related to impossibility of transferring files).validateForConnectionTesting in interface VcsLocationConfigurator@NotNull public @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsLocationDefinition previousDefinition)
generateConfigMap in interface VcsLocationConfiguratorpublic void addDefaultsForAdvancedOptions(@NotNull
@NotNull Map<String,String> cfgMap)
VcsLocationConfiguratoraddDefaultsForAdvancedOptions in interface VcsLocationConfigurator@NotNull public @NotNull String getLocationIdentifier(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfiguratorgetLocationIdentifier in interface VcsLocationConfigurator@NotNull public @NotNull String getServerHost(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfiguratorgetServerHost in interface VcsLocationConfigurator@NotNull public @NotNull Iterable<Long> getSharedCredentialsIds(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfiguratorgetSharedCredentialsIds in interface VcsLocationConfiguratorpublic Optional<VcsType> getScmType(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfiguratorVcsType.GITgetScmType in interface VcsLocationConfiguratorCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.