public interface ExtensionRepository
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(ExtensionId extensionId) |
ExtensionRepositoryDescriptor |
getDescriptor() |
ExtensionRepositoryId |
getId()
Deprecated.
since 4.3M1 use
getDescriptor() instead |
Extension |
resolve(ExtensionDependency extensionDependency)
Return extension descriptor from the repository.
|
Extension |
resolve(ExtensionId extensionId)
Return extension descriptor from the repository.
|
IterableResult<Version> |
resolveVersions(String id,
int offset,
int nb)
Return ordered (ascendent) versions for the provided extension id.
|
ExtensionRepositoryDescriptor getDescriptor()
Extension resolve(ExtensionId extensionId) throws ResolveException
ResolveException is
thrown.extensionId - the extension identifierExtensionNotFoundException - when the extension does not exist in the repositoryResolveException - failed to find extension in the repositoryExtension resolve(ExtensionDependency extensionDependency) throws ResolveException
ResolveException is
thrown.extensionDependency - the target extension as a dependencyExtensionNotFoundException - when the dependency does not match any extension in the repositoryResolveException - 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 returnExtensionNotFoundException - when the extension does not exist in the repositoryResolveException - fail to find extension for provided idboolean exists(ExtensionId extensionId)
extensionId - the extension identifier@Deprecated ExtensionRepositoryId getId()
getDescriptor() insteadCopyright © 2004–2017 XWiki. All rights reserved.