@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 |
pagedSearchWithNXQL(String nxql,
Filter filter,
int max)
Performs an NXQL search with limit for the given query.
|
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 String getDocLocation(DocumentModel doc)
Copyright © 2012 Nuxeo SA. All Rights Reserved.