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

java.lang.Object
  extended by com.fatwire.gst.foundation.wra.navigation.AbstractNavigationHelper
Direct Known Subclasses:
NavigationHelper2

Deprecated. replaced with NavigationService

public abstract class AbstractNavigationHelper
extends Object

Author:
Dolf Dijkstra

Field Summary
protected  AliasCoreFieldDao aliasDao
          Deprecated. Local instance of the AliasCoreFieldDao.
protected  Date assetEffectiveDate
          Deprecated. Effective date for the purposes of startdate/enddate comparisons for an asset.
protected  TemplateAssetAccess assetTemplate
          Deprecated.  
 String GST_ALIAS_TYPE
          Deprecated. Constant containing the asset type of the GST Alias asset.
protected  COM.FutureTense.Interfaces.ICS ics
          Deprecated. ICS context
protected static org.apache.commons.logging.Log LOG
          Deprecated. Log file
static String NAVBAR_LINK
          Deprecated. 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
          Deprecated. 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.
protected  WraCoreFieldDao wraDao
          Deprecated. Local instance of the WraCoreFieldDao, pre-instantiated and ready to go
 
Constructor Summary
AbstractNavigationHelper(COM.FutureTense.Interfaces.ICS ics)
          Deprecated.  
AbstractNavigationHelper(COM.FutureTense.Interfaces.ICS ics, TemplateAssetAccess assetTemplate, WraCoreFieldDao wraDao, AliasCoreFieldDao aliasDao)
          Deprecated. Constructor with all the dependencies listed.
 
Method Summary
 long findP(String site_name, com.fatwire.assetapi.data.AssetId wraAssetId)
          Deprecated. Locate the page that contains the specified Web-Referenceable Asset.
 NavigationNode getSitePlan(com.fatwire.assetapi.data.AssetId pageid)
          Deprecated. Get the NavNode for the current page with unlimited depth.
 NavigationNode getSitePlan(int depth, com.fatwire.assetapi.data.AssetId pageid)
          Deprecated. Retrieves the NavNode for the given Page with the provided id.
 NavigationNode getSitePlan(int depth, com.fatwire.assetapi.data.AssetId pageid, com.fatwire.mda.DimensionFilterInstance dimensionFilter)
          Deprecated. Retrieves the NavNode for the given Page with the provided id.
protected abstract  NavigationNode getSitePlan(int depth, com.fatwire.assetapi.data.AssetId pageId, int level, com.fatwire.mda.DimensionFilterInstance dimensionFilter)
          Deprecated.  
 NavigationNode getSitePlan(String pageid)
          Deprecated. Retrieves the NavNode for the given Page with the provided id.
 NavigationNode getSitePlanByPage(int depth, String name)
          Deprecated. Retrieves the NavNode for the given Page with the provided name.
 NavigationNode getSitePlanByPage(int depth, String name, com.fatwire.mda.DimensionFilterInstance dimensionFilter)
          Deprecated. Retrieves the NavNode for the given Page with the provided name.
 NavigationNode getSitePlanByPage(int depth, String name, String sitename)
          Deprecated. Retrieves the NavNode for the given Page with the provided name.
 NavigationNode getSitePlanByPage(int depth, String name, String sitename, com.fatwire.mda.DimensionFilterInstance dimensionFilter)
          Deprecated. Retrieves the NavNode for the given Page with the provided name.
 NavigationNode getSitePlanByPage(String name)
          Deprecated.  
protected  boolean isGstAlias(com.fatwire.assetapi.data.AssetId id)
          Deprecated. Return true if the asset type is a GSTAlias asset type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ics

protected final COM.FutureTense.Interfaces.ICS ics
Deprecated. 
ICS context


assetTemplate

protected final TemplateAssetAccess assetTemplate
Deprecated. 

wraDao

protected final WraCoreFieldDao wraDao
Deprecated. 
Local instance of the WraCoreFieldDao, pre-instantiated and ready to go


aliasDao

protected final AliasCoreFieldDao aliasDao
Deprecated. 
Local instance of the AliasCoreFieldDao.


LOG

protected static final org.apache.commons.logging.Log LOG
Deprecated. 
Log file


assetEffectiveDate

protected final Date assetEffectiveDate
Deprecated. 
Effective date for the purposes of startdate/enddate comparisons for an asset.


NAVBAR_NAME

public static final String NAVBAR_NAME
Deprecated. 
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
Deprecated. 
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
Deprecated. 
Constant containing the asset type of the GST Alias asset.

See Also:
Constant Field Values
Constructor Detail

AbstractNavigationHelper

