@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, resolveVersions
isFilterable, isSortable, search
search
int 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
ExtensionRepository
ResolveException
is
thrown.resolve
in interface ExtensionRepository
extensionDependency
- 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
ExtensionRepository
ResolveException
is
thrown.resolve
in interface ExtensionRepository
extensionId
- the extension identifierExtensionNotFoundException
- when the extension does not exist in the repositoryResolveException
- failed to find extension in the repositoryCopyright © 2004–2021 XWiki. All rights reserved.