Package org.xwiki.extension.index
Interface ExtensionIndex
-
- All Superinterfaces:
AdvancedSearchable,ExtensionRepository,Searchable
@Role public interface ExtensionIndex extends ExtensionRepository, AdvancedSearchable
A local index of extensions coming from various repositories.- Since:
- 12.10
- Version:
- $Id: 4ddae70fc6ad99bea185906a202ee2d35b1475f7 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtensionIndexStatusgetStatus(Namespace namespace)ExtensionIndexStatusindex(Namespace namespace)Start a new indexing process or return the status of the currently running one.IndexedExtensionresolve(ExtensionDependency extensionDependency)Return extension descriptor from the repository.IndexedExtensionresolve(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 Detail
-
getStatus
ExtensionIndexStatus getStatus(Namespace namespace)
- Parameters:
namespace- the namespace for which the validation was executed- Returns:
- the status of the currently running or last indexing process
-
index
ExtensionIndexStatus index(Namespace namespace) throws org.xwiki.job.JobException
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
IndexedExtension resolve(ExtensionDependency extensionDependency) throws ResolveException
Description copied from interface:ExtensionRepositoryReturn extension descriptor from the repository. If the extension can't be found aResolveExceptionis thrown.- Specified by:
resolvein 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
IndexedExtension resolve(ExtensionId extensionId) throws ResolveException
Description copied from interface:ExtensionRepositoryReturn extension descriptor from the repository. If the extension can't be found aResolveExceptionis thrown.- Specified by:
resolvein 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
-
-