public AbstractNavigationHelper(COM.FutureTense.Interfaces.ICS ics)
Deprecated. 

AbstractNavigationHelper

public AbstractNavigationHelper(COM.FutureTense.Interfaces.ICS ics,
                                TemplateAssetAccess assetTemplate,
                                WraCoreFieldDao wraDao,
                                AliasCoreFieldDao aliasDao)
Deprecated. 
Constructor with all the dependencies listed. Initializes assetEffectiveDate to null.

Parameters:
ics -
assetTemplate -
wraDao -
aliasDao -
Method Detail

getSitePlan

protected abstract NavigationNode getSitePlan(int depth,
                                              com.fatwire.assetapi.data.AssetId pageId,
                                              int level,
                                              com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Deprecated. 

getSitePlanByPage

public NavigationNode getSitePlanByPage(String name)
Deprecated. 
Parameters:
name - the name of the Page asset
Returns:
NavNode for the Page with the name

getSitePlanByPage

public NavigationNode getSitePlanByPage(int depth,
                                        String name)
Deprecated. 
Retrieves the NavNode for the given Page with the provided name.

Parameters:
depth - the maximum depth to retrieve, -1 for no limit.
name - the name of the Page asset
Returns:
NavNode for the Page with the name

getSitePlanByPage

public NavigationNode getSitePlanByPage(int depth,
                                        String name,
                                        com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Deprecated. 
Retrieves the NavNode for the given Page with the provided name.

Parameters:
depth - the maximum depth to retrieve, -1 for no limit.
name - the name of the Page asset
dimensionFilter - in order to translate the output.
Returns:
NavNode for the Page with the name

getSitePlanByPage

public NavigationNode getSitePlanByPage(int depth,
                                        String name,
                                        String sitename)
Deprecated. 
Retrieves the NavNode for the given Page with the provided name.

Parameters:
depth - the maximum depth to retrieve, -1 for no limit.
name - the name of the Page asset
sitename - the name of the site you want the navigation for.
Returns:
NavNode for the Page with the name

getSitePlanByPage

public NavigationNode getSitePlanByPage(int depth,
                                        String name,
                                        String sitename,
                                        com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Deprecated. 
Retrieves the NavNode for the given Page with the provided name.

Parameters:
depth - the maximum depth to retrieve, -1 for no limit.
name - the name of the Page asset
sitename - the name of the site you want the navigation for.
dimensionFilter - in order to translate the output.
Returns:
NavNode for the Page with the name

getSitePlan

public NavigationNode getSitePlan(String pageid)
Deprecated. 
Retrieves the NavNode for the given Page with the provided id. The NavNode contains all the attributes necessary to create a nav bar.

Links are not populated for Navigation Placeholders, but it is often very convenient to pass a navigation placeholder into this function in order to return all children under a specific placeholder.

StartDate and EndDate are checked and invalid pages aren't added. If a Page asset is not valid, its children are not even examined.

Parameters:
pageid - the assetid of the Page asset.
Returns:
the NavNode for this page

getSitePlan

public NavigationNode getSitePlan(com.fatwire.assetapi.data.AssetId pageid)
Deprecated. 
Get the NavNode for the current page with unlimited depth.

Parameters:
pageid -
Returns:
the NavNode associated with this pageid.

getSitePlan

public NavigationNode getSitePlan(int depth,
                                  com.fatwire.assetapi.data.AssetId pageid)
Deprecated. 
Retrieves the NavNode for the given Page with the provided id.

Parameters:
depth - the maximum depth to retrieve, -1 for no limit.
pageid - the AssetId for the page
Returns:
the NavNode for this page

getSitePlan

public NavigationNode getSitePlan(int depth,
                                  com.fatwire.assetapi.data.AssetId pageid,
                                  com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Deprecated. 
Retrieves the NavNode for the given Page with the provided id.

Parameters:
depth - the maximum depth to retrieve, -1 for no limit.
pageid - the AssetId for the page
dimensionFilter - in order to translate the output.
Returns:
the NavNode for this page

isGstAlias

protected boolean isGstAlias(com.fatwire.assetapi.data.AssetId id)
Deprecated. 
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

findP

public long findP(String site_name,
                  com.fatwire.assetapi.data.AssetId wraAssetId)
Deprecated. 
Locate the page that contains the specified Web-Referenceable Asset.

A WRA is supposed to just be placed on one page (in the unnamed association block), and this method locates it. If it is not found, 0L is returned.

If multiple matches are found, a warning is logged and the first one is returned.

Parameters:
site_name - name of the site to search within
wraAssetId - the asset id of the web-referenceable asset
Returns:
page asset ID or 0L.


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