Interface SearchResource
-
- All Known Implementing Classes:
DefaultItemCollection,DefaultItemResource,EventJournalResourceImpl,RootCollection,SearchResourceImpl,VersionControlledItemCollection,VersionHistoryItemCollection,VersionItemCollection,WorkspaceResourceImpl
public interface SearchResourceSearchResourcedefines METHODS required in order to handle a SEARCH request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QueryGrammerSetgetQueryGrammerSet()Returns the protected DAV:supported-method-set property which is defined mandatory by RTF 3253.MultiStatussearch(SearchInfo sInfo)Runs a search with the language and query defined in theSearchInfoobject specified and returns aMultiStatusobject listing the results.
-
-
-
Field Detail
-
METHODS
static final String METHODS
The 'SEARCH' method- See Also:
- Constant Field Values
-
-
Method Detail
-
getQueryGrammerSet
QueryGrammerSet getQueryGrammerSet()
Returns the protected DAV:supported-method-set property which is defined mandatory by RTF 3253. This method call is a shortcut forDavResource.getProperty(SearchConstants.QUERY_GRAMMER_SET).- Returns:
- the DAV:supported-query-grammer-set
- See Also:
SearchConstants.QUERY_GRAMMER_SET
-
search
MultiStatus search(SearchInfo sInfo) throws DavException
Runs a search with the language and query defined in theSearchInfoobject specified and returns aMultiStatusobject listing the results.- Parameters:
sInfo-SearchInfoelement encapsulating the SEARCH request body.- Returns:
MultiStatusobject listing the results.- Throws:
DavException
-
-