@Role public interface ExtensionManager
| Modifier and Type | Method and Description |
|---|---|
default Extension |
getAccessibleExtension(String feature,
Namespace namespace)
Get the accessible (i.e.
|
ExtensionRepository |
getRepository(String repositoryId)
Return a repository based on its id.
|
Extension |
resolveExtension(ExtensionDependency extensionDependency)
Deprecated.
since 5.3M1, use
resolveExtension(ExtensionDependency, String) instead |
Extension |
resolveExtension(ExtensionDependency extensionDependency,
String namespace)
Search the provided extension as a dependency of another extension among all repositories including core and
local repositories.
|
Extension |
resolveExtension(ExtensionId extensionId)
Search the provided extension among all repositories including core and local repositories.
|
default IterableResult<Extension> |
searchAccessibleExtensions(Namespace namespace,
ExtensionQuery query)
Search accessible (i.e.
|
Extension resolveExtension(ExtensionId extensionId) throws ResolveException
The search is done in the following order:
extensionId - the extension identifierResolveException - error when trying to resolve extension@Deprecated Extension resolveExtension(ExtensionDependency extensionDependency) throws ResolveException
resolveExtension(ExtensionDependency, String) insteadThe search is done in the following order:
extensionDependency - the extension as dependencyResolveException - error when trying to resolve extensionExtension resolveExtension(ExtensionDependency extensionDependency, String namespace) throws ResolveException
The search is done in the following order:
extensionDependency - the extension as dependencynamespace - the namespace where to search for the dependencyResolveException - error when trying to resolve extensionExtensionRepository getRepository(String repositoryId)
This method also return local, installed and core repositories.
repositoryId - the id of the repositorydefault Extension getAccessibleExtension(String feature, Namespace namespace)
feature - the extension id or provided feature (virtual extension)namespace - the namespace from where the extension is usableExtension instancedefault IterableResult<Extension> searchAccessibleExtensions(Namespace namespace, ExtensionQuery query) throws SearchException
namespace - the namespace where to searchquery - the extension query used to filter and order the resultSearchException - error when trying to search provided patternCopyright © 2004–2019 XWiki. All rights reserved.