Package org.xwiki.extension.index
Interface ExtensionIndex
- All Superinterfaces:
AdvancedSearchable
,ExtensionRepository
,Searchable
A local index of extensions coming from various repositories.
- Since:
- 12.10
- Version:
- $Id: 4ddae70fc6ad99bea185906a202ee2d35b1475f7 $
-
Method Summary
Modifier and TypeMethodDescriptionStart a new indexing process or return the status of the currently running one.resolve
(ExtensionDependency extensionDependency) Return extension descriptor from the repository.resolve
(ExtensionId extensionId) Return extension descriptor from the repository.Methods inherited from interface org.xwiki.extension.repository.search.AdvancedSearchable
isFilterable, isSortable, search
Methods inherited from interface org.xwiki.extension.repository.ExtensionRepository
exists, getDescriptor, getId, resolveVersions
Methods inherited from interface org.xwiki.extension.repository.search.Searchable
search
-
Method Details
-
getStatus
- Parameters:
namespace
- the namespace for which the validation was executed- Returns:
- the status of the currently running or last indexing process
-
index
Start a new indexing process or return the status of the currently running one.- Parameters:
namespace
- the namespace for which to validate the extensions- Returns:
- the status of the running indexing process
- Throws:
org.xwiki.job.JobException
- when failing to start indexing
-
resolve
Description copied from interface:ExtensionRepository
Return extension descriptor from the repository. If the extension can't be found aResolveException
is thrown.- Specified by:
resolve
in interfaceExtensionRepository
- Parameters:
extensionDependency
- the target extension as a dependency- Returns:
- the found extension descriptor
- Throws:
ExtensionNotFoundException
- when the dependency does not match any extension in the repositoryResolveException
- failed to find extension in the repository
-
resolve
Description copied from interface:ExtensionRepository
Return extension descriptor from the repository. If the extension can't be found aResolveException
is thrown.- Specified by:
resolve
in interfaceExtensionRepository
- Parameters:
extensionId
- the extension identifier- Returns:
- the found extension descriptor
- Throws:
ExtensionNotFoundException
- when the extension does not exist in the repositoryResolveException
- failed to find extension in the repository
-