org.hippoecm.hst.content.beans.standard.facetnavigation
Class HippoFacetSubNavigation

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


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.HippoFolder
hippoDocuments, hippoFolders
 
Fields inherited from class org.hippoecm.hst.content.beans.standard.HippoItem
comparePath, detached, node, objectConverter, valueProvider
 
Constructor Summary
HippoFacetSubNavigation()
           
 
Method Summary
 List<HippoFacetSubNavigation> getAncestors()
          Returns the list of HippoFacetSubNavigation's ancestors, where the closest ancestors are last in the list
 List<HippoFacetSubNavigation> getAncestorsAndSelf()
          the list of HippoFacetSubNavigation's ancestors + this HippoFacetSubNavigation.
 KeyValue<String,String> getFacetValueCombi()
           
 String getName()
          For HippoFacetSubNavigation, the node name is the encoded facet values.
 boolean isLeaf()
          We override the isLeaf method as it is costly to check whether the HippoFacetSubNavigation has child nodes.
 
Methods inherited from class org.hippoecm.hst.content.beans.standard.facetnavigation.HippoFacetNavigation
getChildCountsCombined, getCount, getDocuments, getFolders, getResultSet, getRootFacetNavigationBean
 
Methods inherited from class org.hippoecm.hst.content.beans.standard.HippoFolder
getDocumentIterator, getDocuments, getDocuments, getDocuments, getDocuments, getDocumentSize, getFolders, getLocale, getLocaleString
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hippoecm.hst.content.beans.standard.HippoFacetNavigationBean
getChildCountsCombined, getCount, getResultSet, getRootFacetNavigationBean
 
Methods inherited from interface org.hippoecm.hst.content.beans.standard.HippoFolderBean
getDocumentIterator, getDocuments, getDocuments, getDocuments, getDocuments, getDocuments, getDocumentSize, getFolders, getFolders
 
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
 
Methods inherited from interface org.hippoecm.hst.content.beans.manager.ObjectConverterAware
getObjectConverter, setObjectConverter
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.hippoecm.hst.content.beans.standard.HippoTranslated
getLocale, getLocaleString
 

Constructor Detail

HippoFacetSubNavigation

public HippoFacetSubNavigation()
Method Detail

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.