public interface VcsLocationConfigurator
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.
|
default 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.
|
default @NotNull Iterable<Long> |
getSharedCredentialsIds(@NotNull VcsLocationDefinition vcsLocationDefinition)
Returns a list of shared credential ids used by a repository.
|
default boolean |
isWebhookEnabled(VcsRepositoryData vcsRepositoryData)
Determines whether the specified repository data has the webhook option enabled.
|
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) |
default @NotNull Map<String,String> |
setVcsLocationDataInConfig(@NotNull Map<String,String> configMap,
@Nullable String vcsLocationParentIdentifier,
@Nullable String vcsLocationRepositoryIdentifier)
Modify config map by setting repository location data.
|
void |
validate(@NotNull ActionParametersMap actionParametersMap,
@Nullable VcsLocationDefinition previousVcsLocationDefinition,
@NotNull ErrorCollection errorCollection) |
default void |
validateForConnectionTesting(@NotNull ActionParametersMap actionParametersMap,
@Nullable VcsLocationDefinition previousVcsLocationDefinition,
@NotNull ErrorCollection errorCollection)
A method similar to
validate(ActionParametersMap, VcsLocationDefinition, ErrorCollection) used to validate repository configuration
before connection testing. |
void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)
void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsLocationDefinition previousVcsLocationDefinition, @NotNull @NotNull ErrorCollection errorCollection)
default void validateForConnectionTesting(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsLocationDefinition previousVcsLocationDefinition, @NotNull @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 @NotNull Map<String,String> generateConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable VcsLocationDefinition previousVcsLocationDefinition)
void addDefaultsForAdvancedOptions(@NotNull @NotNull Map<String,String> cfgMap)
cfgMap
- @NotNull @NotNull String getServerHost(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
@NotNull @NotNull String getLocationIdentifier(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
@NotNull default @NotNull Iterable<Long> getSharedCredentialsIds(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
vcsLocationDefinition
- default Optional<VcsType> getScmType(@NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
VcsType.GIT
vcsLocationDefinition
- @NotNull default @NotNull Map<String,String> setVcsLocationDataInConfig(@NotNull @NotNull Map<String,String> configMap, @Nullable @Nullable String vcsLocationParentIdentifier, @Nullable @Nullable String vcsLocationRepositoryIdentifier)
configMap
- vcsLocationParentIdentifier
- vcsLocationRepositoryIdentifier
- default boolean isWebhookEnabled(VcsRepositoryData vcsRepositoryData)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.