com.fatwire.gst.foundation.navigation.support
Class SimpleNavigationHelper

java.lang.Object
  extended by com.fatwire.gst.foundation.navigation.support.AbstractNavigationService
      extended by com.fatwire.gst.foundation.navigation.support.SimpleNavigationHelper
All Implemented Interfaces:
NavigationService

public class SimpleNavigationHelper
extends AbstractNavigationService
implements NavigationService

To retrieve the Navigation Bar data.

Since:
August 31,2012
Author:
Dolf Dijkstra

Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class com.fatwire.gst.foundation.navigation.support.AbstractNavigationService
assetTemplate, ics, linkLabelAttribute, pathAttribute
 
Constructor Summary
SimpleNavigationHelper(COM.FutureTense.Interfaces.ICS ics)
          Constructor.
SimpleNavigationHelper(COM.FutureTense.Interfaces.ICS ics, TemplateAssetAccess assetTemplate)
           
SimpleNavigationHelper(COM.FutureTense.Interfaces.ICS ics, TemplateAssetAccess assetTemplate, String linkLabelAttribute, String pathAttribute)
           
 
Method Summary
protected  NavigationNode getNode(Row row, int level, int depth, String linkAttribute)
           
protected  Collection<NavigationNode> getNodeChildren(long nodeId, int level, int depth, String linkAttribute)
          List all the child NavigationNode at this SitePlanTree nodeId.
protected  String getUrl(TemplateAsset asset)
          Builds up a URI for this asset, using the pathAttribute and the template field of the asset
 
Methods inherited from class com.fatwire.gst.foundation.navigation.support.AbstractNavigationService
getLinkLabelAttribute, getNodeByName, getNodeByName, getNodeByName, getNodeByName, getNodeByQuery, getPathAttribute, getRootNodesForSite, getRootNodesForSite, getRootNodesForSite, getRootNodesForSite, setLinkLabelAttribute, setPathAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.fatwire.gst.foundation.navigation.NavigationService
getNodeByName, getNodeByName, getNodeByName, getNodeByName, getNodeByQuery, getRootNodesForSite, getRootNodesForSite, getRootNodesForSite
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

SimpleNavigationHelper

public SimpleNavigationHelper(COM.FutureTense.Interfaces.ICS ics)
Constructor.

Parameters:
ics - object

SimpleNavigationHelper

public SimpleNavigationHelper(COM.FutureTense.Interfaces.ICS ics,
                              TemplateAssetAccess assetTemplate)
Parameters:
ics -
assetTemplate -

SimpleNavigationHelper

public SimpleNavigationHelper(COM.FutureTense.Interfaces.ICS ics,
                              TemplateAssetAccess assetTemplate,
                              String linkLabelAttribute,
                              String pathAttribute)
Parameters:
ics -
assetTemplate -
linkLabelAttribute -
pathAttribute -
Method Detail

getNode

protected NavigationNode getNode(Row row,
                                 int level,
                                 int depth,
                                 String linkAttribute)
Specified by:
getNode in class AbstractNavigationService
Parameters:
row - the resultlist containing nid/oid/otype
level - the current level
depth - the maximum depth
linkAttribute - the attribute for the link text.
Returns:
the NavigationNode

getNodeChildren

protected Collection<NavigationNode> getNodeChildren(long nodeId,
                                                     int level,
                                                     int depth,
                                                     String linkAttribute)
Description copied from class: AbstractNavigationService
List all the child NavigationNode at this SitePlanTree nodeId.

Specified by:
getNodeChildren in class AbstractNavigationService
Parameters:
nodeId - the nodeId from the SitePlanTree
level - the tree level depth
depth - the maximum depth
linkAttribute - the attribute to use for the link text
Returns:

getUrl

protected String getUrl(TemplateAsset asset)
Builds up a URI for this asset, using the pathAttribute and the template field of the asset

Parameters:
asset -
Returns:
the uri, xml escaped


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.