public interface VcsLocationConfigurator
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.
|
default 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.
|
default 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 |
validate(ActionParametersMap actionParametersMap,
VcsLocationDefinition previousVcsLocationDefinition,
ErrorCollection errorCollection) |
default void |
validateForConnectionTesting(ActionParametersMap actionParametersMap,
VcsLocationDefinition previousVcsLocationDefinition,
ErrorCollection errorCollection)
A method similar to
validate(ActionParametersMap, VcsLocationDefinition, ErrorCollection) used to validate repository configuration
before connection testing. |
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 previousVcsLocationDefinition, @NotNull ErrorCollection errorCollection)
default void validateForConnectionTesting(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsLocationDefinition previousVcsLocationDefinition, @NotNull ErrorCollection errorCollection)
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).@NotNull Map<String,String> generateConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable VcsLocationDefinition previousVcsLocationDefinition)
void addDefaultsForAdvancedOptions(@NotNull Map<String,String> cfgMap)
cfgMap
- @NotNull String getServerHost(@NotNull VcsLocationDefinition vcsLocationDefinition)
@NotNull String getLocationIdentifier(@NotNull VcsLocationDefinition vcsLocationDefinition)
@NotNull default Iterable<Long> getSharedCredentialsIds(@NotNull VcsLocationDefinition vcsLocationDefinition)
vcsLocationDefinition
- default Optional<VcsType> getScmType(@NotNull VcsLocationDefinition vcsLocationDefinition)
VcsType.GIT
vcsLocationDefinition
- Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.