org.hippoecm.hst.content.beans.standard.facetnavigation
Class HippoFacetSubNavigation
java.lang.Object
org.hippoecm.hst.content.beans.standard.HippoItem
org.hippoecm.hst.content.beans.standard.HippoFolder
org.hippoecm.hst.content.beans.standard.facetnavigation.HippoFacetNavigation
org.hippoecm.hst.content.beans.standard.facetnavigation.AbstractHippoFacetChildNavigation
org.hippoecm.hst.content.beans.standard.facetnavigation.HippoFacetSubNavigation
- All Implemented Interfaces:
- Comparable<HippoBean>, ObjectConverterAware, NodeAware, HippoBean, HippoFacetChildNavigationBean, HippoFacetNavigationBean, HippoFolderBean, HippoTranslated, HippoVirtualOnlyBean
@Node(jcrType="hippofacnav:facetsubnavigation")
public class HippoFacetSubNavigation
- extends AbstractHippoFacetChildNavigation
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, getNode, getObjectConverter, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, hashCode, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, 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, getNode, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isSelf |
Methods inherited from interface org.hippoecm.hst.content.beans.NodeAware |
setNode |
HippoFacetSubNavigation
public HippoFacetSubNavigation()
getName
public String getName()
- For HippoFacetSubNavigation, the node name is the encoded facet values. To get the correct original facet value, we need
to decode the name of the node.
- Specified by:
getName
in interface HippoBean
- Overrides:
getName
in class HippoItem
- Returns:
- the node name of the backing jcr node. This method never returns
null
isLeaf
public boolean isLeaf()
- We override the isLeaf method as it is costly to check whether the HippoFacetSubNavigation has child nodes. Instead, we check
the property "hippofacnav:leaf"
- Specified by:
isLeaf
in interface HippoBean
- Overrides:
isLeaf
in class HippoFacetNavigation
- Returns:
true
when the backing jcr Node has no child nodes
getFacetValueCombi
public KeyValue<String,String> getFacetValueCombi()
getAncestorsAndSelf
public List<HippoFacetSubNavigation> getAncestorsAndSelf()
- the list of
HippoFacetSubNavigation
's ancestors + this HippoFacetSubNavigation. Also see getAncestors()
- Returns:
- the list of
HippoFacetSubNavigation
's ancestors + this HippoFacetSubNavigation
getAncestors
public List<HippoFacetSubNavigation> getAncestors()
- Returns the list of
HippoFacetSubNavigation
's ancestors, where the closest ancestors are last in the list
- Returns:
- the list of
HippoFacetSubNavigation
's ancestors or an empty list if no ancestors of this type.
Copyright © 2008-2012 Hippo. All Rights Reserved.