@Node(jcrType="hippo:document") public class HippoDocument extends HippoItem implements HippoDocumentBean
HippoItem.ComparatorMap
comparePath, detached, localizedName, name, node, objectConverter, path, valueProvider
Constructor and Description |
---|
HippoDocument() |
Modifier and Type | Method and Description |
---|---|
void |
attach(javax.jcr.Session session)
Try to attach the jcr Node again with this session.
|
void |
detach()
Detach the jcr Node.
|
<T extends HippoBean> |
getAvailableTranslations(Class<T> beanMappingClass) |
<T extends HippoBean> |
getAvailableTranslationsBean(Class<T> beanMappingClass)
Deprecated.
since 2.26.01 : Use
getAvailableTranslations(Class) instead |
String |
getCanonicalHandlePath()
Returns the jcr path of the backing canonical handle jcr node or
null when |
String |
getCanonicalHandleUUID()
Returns the jcr uuid of the backing canonical handle jcr node or
null when |
<T extends HippoCompoundBean> |
getHippoCompound(String relPath,
Class<T> beanMappingClass) |
HippoHtml |
getHippoHtml(String relPath) |
Locale |
getLocale()
Returns the
Locale for content bean. |
String |
getLocaleString()
Return string expression of the locale for content bean.
|
compareTo, equalCompare, equals, getAvailableTranslations, getAvailableTranslationsBean, getBean, getBean, getCanonicalBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getComparePath, getContextualBean, getContextualParentBean, getEqualComparator, getIdentifier, getLinkedBean, getLinkedBeans, getLocalizedName, getName, getNode, getObjectConverter, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, hashCode, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isLeaf, isSelf, setComparePath, setIdentifier, setLocalizedName, setName, setNode, setObjectConverter, setPath
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
equalCompare, getAvailableTranslations, getAvailableTranslationsBean, getBean, getBean, getCanonicalBean, 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
getIdentifier, setIdentifier
getObjectConverter, setObjectConverter
compareTo
public HippoHtml getHippoHtml(String relPath)
relPath
- HippoHtml
or null
if no node exists as relPath or no node of type "hippostd:html"public <T extends HippoCompoundBean> T getHippoCompound(String relPath, Class<T> beanMappingClass)
T
- relPath
- beanMappingClass
- HippoCompoundBean
at relPath
if there is a compound of type beanMappingClass
and null
otherwisepublic String getCanonicalHandleUUID()
HippoDocumentBean
null
when
getCanonicalHandleUUID
in interface HippoDocumentBean
null
HippoBean.getCanonicalUUID()
public String getCanonicalHandlePath()
HippoDocumentBean
null
when
getCanonicalHandlePath
in interface HippoDocumentBean
null
HippoBean.getCanonicalPath()
public String getLocaleString()
HippoTranslated
null
is returnedgetLocaleString
in interface HippoTranslated
null
when missingpublic Locale getLocale()
HippoTranslated
getLocale
in interface HippoTranslated
Locale
for content bean and null
when missing@Deprecated public <T extends HippoBean> HippoAvailableTranslationsBean<T> getAvailableTranslationsBean(Class<T> beanMappingClass)
getAvailableTranslations(Class)
insteadgetAvailableTranslationsBean
in interface HippoDocumentBean
public <T extends HippoBean> HippoAvailableTranslationsBean<T> getAvailableTranslations(Class<T> beanMappingClass)
getAvailableTranslations
in interface HippoDocumentBean
beanMappingClass
- only return translations of type beanMappingClass
HippoAvailableTranslationsBean
where the translations must be of type beanMappingClass
. This method never returns null
public void detach()
HippoItem
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.