org.hippoecm.hst.content.beans.standard
Class HippoResource

java.lang.Object
  extended by org.hippoecm.hst.content.beans.standard.HippoItem
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.hippoecm.hst.content.beans.standard.HippoItem
HippoItem.ComparatorMap
 
Field Summary
 
Fields inherited from class org.hippoecm.hst.content.beans.standard.HippoItem
comparePath, detached, node, objectConverter, valueProvider
 
Constructor Summary
HippoResource()
           
 
Method Summary
 Calendar getLastModified()
           
 long getLength()
           
 BigDecimal getLengthKB()
          Return size in kilobytes
 BigDecimal getLengthMB()
          Return size in kilobytes
 String getMimeType()
          Get the mime type of this resource.
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
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
 
Methods inherited from interface org.hippoecm.hst.content.beans.manager.ObjectConverterAware
getObjectConverter, setObjectConverter
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

HippoResource

public HippoResource()
Method Detail

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.