public class PageSearchServiceConnector extends BaseSearchServiceConnector
DEFAULT_SITENAME, documentService, driveService_, NONE_NAGVIGATION, PAGE_NAGVIGATION, PORTLET_NAME, siteSearch_, sortByDate, sortByRelevancy, sortByTitle| Constructor and Description |
|---|
PageSearchServiceConnector(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
protected QueryCriteria |
createQueryCriteria(String query,
long offset,
long limit,
String sort,
String order)
creates the QueryCriteria object based on the search service
|
protected ResultNode |
filterNode(ResultNode node)
filters the node base on search type: document or file
|
protected String |
getDetails(ResultNode retNode,
org.exoplatform.commons.api.search.data.SearchContext context)
gets the detail about result node
|
protected String |
getFileType(ResultNode node)
gets the file type
|
protected String |
getImageUrl(javax.jcr.Node node)
gets the image url
|
protected String |
getPath(ResultNode node,
org.exoplatform.commons.api.search.data.SearchContext context)
returns path of node in format: "{drivename}/{relative path from drive root node}
|
protected String |
getTitleResult(ResultNode node)
gets the title of result, based on the result type
|
protected AbstractPageList<ResultNode> |
searchNodes(QueryCriteria criteria,
org.exoplatform.commons.api.search.data.SearchContext context)
searches base on the search service type
|
convertResult, fileSize, formatDate, getDate, getDriveTitle, getPreviewUrl, removeAccents, searchgetDisplayName, getSearchType, isEnable, setDisplayName, setEnable, setSearchTypeprotected QueryCriteria createQueryCriteria(String query, long offset, long limit, String sort, String order)
createQueryCriteria in class BaseSearchServiceConnectorquery - the query stringoffset - the offsetlimit - the limitsort - sort fieldorder - order byprotected AbstractPageList<ResultNode> searchNodes(QueryCriteria criteria, org.exoplatform.commons.api.search.data.SearchContext context) throws Exception
BaseSearchServiceConnectorsearchNodes in class BaseSearchServiceConnectorcriteria - the query criteriaExceptionprotected ResultNode filterNode(ResultNode node) throws javax.jcr.RepositoryException
BaseSearchServiceConnectorfilterNode in class BaseSearchServiceConnectorjavax.jcr.RepositoryExceptionprotected String getPath(ResultNode node, org.exoplatform.commons.api.search.data.SearchContext context) throws Exception
BaseSearchServiceConnectorgetPath in class BaseSearchServiceConnectornode - the nodeExceptionprotected String getFileType(ResultNode node) throws Exception
BaseSearchServiceConnectorgetFileType in class BaseSearchServiceConnectorExceptionprotected String getTitleResult(ResultNode node) throws Exception
getTitleResult in class BaseSearchServiceConnectorExceptionprotected String getImageUrl(javax.jcr.Node node)
getImageUrl in class BaseSearchServiceConnectorprotected String getDetails(ResultNode retNode, org.exoplatform.commons.api.search.data.SearchContext context) throws Exception
getDetails in class BaseSearchServiceConnectorretNode - the nodeExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.