Package org.xwiki.extension.index
Class IndexedExtensionQuery
java.lang.Object
org.xwiki.extension.repository.search.ExtensionQuery
org.xwiki.extension.index.IndexedExtensionQuery
Extends
ExtensionQuery
with 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
-
Method Summary
Modifier and TypeMethodDescriptionfromRepository
(String repositoryId) setCompatible
(boolean compatible, Namespace... namespaces) setInstalled
(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 Details
-
IndexedExtensionQuery
public IndexedExtensionQuery()No filtering. Usually return everything. -
IndexedExtensionQuery
- Parameters:
query
- the query to execute
-
-
Method Details
-
fromRepository
- Parameters:
repositoryId
- the repository from which the extension is coming from- Returns:
- this
-
setCompatible
- Parameters:
compatible
- true if only compatible extension should be returnednamespaces
- the namespaces with which the extensions should be (not) compatible- Returns:
- this
-
getCompatible
- Returns:
- true if only compatible extensions should be returned
-
getCompatibleNamespaces
- Returns:
- the namespace with which the extensions should be compatible
-
setInstalled
- 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
- Returns:
- true if only installed extension should be returned
- Since:
- 14.0RC1
-
getInstalledNamespaces
- Returns:
- the namespace on which the extensions should be installed
- Since:
- 14.0RC1
-