@Role public interface CoreExtensionRepository extends ExtensionRepository, AdvancedSearchable
| Modifier and Type | Method and Description |
|---|---|
int |
countExtensions() |
boolean |
exists(String feature) |
CoreExtension |
getCoreExtension(String feature) |
Collection<CoreExtension> |
getCoreExtensions() |
CoreExtension |
getEnvironmentExtension()
Return the extension corresponding to the current environment if any.
|
CoreExtension |
resolve(ExtensionDependency extensionDependency)
Return extension descriptor from the repository.
|
CoreExtension |
resolve(ExtensionId extensionId)
Return extension descriptor from the repository.
|
exists, getDescriptor, getId, resolveVersionsisFilterable, isSortable, searchsearchint countExtensions()
Collection<CoreExtension> getCoreExtensions()
CoreExtension getEnvironmentExtension()
CoreExtension getCoreExtension(String feature)
feature - the feature provided by the extension including its identifier (version is not needed since there
can be only one version of a core extension)boolean exists(String feature)
feature - the feature provided by the extension including its identifier (version is not needed since there
can be only one version of a core extension)CoreExtension resolve(ExtensionDependency extensionDependency) throws ResolveException
ExtensionRepositoryResolveException is
thrown.resolve in interface ExtensionRepositoryextensionDependency - the target extension as a dependencyExtensionNotFoundException - when the dependency does not match any extension in the repositoryResolveException - failed to find extension in the repositoryCoreExtension resolve(ExtensionId extensionId) throws ResolveException
ExtensionRepositoryResolveException is
thrown.resolve in interface ExtensionRepositoryextensionId - the extension identifierExtensionNotFoundException - when the extension does not exist in the repositoryResolveException - failed to find extension in the repositoryCopyright © 2004–2017 XWiki. All rights reserved.