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<RepositoryModuleDescriptor> getAvailableRepositoryDescriptors()
          Returns a list of available (i.e.
 java.util.List<RepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()
          Returns a list of available (i.e.
 java.util.List<NameValuePair> getFilterOptions()
          Get change detection filter options.
 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
 RepositoryModuleDescriptor getRepositoryModuleDescriptor(java.lang.String pluginKey)
          Returns a RepositoryModuleDescriptor for a plugin key
 

Method Detail

getRepositories

@NotNull
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

getFilterOptions

@NotNull
java.util.List<NameValuePair> getFilterOptions()
Get change detection filter options. e.g. exclude/include files.

Returns:

getAvailableRepositoryDescriptors

@NotNull
java.util.List<RepositoryModuleDescriptor> getAvailableRepositoryDescriptors()
Returns a list of available (i.e. installed and enabled) RepositoryModuleDescriptor objects.

Returns:
Immutable list of RepositoryModuleDescriptor sorted by weight. Empty list if none exists.
Since:
5.5

getAvailableStandaloneRepositoryDescriptors

@NotNull
java.util.List<RepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()
Returns a list of available (i.e. installed and enabled) RepositoryModuleDescriptor objects that represent StandaloneRepository

Returns:
Immutable list of RepositoryModuleDescriptor sorted by weight. Empty list if none exists.
Since:
5.5

getRepositoryModuleDescriptor

@Nullable
RepositoryModuleDescriptor getRepositoryModuleDescriptor(java.lang.String pluginKey)
Returns a RepositoryModuleDescriptor for a plugin key

Parameters:
pluginKey -
Since:
5.5


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.