public class FileHit extends JCRNodeHit
context, resource| Constructor and Description |
|---|
FileHit(JCRNodeWrapper node,
RenderContext context)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Returns the resource content length in bytes if applicable.
|
long |
getContentLengthKb()
Returns the resource content length in kilobytes if applicable.
|
String |
getContentType()
Returns the MIME type of the hit content, if applicable.
|
String |
getFolderPath()
Returns the folder path for this hit.
|
String |
getIconType()
Returns an icon name that corresponds to the current item.
|
String |
getLink()
Returns the URL to the hit page.
|
boolean |
isFolder()
Returns
true if this search hit represents a folder. |
addRow, getCreated, getCreatedBy, getDisplayableNode, getExcerpt, getLastModified, getLastModifiedBy, getName, getPath, getProperties, getRows, getTitle, getType, getUsages, setExcerpt, setUsageFilterSitesequals, getContext, getLinkTemplateType, getQueryParameter, getRawHit, getScore, hashCode, setLinkTemplateType, setQueryParameter, setScore, toStringpublic FileHit(JCRNodeWrapper node, RenderContext context)
node - search result item to be wrappedcontext - public String getFolderPath()
public String getIconType()
applicationcontext-basejahiaconfig.xml file.getIconType in class JCRNodeHitpublic String getLink()
HitgetLink in interface Hit<JCRNodeWrapper>getLink in class JCRNodeHitpublic long getContentLength()
public long getContentLengthKb()
public String getContentType()
HitgetContentType in interface Hit<JCRNodeWrapper>getContentType in class JCRNodeHitpublic boolean isFolder()
true if this search hit represents a folder.true if this search hit represents a folderCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.