org.hippoecm.hst.content.beans.standard
Class HippoResource
java.lang.Object
org.hippoecm.hst.content.beans.standard.HippoItem
org.hippoecm.hst.content.beans.standard.HippoResource
- All Implemented Interfaces:
- Comparable<HippoBean>, ObjectConverterAware, NodeAware, HippoBean, HippoResourceBean
- Direct Known Subclasses:
- HippoGalleryImage
@Node(jcrType="hippo:resource")
public class HippoResource
- extends HippoItem
- implements HippoResourceBean
Bean mapping class for the 'hippo:resource' document type
Methods inherited from class org.hippoecm.hst.content.beans.standard.HippoItem |
attach, compareTo, detach, equalCompare, equals, getAvailableTranslationsBean, getBean, getBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getContextualBean, getContextualParentBean, getEqualComparator, getLinkedBean, getLinkedBeans, getLocalizedName, getName, getNode, getObjectConverter, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, hashCode, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isLeaf, isSelf, setNode, setObjectConverter |
Methods inherited from interface org.hippoecm.hst.content.beans.standard.HippoBean |
equalCompare, getAvailableTranslationsBean, getBean, getBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getContextualBean, getContextualParentBean, getEqualComparator, getLinkedBean, getLinkedBeans, getLocalizedName, getName, getNode, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isLeaf, isSelf |
Methods inherited from interface org.hippoecm.hst.content.beans.NodeAware |
setNode |
HippoResource
public HippoResource()
getMimeType
public String getMimeType()
- Description copied from interface:
HippoResourceBean
- Get the mime type of this resource.
- Specified by:
getMimeType
in interface HippoResourceBean
- Returns:
- the mime type of this resource
getLengthKB
public BigDecimal getLengthKB()
- Description copied from interface:
HippoResourceBean
- Return size in kilobytes
- Specified by:
getLengthKB
in interface HippoResourceBean
- Returns:
- kilobytes
getLengthMB
public BigDecimal getLengthMB()
- Description copied from interface:
HippoResourceBean
- Return size in kilobytes
- Specified by:
getLengthMB
in interface HippoResourceBean
- Returns:
- megabytes
getLength
public long getLength()
- Specified by:
getLength
in interface HippoResourceBean
- Returns:
- the number of bytes of binary stored in this resource
getLastModified
public Calendar getLastModified()
- Specified by:
getLastModified
in interface HippoResourceBean
- Returns:
- the last modified date of this resource and
null
if there is no last modified (should never happen though)
Copyright © 2008-2012 Hippo. All Rights Reserved.