Package com.liferay.portal.kernel.search
Class BaseOpenSearchImpl
Object
com.liferay.portal.kernel.search.BaseOpenSearchImpl
- All Implemented Interfaces:
OpenSearch
- Direct Known Subclasses:
HitsOpenSearchImpl
- Author:
- Charles May, Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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[]
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 String
getOpenSearchDescriptionURL
(String searchPath, ThemeDisplay themeDisplay) protected String
getOpenSearchURL
(String searchPath, ThemeDisplay themeDisplay) protected long
getPlid
(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, long scopeGroupId) protected PortletURL
getPortletURL
(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) protected PortletURL
getPortletURL
(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, long scopeGroupId) protected PortletURL
getPortletURL
(javax.servlet.http.HttpServletRequest httpServletRequest, String className, PortletProvider.Action action, long scopeGroupId) boolean
abstract String
search
(javax.servlet.http.HttpServletRequest httpServletRequest, long groupId, long userId, String keywords, int startPage, int itemsPerPage, String format) search
(javax.servlet.http.HttpServletRequest httpServletRequest, long userId, String keywords, int startPage, int itemsPerPage, String format)
-
Constructor Details
-
BaseOpenSearchImpl
public BaseOpenSearchImpl() -
BaseOpenSearchImpl
-
-
Method Details
-
getClassName
- Specified by:
getClassName
in interfaceOpenSearch
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceOpenSearch
-
search
public abstract String search(javax.servlet.http.HttpServletRequest httpServletRequest, long groupId, long userId, String keywords, int startPage, int itemsPerPage, String format) throws SearchException - Specified by:
search
in interfaceOpenSearch
- Throws:
SearchException
-
search
public String search(javax.servlet.http.HttpServletRequest httpServletRequest, long userId, String keywords, int startPage, int itemsPerPage, String format) throws SearchException - Specified by:
search
in interfaceOpenSearch
- Throws:
SearchException
-
search
public String search(javax.servlet.http.HttpServletRequest httpServletRequest, String url) throws SearchException - Specified by:
search
in interfaceOpenSearch
- Throws:
SearchException
-
addSearchResult
-
addSearchResult
-
addSearchResultAtom
-
addSearchResultRSS
-
addSearchResults
-
addSearchResultsAtom
-
addSearchResultsRSS
-
getOpenSearchDescriptionURL
-
getOpenSearchURL
-
getPlid
protected long getPlid(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, long scopeGroupId) throws Exception - Throws:
Exception
-
getPortletURL
protected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws Exception - Throws:
Exception
-
getPortletURL
protected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, long scopeGroupId) throws Exception - Throws:
Exception
-
getPortletURL
protected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, String className, PortletProvider.Action action, long scopeGroupId) throws Exception - Throws:
Exception
-