|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.templatingkit.search.SearchResultItem
public class SearchResultItem
Search Result Item Bean implementation. Used by STK SearchResultModel.
FIXME: Should be refactored to use only Node and Property.
Missing core implementation: Utility to get a collection of filtered properties (Primitive and Binary) of
a Node and Node Chield.
See DefaultContent
.getNodeDataCollection()
.getChildren()
Field Summary | |
---|---|
protected int |
chars
Number of chars to include in result. |
protected int |
maxSnippets
Maximum number of snippets to include in result. |
protected String |
query
|
Constructor Summary | |
---|---|
SearchResultItem(javax.jcr.Node node,
String query,
String title,
String author,
String category,
Calendar date,
String link)
|
|
SearchResultItem(javax.jcr.Node node,
String query,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
FIXME usage of deprecated classes: ContentUtil . |
Method Summary | |
---|---|
String |
getAuthor()
|
String |
getCategory()
|
Calendar |
getDate()
|
String |
getFormattedText()
Deprecated. since stk1.1 |
String |
getLink()
|
int |
getMaxSnippets()
|
javax.jcr.Node |
getNode()
|
String |
getSnippets()
|
String |
getText()
|
String |
getTitle()
|
protected void |
highlightSnippet(List<String> snippetList,
info.magnolia.cms.core.NodeData property)
|
protected boolean |
processNodeDatas(int numberOfSnippets,
StringBuffer snippets,
info.magnolia.cms.core.Content paragraph)
FIXME usage of deprecated classes: ContentUtil . |
void |
setMaxSnippets(int maxSnippets)
|
protected boolean |
skipProperty(String name,
String resultString,
String searchTerm)
|
protected String |
stripHtmlTags(String resultString)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int chars
protected int maxSnippets
protected String query
Constructor Detail |
---|
public SearchResultItem(javax.jcr.Node node, String query, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
ContentUtil
.
To remove when core has implemented I18nContentSupport for Node
public SearchResultItem(javax.jcr.Node node, String query, String title, String author, String category, Calendar date, String link)
Method Detail |
---|
public Calendar getDate()
public String getAuthor()
public String getCategory()
public String getTitle()
public String getText()
public String getFormattedText()
public String getLink()
public javax.jcr.Node getNode()
public String getSnippets()
public int getMaxSnippets()
public void setMaxSnippets(int maxSnippets)
protected boolean processNodeDatas(int numberOfSnippets, StringBuffer snippets, info.magnolia.cms.core.Content paragraph)
ContentUtil
.
To remove when core has implemented getNodeDataCollection() for Node
protected void highlightSnippet(List<String> snippetList, info.magnolia.cms.core.NodeData property)
protected boolean skipProperty(String name, String resultString, String searchTerm)
protected String stripHtmlTags(String resultString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |