com.liferay.portal.kernel.search
Class BaseOpenSearchImpl
java.lang.Object
com.liferay.portal.kernel.search.BaseOpenSearchImpl
- All Implemented Interfaces:
- OpenSearch
- Direct Known Subclasses:
- HitsOpenSearchImpl, PortalOpenSearchImpl
public abstract class BaseOpenSearchImpl
- extends Object
- implements OpenSearch
Method Summary |
protected void |
addSearchResult(Element root,
long groupId,
long scopeGroupId,
String entryClassName,
long entryClassPK,
String title,
String link,
Date updated,
String summary,
double score,
String format)
|
protected void |
addSearchResult(Element root,
long groupId,
long scopeGroupId,
String entryClassName,
long entryClassPK,
String title,
String link,
Date updated,
String summary,
String[] tags,
double ratings,
double score,
String format)
|
protected void |
addSearchResultAtom(Element root,
long groupId,
long scopeGroupId,
String entryClassName,
long entryClassPK,
String title,
String link,
Date updated,
String summary,
String[] tags,
double ratings,
double score)
|
protected void |
addSearchResultRSS(Element root,
long groupId,
long scopeGroupId,
String entryClassName,
long entryClassPK,
String title,
String link,
Date updated,
String summary,
String[] tags,
double ratings,
double score)
|
protected Object[] |
addSearchResults(String[] queryTerms,
String keywords,
int startPage,
int itemsPerPage,
int total,
int start,
String title,
String searchPath,
String format,
ThemeDisplay themeDisplay)
|
protected Object[] |
addSearchResults(String keywords,
int startPage,
int itemsPerPage,
int total,
int start,
String title,
String searchPath,
String format,
ThemeDisplay themeDisplay)
Deprecated. As of 6.1.0 |
protected Object[] |
addSearchResultsAtom(Document doc,
String[] queryTerms,
String keywords,
int startPage,
int itemsPerPage,
int total,
int start,
int totalPages,
int previousPage,
int nextPage,
String title,
String searchPath,
ThemeDisplay themeDisplay)
|
protected Object[] |
addSearchResultsRSS(Document doc,
String[] queryTerms,
String keywords,
int startPage,
int itemsPerPage,
int total,
int start,
int totalPages,
int previousPage,
int nextPage,
String title,
String searchPath,
ThemeDisplay themeDisplay)
|
protected PortletURL |
getPortletURL(javax.servlet.http.HttpServletRequest request,
String portletId)
|
protected PortletURL |
getPortletURL(javax.servlet.http.HttpServletRequest request,
String portletId,
long scopeGroupId)
|
boolean |
isEnabled()
|
abstract String |
search(javax.servlet.http.HttpServletRequest request,
long groupId,
long userId,
String keywords,
int startPage,
int itemsPerPage,
String format)
|
String |
search(javax.servlet.http.HttpServletRequest request,
long userId,
String keywords,
int startPage,
int itemsPerPage,
String format)
|
String |
search(javax.servlet.http.HttpServletRequest request,
String url)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseOpenSearchImpl
public BaseOpenSearchImpl()
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface OpenSearch
search
public abstract String search(javax.servlet.http.HttpServletRequest request,
long groupId,
long userId,
String keywords,
int startPage,
int itemsPerPage,
String format)
throws SearchException
- Specified by:
search
in interface OpenSearch
- Throws:
SearchException
search
public String search(javax.servlet.http.HttpServletRequest request,
long userId,
String keywords,
int startPage,
int itemsPerPage,
String format)
throws SearchException
- Specified by:
search
in interface OpenSearch
- Throws:
SearchException
search
public String search(javax.servlet.http.HttpServletRequest request,
String url)
throws SearchException
- Specified by:
search
in interface OpenSearch
- Throws:
SearchException
addSearchResult
protected void addSearchResult(Element root,
long groupId,
long scopeGroupId,
String entryClassName,
long entryClassPK,
String title,
String link,
Date updated,
String summary,
double score,
String format)
addSearchResult
protected void addSearchResult(Element root,
long groupId,
long scopeGroupId,
String entryClassName,
long entryClassPK,
String title,
String link,
Date updated,
String summary,
String[] tags,
double ratings,
double score,
String format)
addSearchResultAtom
protected void addSearchResultAtom(Element root,
long groupId,
long scopeGroupId,
String entryClassName,
long entryClassPK,
String title,
String link,
Date updated,
String summary,
String[] tags,
double ratings,
double score)
addSearchResultRSS
protected void addSearchResultRSS(Element root,
long groupId,
long scopeGroupId,
String entryClassName,
long entryClassPK,
String title,
String link,
Date updated,
String summary,
String[] tags,
double ratings,
double score)
addSearchResults
protected Object[] addSearchResults(String keywords,
int startPage,
int itemsPerPage,
int total,
int start,
String title,
String searchPath,
String format,
ThemeDisplay themeDisplay)
- Deprecated. As of 6.1.0
addSearchResults
protected Object[] addSearchResults(String[] queryTerms,
String keywords,
int startPage,
int itemsPerPage,
int total,
int start,
String title,
String searchPath,
String format,
ThemeDisplay themeDisplay)
addSearchResultsAtom
protected Object[] addSearchResultsAtom(Document doc,
String[] queryTerms,
String keywords,
int startPage,
int itemsPerPage,
int total,
int start,
int totalPages,
int previousPage,
int nextPage,
String title,
String searchPath,
ThemeDisplay themeDisplay)
addSearchResultsRSS
protected Object[] addSearchResultsRSS(Document doc,
String[] queryTerms,
String keywords,
int startPage,
int itemsPerPage,
int total,
int start,
int totalPages,
int previousPage,
int nextPage,
String title,
String searchPath,
ThemeDisplay themeDisplay)
getPortletURL
protected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request,
String portletId)
throws Exception
- Throws:
Exception
getPortletURL
protected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request,
String portletId,
long scopeGroupId)
throws Exception
- Throws:
Exception