Package com.atlassian.bamboo.repository
Class DefaultRepositoryManager
java.lang.Object
com.atlassian.bamboo.repository.DefaultRepositoryManager
- All Implemented Interfaces:
RepositoryManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<RepositoryModuleDescriptor>
Returns a list of available (i.e.@NotNull List<RepositoryModuleDescriptor>
Returns a list of available (i.e.@NotNull List<NameValuePair>
Get change detection filter options.@Nullable Repository
Takes in a repository key and creates a newRepository
for that key@Nullable MavenPomAccessorCapableRepository
getNewRepositoryInstanceFromMavenScmProviderKey
(@NotNull String scmProviderKey) Takes in a Maven SCM provider key and creates a newRepository
for that key.@NotNull List<Repository>
Retuns a list of availableRepository
objects@Nullable RepositoryModuleDescriptor
getRepositoryModuleDescriptor
(String pluginKey) Returns aRepositoryModuleDescriptor
for a plugin keyvoid
setPluginAccessor
(com.atlassian.plugin.PluginAccessor pluginAccessor) void
setTextProvider
(com.opensymphony.xwork2.TextProvider textProvider)
-
Constructor Details
-
DefaultRepositoryManager
public DefaultRepositoryManager()
-
-
Method Details
-
getRepositories
Description copied from interface:RepositoryManager
Retuns a list of availableRepository
objects- Specified by:
getRepositories
in interfaceRepositoryManager
- Returns:
- Immutable list of
Repository
. Empty list if none exists.
-
getNewRepositoryInstance
Description copied from interface:RepositoryManager
Takes in a repository key and creates a newRepository
for that key- Specified by:
getNewRepositoryInstance
in interfaceRepositoryManager
- Parameters:
key
- - Cannot be null- Returns:
Repository
matching the key. ThrowsIllegalArgumentException
if invalid
-
getNewRepositoryInstanceFromMavenScmProviderKey
@Nullable public @Nullable MavenPomAccessorCapableRepository getNewRepositoryInstanceFromMavenScmProviderKey(@NotNull @NotNull String scmProviderKey) Description copied from interface:RepositoryManager
Takes in a Maven SCM provider key and creates a newRepository
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 interfaceRepositoryManager
- Parameters:
scmProviderKey
- - Maven SCM URL- Returns:
Repository
matching the key. ThrowsIllegalArgumentException
if invalid
-
getFilterOptions
Description copied from interface:RepositoryManager
Get change detection filter options. e.g. exclude/include files.- Specified by:
getFilterOptions
in interfaceRepositoryManager
- Returns:
-
getAvailableRepositoryDescriptors
Description copied from interface:RepositoryManager
Returns a list of available (i.e. installed and enabled)RepositoryModuleDescriptor
objects.- Specified by:
getAvailableRepositoryDescriptors
in interfaceRepositoryManager
- Returns:
- Immutable list of
RepositoryModuleDescriptor
sorted by weight. Empty list if none exists.
-
getAvailableStandaloneRepositoryDescriptors
@NotNull public @NotNull List<RepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()Description copied from interface:RepositoryManager
Returns a list of available (i.e. installed and enabled)RepositoryModuleDescriptor
objects that representStandaloneRepository
- Specified by:
getAvailableStandaloneRepositoryDescriptors
in interfaceRepositoryManager
- Returns:
- Immutable list of
RepositoryModuleDescriptor
sorted by weight. Empty list if none exists.
-
getRepositoryModuleDescriptor
@Nullable public @Nullable RepositoryModuleDescriptor getRepositoryModuleDescriptor(String pluginKey) Description copied from interface:RepositoryManager
Returns aRepositoryModuleDescriptor
for a plugin key- Specified by:
getRepositoryModuleDescriptor
in interfaceRepositoryManager
-
setTextProvider
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) -
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
-