public class BitbucketServerServerConfigurator extends BitbucketServerSshKeyHandler implements VcsLocationConfigurator
Modifier and Type | Field and Description |
---|---|
static String |
NEGOTIATE_SSH_KEYS |
Constructor and Description |
---|
BitbucketServerServerConfigurator() |
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 previousVcsLocationDefinition) |
@NotNull String |
getLocationIdentifier(@NotNull VcsLocationDefinition vcsLocationDefinition)
A string representing the location of the repository.
|
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.
|
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) |
@NotNull Map<String,String> |
setVcsLocationDataInConfig(@NotNull Map<String,String> configMap,
@Nullable String vcsLocationParentIdentifier,
@Nullable String vcsLocationRepositoryIdentifier)
Modify config map by setting repository location data.
|
protected String |
substituteString(@Nullable String stringWithValuesToSubstitute) |
void |
validate(@NotNull ActionParametersMap actionParametersMap,
@Nullable VcsLocationDefinition previousVcsLocationDefinition,
@NotNull ErrorCollection errorCollection) |
generateKeyPair, getAuthenticationErrors, sshKeyLocationToString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSharedCredentialsIds, isWebhookEnabled, validateForConnectionTesting
public static final String NEGOTIATE_SSH_KEYS
public void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)
populateContextForCreate
in interface VcsLocationConfigurator
public void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
populateContextForEdit
in interface VcsLocationConfigurator
public void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
populateContextForView
in interface VcsLocationConfigurator
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsLocationDefinition previousVcsLocationDefinition, @NotNull @NotNull ErrorCollection errorCollection)
validate
in interface VcsLocationConfigurator
protected String substituteString(@Nullable @Nullable String stringWithValuesToSubstitute)
@NotNull public @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsLocationDefinition previousVcsLocationDefinition)
generateConfigMap
in interface VcsLocationConfigurator
public void addDefaultsForAdvancedOptions(@NotNull @NotNull Map<String,String> cfgMap)
VcsLocationConfigurator
addDefaultsForAdvancedOptions
in interface VcsLocationConfigurator
@NotNull public @NotNull String getServerHost(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfigurator
getServerHost
in interface VcsLocationConfigurator
@NotNull public @NotNull String getLocationIdentifier(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfigurator
getLocationIdentifier
in interface VcsLocationConfigurator
public Optional<VcsType> getScmType(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfigurator
VcsType.GIT
getScmType
in interface VcsLocationConfigurator
@NotNull public @NotNull Map<String,String> setVcsLocationDataInConfig(@NotNull @NotNull Map<String,String> configMap, @Nullable @Nullable String vcsLocationParentIdentifier, @Nullable @Nullable String vcsLocationRepositoryIdentifier)
VcsLocationConfigurator
setVcsLocationDataInConfig
in interface VcsLocationConfigurator
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.