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 Details

    • AbstractAdvancedSearchableExtensionRepository

      public AbstractAdvancedSearchableExtensionRepository()
  • Method Details

    • 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 interface Searchable
      Parameters:
      pattern - the pattern to search
      offset - the offset from where to start returning search results
      nb - 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