@Role public interface ExtensionRepositoryManager
| Modifier and Type | Method and Description |
|---|---|
void |
addRepository(ExtensionRepository repository) |
ExtensionRepository |
addRepository(ExtensionRepositoryDescriptor repositoryDescriptor)
Create and add a new repository.
|
ExtensionRepository |
addRepository(ExtensionRepositoryId repositoryId)
Deprecated.
since 4.3M1 use
addRepository(ExtensionRepositoryDescriptor) instead |
Collection<ExtensionRepository> |
getRepositories() |
ExtensionRepository |
getRepository(String repositoryId) |
void |
removeRepository(String repositoryId)
Remove a repository form the list.
|
Extension |
resolve(ExtensionDependency extensionDependency)
Get extension descriptor found in one of the repositories.
|
Extension |
resolve(ExtensionId extensionId)
Get extension descriptor found in one of the repositories.
|
IterableResult<Version> |
resolveVersions(String id,
int offset,
int nb)
Return ordered (ascendent) versions for the provided extension id.
|
IterableResult<Extension> |
search(String pattern,
int offset,
int nb)
Search among all repository implementing
Searchable interface. |
@Deprecated ExtensionRepository addRepository(ExtensionRepositoryId repositoryId) throws ExtensionRepositoryException
addRepository(ExtensionRepositoryDescriptor) insteadrepositoryId - the repository identifierExtensionRepositoryException - failed to create ExtensionRepository for provided identifierExtensionRepository addRepository(ExtensionRepositoryDescriptor repositoryDescriptor) throws ExtensionRepositoryException
repositoryDescriptor - the repository descriptorExtensionRepositoryException - failed to create ExtensionRepository for provided identifiervoid addRepository(ExtensionRepository repository)
repository - add an existing repositoryvoid removeRepository(String repositoryId)
repositoryId - the repository unique identifierExtensionRepository.getId()ExtensionRepository getRepository(String repositoryId)
repositoryId - the repository unique identifierExtensionRepository.getId()Collection<ExtensionRepository> getRepositories()
Extension resolve(ExtensionId extensionId) throws ResolveException
The proxy search in all repositories and return the first extension it could find.
extensionId - the extension identifierResolveException - failed to find extension in the repositoryExtension resolve(ExtensionDependency extensionDependency) throws ResolveException
The proxy search in all repositories and return the first extension it could find.
This method takes ExtensionDependency instead of ExtensionId to allow any implementation of
ExtensionRepository to extension dependencies with filter not supported yet by Extension Manage. As an
example Aether implementation add support from classifiers, excludes and version ranges.
extensionDependency - the extension dependencyResolveException - failed to find extension in the repositoryIterableResult<Version> resolveVersions(String id, int offset, int nb) throws ResolveException
id - the id of the extensions for which to return versionsoffset - the offset from where to start returning versionsnb - the maximum number of versions to returnResolveException - fail to find extension for provided idIterableResult<Extension> search(String pattern, int offset, int nb)
Searchable interface.pattern - the pattern to searchoffset - the offset from where to start returning search results, 0-basednb - the maximum number of search results to return. -1 indicate no limit. 0 indicate that no result will be
returned but it can be used to get the total hits.SearchableCopyright © 2004–2014 XWiki. All rights reserved.