@Name(value="searchDelegate") @Scope(value=SESSION) public class SearchBusinessDelegate extends Object implements Serializable
It delegates the calls to the server side and insure consistency over multiple independent calls.
Constructor and Description |
---|
SearchBusinessDelegate() |
Modifier and Type | Method and Description |
---|---|
String |
getDocLocation(DocumentModel doc)
Creates a logical path for the given DocumentModel.
|
DocumentModelIterator |
pagedSearchForText(String keywords,
Filter filter,
int pageSize)
Searches the repository by the given keywords.
|
DocumentModelIterator |
pagedSearchWithNXQL(String nxql,
Filter filter,
int max)
Performs an NXQL search with limit for the given query.
|
DocumentModelList |
searchForText(String keywords)
Searches the repository by the given keywords.
|
DocumentModelList |
searchForText(String keywords,
Filter filter)
Searches the repository by the given keywords.
|
List<DocumentModel> |
searchForText(String keywords,
Filter filter,
int maxResultsCount) |
DocumentModelList |
searchWithNXQL(String nxql) |
DocumentModelList |
searchWithNXQL(String nxql,
Filter filter)
Performs an NXQL search for the given query and filter.
|
List<DocumentModel> |
searchWithNXQL(String nxql,
Filter filter,
int max)
Performs an NXQL search with limit for the given query.
|
public DocumentModelList searchWithNXQL(String nxql) throws ClientException, SearchException
ClientException
SearchException
public DocumentModelList searchWithNXQL(String nxql, Filter filter) throws ClientException, SearchException
ClientException
- this can be thrown further to be interceptedSearchException
- this should be handled by the calling codepublic List<DocumentModel> searchWithNXQL(String nxql, Filter filter, int max) throws SearchException, ClientException
ClientException
- this can be thrown further to be interceptedSearchException
- this should be handled by the calling codepublic DocumentModelIterator pagedSearchWithNXQL(String nxql, Filter filter, int max) throws SearchException, ClientException
ClientException
- this can be thrown further to be interceptedSearchException
- this should be handled by the calling codepublic DocumentModelList searchForText(String keywords) throws ClientException, SearchException
The result consists of a list of DocumentModel that can be rendered to UI.
ClientException
SearchException
org.nuxeo.ecm.webapp.search.SearchActions#searchForText(String)
public DocumentModelList searchForText(String keywords, Filter filter) throws ClientException, SearchException
The result consists of a list of DocumentModel that can be rendered to UI.
ClientException
SearchException
org.nuxeo.ecm.webapp.search.SearchActions#searchForText(java.lang.String)
public DocumentModelIterator pagedSearchForText(String keywords, Filter filter, int pageSize) throws ClientException, SearchException
ClientException
SearchException
org.nuxeo.ecm.webapp.search.SearchActions#searchForText(java.lang.String)
public List<DocumentModel> searchForText(String keywords, Filter filter, int maxResultsCount) throws SearchException, ClientException
SearchException
ClientException
public String getDocLocation(DocumentModel doc)
Copyright © 2011 Nuxeo SA. All Rights Reserved.