com.atlassian.bamboo.repository
Interface RepositoryManager

All Known Implementing Classes:
DefaultRepositoryManager

public interface RepositoryManager

Interface to handle interactions with Repository objects


Method Summary
 java.util.List<NameValuePair> getAuthenticationTypes()
          Deprecated. since 2.7 - handle this in your own repository.
 java.util.List<NameValuePair> getFilterOptions()
           
 Repository getNewRepositoryInstance(java.lang.String repositoryKey)
          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. since 2.7 - handle this in your own repository.
 

Method Detail

getRepositories

java.util.List<Repository> getRepositories()
Retuns a list of available Repository objects

Returns:
Immutable list of Repository. Empty list if none exists.

getNewRepositoryInstance

@Nullable
Repository getNewRepositoryInstance(java.lang.String repositoryKey)
Takes in a repository key and creates a new Repository for that key

Parameters:
repositoryKey - - Cannot be null
Returns:
Repository matching the key. Throws IllegalArgumentException if invalid
Throws:
{@link - IllegalArgumentException} if the key does not correspond to a valid Repository

getNewRepositoryInstanceFromMavenScmProviderKey

@Nullable
MavenPomAccessorCapableRepository getNewRepositoryInstanceFromMavenScmProviderKey(@NotNull
                                                                                           java.lang.String scmProviderKey)
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

Parameters:
scmProviderKey - - Maven SCM URL
Returns:
Repository matching the key. Throws IllegalArgumentException if invalid

getVersionTypes

@Deprecated
java.util.Collection<NameValuePair> getVersionTypes()
Deprecated. since 2.7 - handle this in your own repository.

A list of NameValuePair objects with representing HEAD / Branch versions

Returns:
List never null

getAuthenticationTypes

@Deprecated
java.util.List<NameValuePair> getAuthenticationTypes()
Deprecated. since 2.7 - handle this in your own repository.

TODO Probably obsolete

Returns:
currently returns an empty list....

getFilterOptions

@NotNull
java.util.List<NameValuePair> getFilterOptions()


Copyright © 2010 Atlassian. All Rights Reserved.