public abstract class AbstractFilteredExtensionRepository extends AbstractAdvancedSearchableExtensionRepository
| Constructor and Description |
|---|
AbstractFilteredExtensionRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(String field,
Object value,
ExtensionQuery.COMPARISON comparison) |
boolean |
isFilterable() |
boolean |
isSortable() |
Extension |
resolve(ExtensionDependency extensionDependency)
Return extension descriptor from the repository.
|
Extension |
resolve(ExtensionId extensionId)
Return extension descriptor from the repository.
|
IterableResult<Version> |
resolveVersions(String id,
int offset,
int nb)
Return ordered (ascendent) versions for the provided extension id.
|
IterableResult<Extension> |
search(ExtensionQuery inputQuery)
Search extension based of the provided query.
|
searchexists, getDescriptor, getId, setDescriptor, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, getDescriptor, getIdpublic void addFilter(String field, Object value, ExtensionQuery.COMPARISON comparison)
field - the name of the fieldvalue - the value to compare tocomparison - the comparison to applypublic Extension resolve(ExtensionId extensionId) throws ResolveException
ExtensionRepositoryResolveException is
thrown.extensionId - the extension identifierExtensionNotFoundException - when the extension does not exist in the repositoryResolveException - failed to find extension in the repositorypublic Extension resolve(ExtensionDependency extensionDependency) throws ResolveException
ExtensionRepositoryResolveException is
thrown.extensionDependency - the target extension as a dependencyExtensionNotFoundException - when the dependency does not match any extension in the repositoryResolveException - failed to find extension in the repositorypublic IterableResult<Version> resolveVersions(String id, int offset, int nb) throws ResolveException
ExtensionRepositoryid - the id of the extensions for which to return versionsoffset - the offset from where to start returning versionsnb - the maximum number of versions to returnExtensionNotFoundException - when the extension does not exist in the repositoryResolveException - fail to find extension for provided idpublic boolean isFilterable()
public boolean isSortable()
public IterableResult<Extension> search(ExtensionQuery inputQuery) throws SearchException
AdvancedSearchableinputQuery - the querySearchException - error when trying to search provided queryCopyright © 2004–2017 XWiki. All rights reserved.