public class JCRNodeHit extends AbstractHit<JCRNodeWrapper>
context, resource| Constructor and Description |
|---|
JCRNodeHit(JCRNodeWrapper node,
RenderContext context)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(javax.jcr.query.Row row) |
String |
getContentType()
Returns the MIME type of the hit content, if applicable.
|
Date |
getCreated()
Returns the content creation date.
|
String |
getCreatedBy()
Returns the resource author (creator).
|
JCRNodeWrapper |
getDisplayableNode() |
String |
getExcerpt()
Returns the short description, abstract or excerpt of the hit's content.
|
String |
getIconType() |
Date |
getLastModified()
Returns the last modification date.
|
String |
getLastModifiedBy()
Returns the last contributor.
|
String |
getLink()
Returns the URL to the hit page.
|
String |
getName()
Returns the name of this file or folder.
|
String |
getPath() |
Map<String,JCRPropertyWrapper> |
getProperties() |
List<javax.jcr.query.Row> |
getRows()
Returns the row objects from the query/search linked to this hit.
|
String |
getTitle()
Returns the title text.
|
String |
getType()
Returns the hit type.
|
List<Hit> |
getUsages()
Returns the list of hits that use the current hit.
|
void |
setExcerpt(String excerpt) |
void |
setUsageFilterSites(Set<String> usageFilterSites) |
equals, getContext, getLinkTemplateType, getQueryParameter, getRawHit, getScore, hashCode, setLinkTemplateType, setQueryParameter, setScore, toStringpublic JCRNodeHit(JCRNodeWrapper node, RenderContext context)
node - search result item to be wrappedcontext - public String getContentType()
Hitpublic Date getCreated()
Hitpublic String getCreatedBy()
Hitpublic Date getLastModified()
Hitpublic String getLastModifiedBy()
Hitpublic String getLink()
Hitpublic String getPath()
public Map<String,JCRPropertyWrapper> getProperties()
public String getTitle()
Hitpublic String getName()
public String getType()
Hitpublic String getIconType()
public List<Hit> getUsages()
Hitpublic JCRNodeWrapper getDisplayableNode()
public String getExcerpt()
Hitpublic void setExcerpt(String excerpt)
public void addRow(javax.jcr.query.Row row)
public List<javax.jcr.query.Row> getRows()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.