public class NavigationHelper extends Object
getSitePlan(String)
for more details.Modifier and Type | Field and Description |
---|---|
protected AliasCoreFieldDao |
aliasDao
Local instance of the AliasCoreFieldDao.
|
protected Date |
assetEffectiveDate
Effective date for the purposes of startdate/enddate comparisons for an
asset.
|
String |
GST_ALIAS_TYPE
Constant containing the asset type of the GST Alias asset.
|
protected COM.FutureTense.Interfaces.ICS |
ics
ICS context
|
protected org.apache.commons.logging.Log |
LOG
Log file
|
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.
|
protected WraCoreFieldDao |
wraDao
Local instance of the WraCoreFieldDao, pre-instantiated and ready to go
|
Constructor and Description |
---|
NavigationHelper(COM.FutureTense.Interfaces.ICS ics)
Constructor.
|
NavigationHelper(COM.FutureTense.Interfaces.ICS ics,
AssetAccessTemplate assetTemplate,
WraCoreFieldDao wraDao,
AliasCoreFieldDao aliasDao)
Constructor with all the dependencies listed.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decorateAsAlias(com.fatwire.assetapi.data.AssetId id,
NavNode node) |
protected void |
decorateAsWra(com.fatwire.assetapi.data.AssetId id,
NavNode node) |
long |
findP(String site_name,
com.fatwire.assetapi.data.AssetId wraAssetId)
Locate the page that contains the specified Web-Referenceable Asset.
|
NavNode |
getSitePlan(com.fatwire.assetapi.data.AssetId pageid)
Get the NavNode for the current page with unlimited depth.
|
NavNode |
getSitePlan(int depth,
com.fatwire.assetapi.data.AssetId pageid)
Retrieves the NavNode for the given Page with the provided id.
|
NavNode |
getSitePlan(int depth,
com.fatwire.assetapi.data.AssetId pageid,
com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Retrieves the NavNode for the given Page with the provided id.
|
NavNode |
getSitePlan(String pageid)
Retrieves the NavNode for the given Page with the provided id.
|
NavNode |
getSitePlanByPage(int depth,
String name)
Retrieves the NavNode for the given Page with the provided name.
|
NavNode |
getSitePlanByPage(int depth,
String name,
com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Retrieves the NavNode for the given Page with the provided name.
|
NavNode |
getSitePlanByPage(int depth,
String name,
String sitename)
Retrieves the NavNode for the given Page with the provided name.
|
NavNode |
getSitePlanByPage(int depth,
String name,
String sitename,
com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Retrieves the NavNode for the given Page with the provided name.
|
NavNode |
getSitePlanByPage(String name) |
protected String |
getUrlForAlias(Alias alias)
Get the URL for the alias.
|
protected String |
getUrlForWra(VanityAsset wra)
Get the URL to use for the web-referenceable asset.
|
protected boolean |
isGstAlias(com.fatwire.assetapi.data.AssetId id)
Return true if the asset type is a GSTAlias asset type.
|
protected final COM.FutureTense.Interfaces.ICS ics
protected final WraCoreFieldDao wraDao
protected final AliasCoreFieldDao aliasDao
protected final org.apache.commons.logging.Log LOG
protected final Date assetEffectiveDate
public static final String NAVBAR_NAME
public static final String NAVBAR_LINK
public final String GST_ALIAS_TYPE
public NavigationHelper(COM.FutureTense.Interfaces.ICS ics)
ics
- objectpublic NavigationHelper(COM.FutureTense.Interfaces.ICS ics, AssetAccessTemplate assetTemplate, WraCoreFieldDao wraDao, AliasCoreFieldDao aliasDao)
ics
- assetTemplate
- wraDao
- aliasDao
- public NavNode getSitePlanByPage(String name)
name
- the name of the Page assetpublic NavNode getSitePlanByPage(int depth, String name)
depth
- the maximum depth to retrieve, -1 for no limit.name
- the name of the Page assetpublic NavNode getSitePlanByPage(int depth, String name, com.fatwire.mda.DimensionFilterInstance dimensionFilter)
depth
- the maximum depth to retrieve, -1 for no limit.name
- the name of the Page assetdimensionFilter
- in order to translate the output.public NavNode getSitePlanByPage(int depth, String name, String sitename)
depth
- the maximum depth to retrieve, -1 for no limit.name
- the name of the Page assetsitename
- the name of the site you want the navigation for.public NavNode getSitePlanByPage(int depth, String name, String sitename, com.fatwire.mda.DimensionFilterInstance dimensionFilter)
depth
- the maximum depth to retrieve, -1 for no limit.name
- the name of the Page assetsitename
- the name of the site you want the navigation for.dimensionFilter
- in order to translate the output.public NavNode getSitePlan(String pageid)
pageid
- the assetid of the Page asset.public NavNode getSitePlan(com.fatwire.assetapi.data.AssetId pageid)
pageid
- public NavNode getSitePlan(int depth, com.fatwire.assetapi.data.AssetId pageid)
depth
- the maximum depth to retrieve, -1 for no limit.pageid
- the AssetId for the pagepublic NavNode getSitePlan(int depth, com.fatwire.assetapi.data.AssetId pageid, com.fatwire.mda.DimensionFilterInstance dimensionFilter)
depth
- the maximum depth to retrieve, -1 for no limit.pageid
- the AssetId for the pagedimensionFilter
- in order to translate the output.protected boolean isGstAlias(com.fatwire.assetapi.data.AssetId id)
id
- asset for which a link is requiredprotected String getUrlForAlias(Alias alias)
alias
- Alias bean, which of course is also a WRA.protected String getUrlForWra(VanityAsset wra)
wra
- WebReferenceableAsset beanprotected void decorateAsWra(com.fatwire.assetapi.data.AssetId id, NavNode node)
protected void decorateAsAlias(com.fatwire.assetapi.data.AssetId id, NavNode node)
public long findP(String site_name, com.fatwire.assetapi.data.AssetId wraAssetId)
site_name
- name of the site to search withinwraAssetId
- the asset id of the web-referenceable assetCopyright © 2010-2016 Oracle Corporation. All Rights Reserved.