public interface ContextAwareUrlSupport extends VcsExtension, VcsGenericService
UrlSupport.| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
convertToVcsRootProperties(VcsUrl url,
VcsOperationContext context)
Converts the given url to a set of VCS root properties valid enough for creating a VCS root.
|
@Nullable
java.util.Map<java.lang.String,java.lang.String> convertToVcsRootProperties(@NotNull
VcsUrl url,
@NotNull
VcsOperationContext context)
throws VcsException
UrlSupport.convertToVcsRootProperties(VcsUrl) but also accepts a context where the operation is performed.
A plugin can use this context to find additional data required to create a valid VCS root properties map, for instance, SSH keys.url - url to repository with optional credentialscontext - a context where operation is performedVcsException - if URL looks like related to VCS plugin, but properties could not be created because of some problems