Class IndexedExtensionQuery

java.lang.Object
org.xwiki.extension.repository.search.ExtensionQuery
org.xwiki.extension.index.IndexedExtensionQuery

public class IndexedExtensionQuery extends ExtensionQuery
Extends ExtensionQuery with extension index specific criteria.
Since:
12.10
Version:
$Id: f29dc03f819ccd1ffcb652439d8bb1f6b89eeac4 $
  • Constructor Details

    • IndexedExtensionQuery

      public IndexedExtensionQuery()
      No filtering. Usually return everything.
    • IndexedExtensionQuery

      public IndexedExtensionQuery(String query)
      Parameters:
      query - the query to execute
  • Method Details

    • fromRepository

      public IndexedExtensionQuery fromRepository(String repositoryId)
      Parameters:
      repositoryId - the repository from which the extension is coming from
      Returns:
      this
    • setCompatible

      public IndexedExtensionQuery setCompatible(boolean compatible, Namespace... namespaces)
      Parameters:
      compatible - true if only compatible extension should be returned
      namespaces - the namespaces with which the extensions should be (not) compatible
      Returns:
      this
    • getCompatible

      public Boolean getCompatible()
      Returns:
      true if only compatible extensions should be returned
    • getCompatibleNamespaces

      public List<Namespace> getCompatibleNamespaces()
      Returns:
      the namespace with which the extensions should be compatible
    • setInstalled

      public IndexedExtensionQuery setInstalled(boolean installed, Namespace... namespaces)
      Parameters:
      installed - true if only installed extensions should be returned
      namespaces - the namespaces on which the extensions should be installed
      Returns:
      this
      Since:
      14.0RC1
    • getInstalled

      public Boolean getInstalled()
      Returns:
      true if only installed extension should be returned
      Since:
      14.0RC1
    • getInstalledNamespaces

      public List<Namespace> getInstalledNamespaces()
      Returns:
      the namespace on which the extensions should be installed
      Since:
      14.0RC1