public class DefaultRepositoryManager extends Object implements RepositoryManager
Constructor and Description |
---|
DefaultRepositoryManager() |
Modifier and Type | Method and Description |
---|---|
List<RepositoryModuleDescriptor> |
getAvailableRepositoryDescriptors()
Returns a list of available (i.e.
|
List<RepositoryModuleDescriptor> |
getAvailableStandaloneRepositoryDescriptors()
Returns a list of available (i.e.
|
List<NameValuePair> |
getFilterOptions()
Get change detection filter options.
|
Repository |
getNewRepositoryInstance(String key)
Takes in a repository key and creates a new
Repository for that key |
MavenPomAccessorCapableRepository |
getNewRepositoryInstanceFromMavenScmProviderKey(String scmProviderKey)
Takes in a Maven SCM provider key and creates a new
Repository for that key. |
List<Repository> |
getRepositories()
Retuns a list of available
Repository objects |
RepositoryModuleDescriptor |
getRepositoryModuleDescriptor(String pluginKey)
Returns a
RepositoryModuleDescriptor for a plugin key |
void |
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
@NotNull public List<Repository> getRepositories()
RepositoryManager
Repository
objectsgetRepositories
in interface RepositoryManager
Repository
. Empty list if none exists.@Nullable public Repository getNewRepositoryInstance(String key)
RepositoryManager
Repository
for that keygetNewRepositoryInstance
in interface RepositoryManager
key
- - Cannot be nullRepository
matching the key. Throws IllegalArgumentException
if invalid@Nullable public MavenPomAccessorCapableRepository getNewRepositoryInstanceFromMavenScmProviderKey(@NotNull String scmProviderKey)
RepositoryManager
Repository
for that key. Repository object is not initialized
with the SCM URL.
Maven SCM URL format is defined in http://maven.apache.org/scm/scm-url-format.htmlgetNewRepositoryInstanceFromMavenScmProviderKey
in interface RepositoryManager
scmProviderKey
- - Maven SCM URLRepository
matching the key. Throws IllegalArgumentException
if invalid@NotNull public List<NameValuePair> getFilterOptions()
RepositoryManager
getFilterOptions
in interface RepositoryManager
@NotNull public List<RepositoryModuleDescriptor> getAvailableRepositoryDescriptors()
RepositoryManager
RepositoryModuleDescriptor
objects.getAvailableRepositoryDescriptors
in interface RepositoryManager
RepositoryModuleDescriptor
sorted by weight. Empty list if none exists.@NotNull public List<RepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()
RepositoryManager
RepositoryModuleDescriptor
objects that represent StandaloneRepository
getAvailableStandaloneRepositoryDescriptors
in interface RepositoryManager
RepositoryModuleDescriptor
sorted by weight. Empty list if none exists.@Nullable public RepositoryModuleDescriptor getRepositoryModuleDescriptor(String pluginKey)
RepositoryManager
RepositoryModuleDescriptor
for a plugin keygetRepositoryModuleDescriptor
in interface RepositoryManager
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.