com.liferay.portal.search
Class BaseOpenSearchImpl

java.lang.Object
  extended by com.liferay.portal.search.BaseOpenSearchImpl
All Implemented Interfaces:
com.liferay.portal.kernel.search.OpenSearch
Direct Known Subclasses:
DirectoryOpenSearchImpl, HitsOpenSearchImpl, PortalOpenSearchImpl

public abstract class BaseOpenSearchImpl
extends java.lang.Object
implements com.liferay.portal.kernel.search.OpenSearch

View Source

Author:
Charles May, Brian Wing Shun Chan

Constructor Summary
BaseOpenSearchImpl()
           
 
Method Summary
protected  void addSearchResult(org.dom4j.Element root, java.lang.String title, java.lang.String link, java.util.Date updated, java.lang.String summary, double score)
           
protected  void addSearchResult(org.dom4j.Element root, java.lang.String title, java.lang.String link, java.util.Date updated, java.lang.String summary, java.lang.String[] tags, double ratings, double score)
           
protected  java.lang.Object[] addSearchResults(java.lang.String keywords, int startPage, int itemsPerPage, int total, int start, java.lang.String title, java.lang.String searchPath, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
protected  javax.portlet.PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request, java.lang.String portletId)
           
protected  javax.portlet.PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request, java.lang.String portletId, long groupId)
           
 boolean isEnabled()
           
 java.lang.String search(javax.servlet.http.HttpServletRequest request, java.lang.String url)
           
abstract  java.lang.String search(javax.servlet.http.HttpServletRequest request, java.lang.String keywords, int startPage, int itemsPerPage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseOpenSearchImpl

public BaseOpenSearchImpl()
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface com.liferay.portal.kernel.search.OpenSearch

search

public java.lang.String search(javax.servlet.http.HttpServletRequest request,
                               java.lang.String url)
                        throws com.liferay.portal.kernel.search.SearchException
Specified by:
search in interface com.liferay.portal.kernel.search.OpenSearch
Throws:
com.liferay.portal.kernel.search.SearchException

search

public abstract java.lang.String search(javax.servlet.http.HttpServletRequest request,
                                        java.lang.String keywords,
                                        int startPage,
                                        int itemsPerPage)
                                 throws com.liferay.portal.kernel.search.SearchException
Specified by:
search in interface com.liferay.portal.kernel.search.OpenSearch
Throws:
com.liferay.portal.kernel.search.SearchException

addSearchResult

protected void addSearchResult(org.dom4j.Element root,
                               java.lang.String title,
                               java.lang.String link,
                               java.util.Date updated,
                               java.lang.String summary,
                               double score)

addSearchResult

protected void addSearchResult(org.dom4j.Element root,
                               java.lang.String title,
                               java.lang.String link,
                               java.util.Date updated,
                               java.lang.String summary,
                               java.lang.String[] tags,
                               double ratings,
                               double score)

addSearchResults

protected java.lang.Object[] addSearchResults(java.lang.String keywords,
                                              int startPage,
                                              int itemsPerPage,
                                              int total,
                                              int start,
                                              java.lang.String title,
                                              java.lang.String searchPath,
                                              com.liferay.portal.theme.ThemeDisplay themeDisplay)

getPortletURL

protected javax.portlet.PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request,
                                                 java.lang.String portletId)
                                          throws javax.portlet.PortletModeException,
                                                 com.liferay.portal.SystemException,
                                                 javax.portlet.WindowStateException
Throws:
javax.portlet.PortletModeException
com.liferay.portal.SystemException
javax.portlet.WindowStateException

getPortletURL

protected javax.portlet.PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request,
                                                 java.lang.String portletId,
                                                 long groupId)
                                          throws javax.portlet.PortletModeException,
                                                 com.liferay.portal.SystemException,
                                                 javax.portlet.WindowStateException
Throws:
javax.portlet.PortletModeException
com.liferay.portal.SystemException
javax.portlet.WindowStateException