Package org.xwiki.extension.repository
Class AbstractAdvancedSearchableExtensionRepository
- java.lang.Object
-
- org.xwiki.extension.repository.AbstractExtensionRepository
-
- org.xwiki.extension.repository.AbstractAdvancedSearchableExtensionRepository
-
- All Implemented Interfaces:
ExtensionRepository
,AdvancedSearchable
,Searchable
- Direct Known Subclasses:
AbstractFilteredExtensionRepository
public abstract class AbstractAdvancedSearchableExtensionRepository extends AbstractExtensionRepository implements ExtensionRepository, AdvancedSearchable
A base class to use for a repository proxy searching in all remote extension repositories but filtering the result on provided criteria.- Since:
- 8.3RC1
- Version:
- $Id: 65f9bba5efe8746d8d8f1b1bfade932d5008cc73 $
-
-
Constructor Summary
Constructors Constructor Description AbstractAdvancedSearchableExtensionRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IterableResult<Extension>
search(String pattern, int offset, int nb)
Search extension based of the provided pattern.-
Methods inherited from class org.xwiki.extension.repository.AbstractExtensionRepository
exists, getDescriptor, getId, setDescriptor, setId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, resolve, resolve, resolveVersions
-
-
-
-
Method Detail
-
search
public IterableResult<Extension> search(String pattern, int offset, int nb) throws SearchException
Description copied from interface:Searchable
Search extension based of the provided pattern.The pattern is a simple character chain.
- Specified by:
search
in interfaceSearchable
- Parameters:
pattern
- the pattern to searchoffset
- the offset from where to start returning search resultsnb
- the maximum number of search results to return- Returns:
- the found extensions descriptors, empty list if nothing could be found
- Throws:
SearchException
- error when trying to search provided pattern
-
-