Package org.xwiki.extension.index
Class IndexedExtensionQuery
- java.lang.Object
-
- org.xwiki.extension.repository.search.ExtensionQuery
-
- org.xwiki.extension.index.IndexedExtensionQuery
-
public class IndexedExtensionQuery extends ExtensionQuery
ExtendsExtensionQuerywith extension index specific criteria.- Since:
- 12.10
- Version:
- $Id: f29dc03f819ccd1ffcb652439d8bb1f6b89eeac4 $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.xwiki.extension.repository.search.ExtensionQuery
ExtensionQuery.COMPARISON, ExtensionQuery.Filter, ExtensionQuery.ORDER, ExtensionQuery.SortClause
-
-
Constructor Summary
Constructors Constructor Description IndexedExtensionQuery()No filtering.IndexedExtensionQuery(String query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexedExtensionQueryfromRepository(String repositoryId)BooleangetCompatible()List<Namespace>getCompatibleNamespaces()BooleangetInstalled()List<Namespace>getInstalledNamespaces()IndexedExtensionQuerysetCompatible(boolean compatible, Namespace... namespaces)IndexedExtensionQuerysetInstalled(boolean installed, Namespace... namespaces)-
Methods inherited from class org.xwiki.extension.repository.search.ExtensionQuery
addFilter, addFilters, addSort, getFilters, getLimit, getOffset, getQuery, getSortClauses, setFilters, setLimit, setOffset, setSortClauses
-
-
-
-
Constructor Detail
-
IndexedExtensionQuery
public IndexedExtensionQuery()
No filtering. Usually return everything.
-
IndexedExtensionQuery
public IndexedExtensionQuery(String query)
- Parameters:
query- the query to execute
-
-
Method Detail
-
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 returnednamespaces- 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 returnednamespaces- 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
-
-