com.fatwire.gst.foundation.wra.navigation
Class WraNavigationService

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

public class WraNavigationService
extends AbstractNavigationService
implements NavigationService

Author:
Dolf Dijkstra

Field Summary
protected  AliasCoreFieldDao aliasDao
          Local instance of the AliasCoreFieldDao.
protected  com.fatwire.mda.DimensionFilterInstance dimensionFilter
           
 String GST_ALIAS_TYPE
          Constant containing the asset type of the GST Alias asset.
static String NAVBAR_LINK
          Name of the page subtype indicating that this page is a Link, meaning that the content is in the unnamed association
static String NAVBAR_NAME
          Name of the page subtype indicating that this page is NOT rendered on the site but is instead merely used to group navigation components on the site.
 
Fields inherited from class com.fatwire.gst.foundation.navigation.support.AbstractNavigationService
assetTemplate, ics, linkLabelAttribute, pathAttribute
 
Constructor Summary
WraNavigationService(COM.FutureTense.Interfaces.ICS ics, TemplateAssetAccess assetTemplate, AliasCoreFieldDao aliasDao, com.fatwire.mda.DimensionFilterInstance dimensionFilter, Date previewDate)
           
 
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
protected  boolean isGstAlias(com.fatwire.assetapi.data.AssetId id)
          Return true if the asset type is a GSTAlias asset type.
 
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

NAVBAR_NAME

public static final String NAVBAR_NAME
Name of the page subtype indicating that this page is NOT rendered on the site but is instead merely used to group navigation components on the site.

See Also:
Constant Field Values

NAVBAR_LINK

public static final String NAVBAR_LINK
Name of the page subtype indicating that this page is a Link, meaning that the content is in the unnamed association

See Also:
Constant Field Values

GST_ALIAS_TYPE

public final String GST_ALIAS_TYPE
Constant containing the asset type of the GST Alias asset.

See Also:
Constant Field Values

aliasDao

protected final AliasCoreFieldDao aliasDao
Local instance of the AliasCoreFieldDao.


dimensionFilter

protected final com.fatwire.mda.DimensionFilterInstance dimensionFilter
Constructor Detail

WraNavigationService

public WraNavigationService(COM.FutureTense.Interfaces.ICS ics,
                            TemplateAssetAccess assetTemplate,
                            AliasCoreFieldDao aliasDao,
                            com.fatwire.mda.DimensionFilterInstance dimensionFilter,
                            Date previewDate)
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

isGstAlias

protected boolean isGstAlias(com.fatwire.assetapi.data.AssetId id)
Return true if the asset type is a GSTAlias asset type. May be overridden if customers are attempting to retrofit this class for alias-like functionality that is not implemented by the GSTAlias asset type.

Parameters:
id - asset for which a link is required
Returns:
true if the asset is an alias, false if it is a web-referenceable asset


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