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 request,
String portletId,
long scopeGroupId) |
protected PortletURL |
getPortletURL(javax.servlet.http.HttpServletRequest request,
String portletId) |
protected PortletURL |
getPortletURL(javax.servlet.http.HttpServletRequest request,
String portletId,
long scopeGroupId) |
protected PortletURL |
getPortletURL(javax.servlet.http.HttpServletRequest request,
String className,
PortletProvider.Action action,
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) |
public BaseOpenSearchImpl()
public BaseOpenSearchImpl(String openSearchURL, String openSearchDescriptionURL)
public String getClassName()
getClassName
in interface OpenSearch
public boolean isEnabled()
isEnabled
in interface OpenSearch
public abstract String search(javax.servlet.http.HttpServletRequest request, long groupId, long userId, String keywords, int startPage, int itemsPerPage, String format) throws SearchException
search
in interface OpenSearch
SearchException
public String search(javax.servlet.http.HttpServletRequest request, long userId, String keywords, int startPage, int itemsPerPage, String format) throws SearchException
search
in interface OpenSearch
SearchException
public String search(javax.servlet.http.HttpServletRequest request, String url) throws SearchException
search
in interface OpenSearch
SearchException
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)
protected String getOpenSearchDescriptionURL(String searchPath, ThemeDisplay themeDisplay)
protected String getOpenSearchURL(String searchPath, ThemeDisplay themeDisplay)
protected long getPlid(javax.servlet.http.HttpServletRequest request, String portletId, long scopeGroupId) throws Exception
Exception
protected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request, String portletId) throws Exception
Exception
protected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request, String portletId, long scopeGroupId) throws Exception
Exception
protected PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request, String className, PortletProvider.Action action, long scopeGroupId) throws Exception
Exception