org.hippoecm.hst.content.beans.standard
Interface HippoResourceBean

All Superinterfaces:
Comparable<HippoBean>, HippoBean, NodeAware, ObjectConverterAware
All Known Subinterfaces:
HippoGalleryImageBean
All Known Implementing Classes:
HippoGalleryImage, HippoResource, MockHippoResourceBean

public interface HippoResourceBean
extends HippoBean

This is a base interface for all beans that represent a hippo resource should implement.


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 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
 

Method Detail

getMimeType

String getMimeType()
Get the mime type of this resource.

Returns:
the mime type of this resource

getLength

long getLength()
Returns:
the number of bytes of binary stored in this resource

getLengthKB

BigDecimal getLengthKB()
Return size in kilobytes

Returns:
kilobytes

getLengthMB

BigDecimal getLengthMB()
Return size in kilobytes

Returns:
megabytes

getLastModified

Calendar getLastModified()
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.