@Unstable @Role public interface ExtensionIndex extends ExtensionRepository, AdvancedSearchable
Modifier and Type | Method and Description |
---|---|
ExtensionIndexStatus |
getStatus(Namespace namespace) |
ExtensionIndexStatus |
index(Namespace namespace)
Start a new indexing process or return the status of the currently running one.
|
IndexedExtension |
resolve(ExtensionDependency extensionDependency)
Return extension descriptor from the repository.
|
IndexedExtension |
resolve(ExtensionId extensionId)
Return extension descriptor from the repository.
|
exists, getDescriptor, getId, resolveVersions
isFilterable, isSortable, search
search
ExtensionIndexStatus getStatus(Namespace namespace)
namespace
- the namespace for which the validation was executedExtensionIndexStatus index(Namespace namespace) throws org.xwiki.job.JobException
namespace
- the namespace for which to validate the extensionsorg.xwiki.job.JobException
- when failing to start indexingIndexedExtension 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 repositoryIndexedExtension 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.