@Deprecated public class NavigationHelper extends Object
getSitePlan(String)
for more details.Modifier and Type | Field and Description |
---|---|
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.
|
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 org.slf4j.Logger |
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 and Description |
---|
NavigationHelper(COM.FutureTense.Interfaces.ICS ics)
Deprecated.
Constructor.
|
NavigationHelper(COM.FutureTense.Interfaces.ICS ics,
AssetAccessTemplate assetTemplate,
WraCoreFieldDao wraDao,
AliasCoreFieldDao aliasDao)
Deprecated.
Constructor with all the dependencies listed.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decorateAsAlias(com.fatwire.assetapi.data.AssetId id,
NavNode node)
Deprecated.
|
protected void |
decorateAsWra(com.fatwire.assetapi.data.AssetId id,
NavNode node)
Deprecated.
|
long |
findP(String site_name,
com.fatwire.assetapi.data.AssetId wraAssetId)
Deprecated.
Locate the page that contains the specified Web-Referenceable Asset.
|
NavNode |
getSitePlan(com.fatwire.assetapi.data.AssetId pageid)
Deprecated.
Get the NavNode for the current page with unlimited depth.
|
NavNode |
getSitePlan(int depth,
com.fatwire.assetapi.data.AssetId pageid)
Deprecated.
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)
Deprecated.
Retrieves the NavNode for the given Page with the provided id.
|
NavNode |
getSitePlan(String pageid)
Deprecated.
Retrieves the NavNode for the given Page with the provided id.
|
NavNode |
getSitePlanByPage(int depth,
String name)
Deprecated.
Retrieves the NavNode for the given Page with the provided name.
|
NavNode |
getSitePlanByPage(int depth,
String name,
com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Deprecated.
Retrieves the NavNode for the given Page with the provided name.
|
NavNode |
getSitePlanByPage(int depth,
String name,
String sitename)
Deprecated.
Retrieves the NavNode for the given Page with the provided name.
|
NavNode |
getSitePlanByPage(int depth,
String name,
String sitename,
com.fatwire.mda.DimensionFilterInstance dimensionFilter)
Deprecated.
Retrieves the NavNode for the given Page with the provided name.
|
NavNode |
getSitePlanByPage(String name)
Deprecated.
|
protected String |
getUrlForAlias(Alias alias)
Deprecated.
Get the URL for the alias.
|
protected String |
getUrlForWra(VanityAsset wra)
Deprecated.
Get the URL to use for the web-referenceable asset.
|
protected boolean |
isGstAlias(com.fatwire.assetapi.data.AssetId id)
Deprecated.
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.slf4j.Logger 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
- Content Server context objectassetTemplate
- Asset Access TemplatewraDao
- WRA DAOaliasDao
- Alias Core Field DAOpublic 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)
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.
pageid
- the assetid of the Page asset.public NavNode getSitePlan(com.fatwire.assetapi.data.AssetId pageid)
pageid
- AssetId object for the given page idpublic 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)
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.
site_name
- name of the site to search withinwraAssetId
- the asset id of the web-referenceable assetCopyright © 2010–2017. All rights reserved.