public interface FiltersI extends Serializable
A filter can be regarded as an extension of CalDAV filters and a subset of bedework filters is indeed equivalent to those defined in the CalDAV rfc.
We can define a filter by creating an xml definition and having the create filter method parse that definition and create a filter.
We can save the xml definition and also retrieve it and create the internal form.
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String name)
Delete a filter given the name
|
GetFilterDefResponse |
get(String name)
Get a filter given the name
|
Collection<BwFilterDef> |
getAll()
Get filter definitions to which this user has access
|
SimpleFilterParser.ParseResult |
parse(BwFilterDef val)
Parse the xml definition in the given filter object
|
SimpleFilterParser.ParseResult |
parseSort(String val)
Parse the sort expression
|
int |
reindex(BwIndexer indexer)
Reindex current users entities
|
void |
save(BwFilterDef val)
Validate and persist a new filter definition
|
void |
update(BwFilterDef val)
Update a filter definition.
|
void |
validate(String val)
Validate a filter definition.
|
SimpleFilterParser.ParseResult parse(BwFilterDef val)
val - BwFilterDefvoid validate(String val) throws CalFacadeException
val - String xml filter definitionCalFacadeExceptionvoid save(BwFilterDef val) throws CalFacadeException
val - filter definitionCalFacadeException - for errrors including duplicate nameGetFilterDefResponse get(String name)
name - String internal name of filterCollection<BwFilterDef> getAll() throws CalFacadeException
CalFacadeExceptionvoid update(BwFilterDef val) throws CalFacadeException
val - filter definitionCalFacadeException - for errors including duplicate namevoid delete(String name) throws CalFacadeException
name - String name of filterCalFacadeExceptionSimpleFilterParser.ParseResult parseSort(String val)
val - String sort expressionint reindex(BwIndexer indexer) throws CalFacadeException
indexer - to use for this operationCalFacadeException - on fatal errorCopyright © 2019 Bedework. All rights reserved.