|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface ExtensionRepositoryManager
Proxy behind remote repositories.
| Method Summary | |
|---|---|
void |
addRepository(ExtensionRepository repository)
|
ExtensionRepository |
addRepository(ExtensionRepositoryId repositoryId)
Create and add a new repository. |
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. |
| Method Detail |
|---|
ExtensionRepository addRepository(ExtensionRepositoryId repositoryId)
throws ExtensionRepositoryException
repositoryId - the repository identifier
ExtensionRepositoryException - 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 identifier
ExtensionRepository.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 identifier
ResolveException - failed to find extension in the repository
Extension 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 dependency
ResolveException - failed to find extension in the repository
IterableResult<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 return
ResolveException - fail to find extension for provided id
IterableResult<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.
Searchable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||