com.atlassian.bamboo.repository
Class DefaultRepositoryManager
java.lang.Object
com.atlassian.bamboo.repository.DefaultRepositoryManager
- All Implemented Interfaces:
- RepositoryManager
public class DefaultRepositoryManager
- extends java.lang.Object
- implements RepositoryManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRepositoryManager
public DefaultRepositoryManager()
getRepositories
public java.util.List<Repository> getRepositories()
- Description copied from interface:
RepositoryManager
- Retuns a list of available
Repository
objects
- Specified by:
getRepositories
in interface RepositoryManager
- Returns:
- Immutable list of
Repository
. Empty list if none exists.
getNewRepositoryInstance
@Nullable
public Repository getNewRepositoryInstance(java.lang.String key)
- Description copied from interface:
RepositoryManager
- Takes in a repository key and creates a new
Repository
for that key
- Specified by:
getNewRepositoryInstance
in interface RepositoryManager
- Parameters:
key
- - Cannot be null
- Returns:
Repository
matching the key. Throws IllegalArgumentException
if invalid
getNewRepositoryInstanceFromMavenScmProviderKey
@Nullable
public MavenPomAccessorCapableRepository getNewRepositoryInstanceFromMavenScmProviderKey(@NotNull
java.lang.String scmProviderKey)
- Description copied from interface:
RepositoryManager
- Takes in a Maven SCM provider key and creates a new
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.html
- Specified by:
getNewRepositoryInstanceFromMavenScmProviderKey
in interface RepositoryManager
- Parameters:
scmProviderKey
- - Maven SCM URL
- Returns:
Repository
matching the key. Throws IllegalArgumentException
if invalid
getFilterOptions
@NotNull
public java.util.List<NameValuePair> getFilterOptions()
- Specified by:
getFilterOptions
in interface RepositoryManager
setTextProvider
public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
Copyright © 2012 Atlassian. All Rights Reserved.