|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nuxeo.ecm.webapp.search.SearchBusinessDelegate
@Name(value="searchDelegate") @Scope(value=SESSION) public class SearchBusinessDelegate
This business delegate is available on session instance as a Seam component and offers services to different action beans (like search action bean).
It delegates the calls to the server side and insure consistency over multiple independent calls.
Constructor Summary | |
---|---|
SearchBusinessDelegate()
|
Method Summary | |
---|---|
java.lang.String |
getDocLocation(DocumentModel doc)
Creates a logical path for the given DocumentModel. |
DocumentModelIterator |
pagedSearchForText(java.lang.String keywords,
Filter filter,
int pageSize)
Searches the repository by the given keywords. |
DocumentModelIterator |
pagedSearchWithNXQL(java.lang.String nxql,
Filter filter,
int max)
Performs an NXQL search with limit for the given query. |
DocumentModelList |
searchForText(java.lang.String keywords)
Searches the repository by the given keywords. |
DocumentModelList |
searchForText(java.lang.String keywords,
Filter filter)
Searches the repository by the given keywords. |
java.util.List<DocumentModel> |
searchForText(java.lang.String keywords,
Filter filter,
int maxResultsCount)
|
DocumentModelList |
searchWithNXQL(java.lang.String nxql)
|
DocumentModelList |
searchWithNXQL(java.lang.String nxql,
Filter filter)
Performs an NXQL search for the given query and filter. |
java.util.List<DocumentModel> |
searchWithNXQL(java.lang.String nxql,
Filter filter,
int max)
Performs an NXQL search with limit for the given query. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchBusinessDelegate()
Method Detail |
---|
public DocumentModelList searchWithNXQL(java.lang.String nxql) throws ClientException, SearchException
ClientException
SearchException
public DocumentModelList searchWithNXQL(java.lang.String nxql, Filter filter) throws ClientException, SearchException
ClientException
- this can be thrown further to be intercepted
SearchException
- this should be handled by the calling codepublic java.util.List<DocumentModel> searchWithNXQL(java.lang.String nxql, Filter filter, int max) throws SearchException, ClientException
ClientException
- this can be thrown further to be intercepted
SearchException
- this should be handled by the calling codepublic DocumentModelIterator pagedSearchWithNXQL(java.lang.String nxql, Filter filter, int max) throws SearchException, ClientException
ClientException
- this can be thrown further to be intercepted
SearchException
- this should be handled by the calling codepublic DocumentModelList searchForText(java.lang.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(java.lang.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(java.lang.String keywords, Filter filter, int pageSize) throws ClientException, SearchException
ClientException
SearchException
org.nuxeo.ecm.webapp.search.SearchActions#searchForText(java.lang.String)
public java.util.List<DocumentModel> searchForText(java.lang.String keywords, Filter filter, int maxResultsCount) throws SearchException, ClientException
SearchException
ClientException
public java.lang.String getDocLocation(DocumentModel doc)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |