public class BitbucketCloudServerConfigurator extends Object implements VcsLocationConfigurator
Modifier | Constructor and Description |
---|---|
|
BitbucketCloudServerConfigurator() |
protected |
BitbucketCloudServerConfigurator(Function<String,String> getUuidForEmailFunction) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultsForAdvancedOptions(Map<String,String> cfgMap)
In Plan creation screen advanced options' UI is not displayed.
|
Map<String,String> |
generateConfigMap(ActionParametersMap actionParametersMap,
VcsLocationDefinition previousVcsLocationDefinition) |
String |
getLocationIdentifier(VcsLocationDefinition vcsLocationDefinition)
A string representing the location of the repository.
|
Optional<VcsType> |
getScmType(VcsLocationDefinition vcsLocationDefinition)
Return the type of vcs system used by a repository.
|
String |
getServerHost(VcsLocationDefinition vcsLocationDefinition)
What's the repository server host.
|
Iterable<Long> |
getSharedCredentialsIds(VcsLocationDefinition vcsLocationDefinition)
Returns a list of shared credential ids used by a repository.
|
void |
populateContextForCreate(Map<String,Object> context) |
void |
populateContextForEdit(Map<String,Object> context,
VcsLocationDefinition vcsLocationDefinition) |
void |
populateContextForView(Map<String,Object> context,
VcsLocationDefinition vcsLocationDefinition) |
void |
setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
validate(ActionParametersMap actionParametersMap,
VcsLocationDefinition previousVcsLocationDefinition,
ErrorCollection errorCollection) |
void |
validateForConnectionTesting(ActionParametersMap actionParametersMap,
VcsLocationDefinition previousVcsLocationDefinition,
ErrorCollection errorCollection)
A method similar to
VcsLocationConfigurator.validate(ActionParametersMap, VcsLocationDefinition, ErrorCollection) used to validate repository configuration
before connection testing. |
public void populateContextForCreate(@NotNull Map<String,Object> context)
populateContextForCreate
in interface VcsLocationConfigurator
public void populateContextForEdit(@NotNull Map<String,Object> context, @NotNull VcsLocationDefinition vcsLocationDefinition)
populateContextForEdit
in interface VcsLocationConfigurator
public void populateContextForView(@NotNull Map<String,Object> context, @NotNull VcsLocationDefinition vcsLocationDefinition)
populateContextForView
in interface VcsLocationConfigurator
public void validate(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsLocationDefinition previousVcsLocationDefinition, @NotNull ErrorCollection errorCollection)
validate
in interface VcsLocationConfigurator
public void validateForConnectionTesting(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsLocationDefinition previousVcsLocationDefinition, @NotNull ErrorCollection errorCollection)
VcsLocationConfigurator
VcsLocationConfigurator.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 Map<String,String> generateConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsLocationDefinition previousVcsLocationDefinition)
generateConfigMap
in interface VcsLocationConfigurator
public void addDefaultsForAdvancedOptions(@NotNull Map<String,String> cfgMap)
VcsLocationConfigurator
addDefaultsForAdvancedOptions
in interface VcsLocationConfigurator
@NotNull public String getServerHost(@NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfigurator
getServerHost
in interface VcsLocationConfigurator
@NotNull public String getLocationIdentifier(@NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfigurator
getLocationIdentifier
in interface VcsLocationConfigurator
@NotNull public Iterable<Long> getSharedCredentialsIds(@NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfigurator
getSharedCredentialsIds
in interface VcsLocationConfigurator
public Optional<VcsType> getScmType(@NotNull VcsLocationDefinition vcsLocationDefinition)
VcsLocationConfigurator
VcsType.GIT
or VcsType.HG
getScmType
in interface VcsLocationConfigurator
@Deprecated public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
@Deprecated public void setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.