@Indexable(ignore=true) @Node(jcrType="hippo:mirror") public class HippoMirror extends HippoFolder implements HippoMirrorBean
HippoItem.ComparatorMap
hippoDocuments, hippoFolders
comparePath, detached, localizedName, name, node, objectConverter, path, valueProvider
Constructor and Description |
---|
HippoMirror() |
Modifier and Type | Method and Description |
---|---|
HippoBean |
getDeref()
When you want the HippoBean that this mirror is pointing to, you can use this method.
|
HippoBean |
getReferencedBean()
When you want the HippoBean that this mirror represents, you can use this method.
|
getDocumentIterator, getDocuments, getDocuments, getDocuments, getDocuments, getDocuments, getDocumentSize, getFolders, getFolders, getLocale, getLocaleString
attach, compareTo, detach, 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 HippoBean getReferencedBean()
not
pointing to a hippo:handle, just this HippoMirror
is returned.
This HippoMirror then namely represents its referencedBean already as it is a mirror, possibly with the context aware filter (livr/preview)
getReferencedBean
in interface HippoMirrorBean
HippoBean
by this mirror or null
when the linked bean cannot
be created (for example, there is no published and the current context is live)public HippoBean getDeref()
getReferencedBean()
.
Note that this might return you a handle containing both live and preview documents. You should not use this
method to get a linked item. Use getReferencedBean()
.getDeref
in interface HippoMirrorBean
HippoBean
or null
when the bean cannot be dereferencedCopyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.