com.atlassian.bamboo.repository
Class DefaultRepositoryManager

java.lang.Object
  extended by com.atlassian.bamboo.repository.DefaultRepositoryManager
All Implemented Interfaces:
RepositoryManager

public class DefaultRepositoryManager
extends java.lang.Object
implements RepositoryManager


Constructor Summary
DefaultRepositoryManager()
           
 
Method Summary
 java.util.List<NameValuePair> getAuthenticationTypes()
          Deprecated. 
 java.util.List<NameValuePair> getFilterOptions()
           
 Repository getNewRepositoryInstance(java.lang.String key)
          Takes in a repository key and creates a new Repository for that key
 MavenPomAccessorCapableRepository getNewRepositoryInstanceFromMavenScmProviderKey(java.lang.String scmProviderKey)
          Takes in a Maven SCM provider key and creates a new Repository for that key.
 java.util.List<Repository> getRepositories()
          Retuns a list of available Repository objects
 java.util.Collection<NameValuePair> getVersionTypes()
          Deprecated. 
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRepositoryManager

public DefaultRepositoryManager()
Method Detail

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

getVersionTypes

@NotNull
@Deprecated
public java.util.Collection<NameValuePair> getVersionTypes()
Deprecated. 

Description copied from interface: RepositoryManager
A list of NameValuePair objects with representing HEAD / Branch versions

Specified by:
getVersionTypes in interface RepositoryManager
Returns:
List never null

getAuthenticationTypes

@NotNull
@Deprecated
public java.util.List<NameValuePair> getAuthenticationTypes()
Deprecated. 

TODO Probably obsolete

Specified by:
getAuthenticationTypes in interface RepositoryManager
Returns:
currently returns an empty list....

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 © 2011 Atlassian. All Rights Reserved.