public abstract class BaseOpenSearchImpl extends Object implements OpenSearch
| Constructor and Description |
|---|
BaseOpenSearchImpl() |
BaseOpenSearchImpl(String openSearchURL,
String openSearchDescriptionURL) |
| Modifier and Type | Method and Description |
|---|---|
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[] |
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) |
String |
getClassName() |
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 |
isEnabled() |
abstract String |
search(javax.servlet.http.HttpServletRequest httpServletRequest,
long groupId,
long userId,
String keywords,
int startPage,
int itemsPerPage,
String format) |
String |
search(javax.servlet.http.HttpServletRequest httpServletRequest,
long userId,
String keywords,
int startPage,
int itemsPerPage,
String format) |
String |
search(javax.servlet.http.HttpServletRequest httpServletRequest,
String url) |
public BaseOpenSearchImpl()
public BaseOpenSearchImpl(String openSearchURL,
String openSearchDescriptionURL)
public String getClassName()
getClassName in interface OpenSearchpublic boolean isEnabled()
isEnabled in interface OpenSearchpublic abstract String search(javax.servlet.http.HttpServletRequest httpServletRequest,
long groupId,
long userId,
String keywords,
int startPage,
int itemsPerPage,
String format)
throws SearchException
search in interface OpenSearchSearchExceptionpublic String search(javax.servlet.http.HttpServletRequest httpServletRequest,
long userId,
String keywords,
int startPage,
int itemsPerPage,
String format)
throws SearchException
search in interface OpenSearchSearchExceptionpublic String search(javax.servlet.http.HttpServletRequest httpServletRequest,
String url)
throws SearchException
search in interface OpenSearchSearchExceptionprotected 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)
throws Exception
Exceptionprotected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws Exception
Exceptionprotected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, long scopeGroupId) throws Exception
Exceptionprotected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest httpServletRequest, String className, PortletProvider.Action action, long scopeGroupId) throws Exception
Exception