public abstract class AbstractNavigationService extends Object implements NavigationService
Modifier and Type | Field and Description |
---|---|
protected TemplateAssetAccess |
assetTemplate |
protected COM.FutureTense.Interfaces.ICS |
ics |
protected String |
linkLabelAttribute |
protected String |
pathAttribute |
Modifier | Constructor and Description |
---|---|
protected |
AbstractNavigationService(COM.FutureTense.Interfaces.ICS ics) |
protected |
AbstractNavigationService(COM.FutureTense.Interfaces.ICS ics,
TemplateAssetAccess assetTemplate) |
protected |
AbstractNavigationService(COM.FutureTense.Interfaces.ICS ics,
TemplateAssetAccess assetTemplate,
String linkLabelAttribute,
String pathAttribute)
Constructor that sets the linkLabel and path attributes.
|
Modifier and Type | Method and Description |
---|---|
String |
getLinkLabelAttribute() |
protected abstract NavigationNode |
getNode(Row row,
int level,
int depth,
String linkAttribute) |
NavigationNode |
getNodeByName(String pagename,
int depth) |
NavigationNode |
getNodeByName(String pagename,
int depth,
String linkAttribute)
Retrieves the NavigationNodes for the Page with the name
pagename and in the current site.
|
NavigationNode |
getNodeByName(String site,
String pagename,
int depth) |
NavigationNode |
getNodeByName(String site,
String pagename,
int depth,
String linkAttribute) |
NavigationNode |
getNodeByQuery(com.fatwire.assetapi.query.Query query,
int depth,
String linkAttribute) |
protected abstract Collection<NavigationNode> |
getNodeChildren(long nodeId,
int level,
int depth,
String linkAttribute)
List all the child NavigationNode at this SitePlanTree nodeId.
|
String |
getPathAttribute() |
Collection<NavigationNode> |
getRootNodesForSite(int depth) |
Collection<NavigationNode> |
getRootNodesForSite(String site) |
Collection<NavigationNode> |
getRootNodesForSite(String site,
int depth) |
Collection<NavigationNode> |
getRootNodesForSite(String site,
int depth,
String linkAttribute) |
void |
setLinkLabelAttribute(String linkLabelAttribute) |
void |
setPathAttribute(String pathAttribute) |
protected final COM.FutureTense.Interfaces.ICS ics
protected final TemplateAssetAccess assetTemplate
protected String linkLabelAttribute
protected String pathAttribute
protected AbstractNavigationService(COM.FutureTense.Interfaces.ICS ics)
protected AbstractNavigationService(COM.FutureTense.Interfaces.ICS ics, TemplateAssetAccess assetTemplate)
protected AbstractNavigationService(COM.FutureTense.Interfaces.ICS ics, TemplateAssetAccess assetTemplate, String linkLabelAttribute, String pathAttribute)
ics
- assetTemplate
- linkLabelAttribute
- pathAttribute
- public Collection<NavigationNode> getRootNodesForSite(String site)
site
- public Collection<NavigationNode> getRootNodesForSite(int depth)
getRootNodesForSite
in interface NavigationService
depth
- the maximum number of levels to retrievepublic Collection<NavigationNode> getRootNodesForSite(String site, int depth)
getRootNodesForSite
in interface NavigationService
depth
- the maximum number of levels to retrievepublic NavigationNode getNodeByName(String site, String pagename, int depth)
getNodeByName
in interface NavigationService
pagename
- the name of the Page assetdepth
- the maximum number of levels to retrievepublic NavigationNode getNodeByName(String pagename, int depth, String linkAttribute)
NavigationService
getNodeByName
in interface NavigationService
pagename
- the name of the Page assetdepth
- the maximum number of levels to retrievepublic NavigationNode getNodeByName(String pagename, int depth)
getNodeByName
in interface NavigationService
pagename
- the name of the Page assetpublic Collection<NavigationNode> getRootNodesForSite(String site, int depth, String linkAttribute)
getRootNodesForSite
in interface NavigationService
site
- depth
- linkAttribute
- public NavigationNode getNodeByName(String site, String pagename, int depth, String linkAttribute)
getNodeByName
in interface NavigationService
pagename
- the name of the Page assetdepth
- the maximum number of levels to retrievepublic NavigationNode getNodeByQuery(com.fatwire.assetapi.query.Query query, int depth, String linkAttribute)
getNodeByQuery
in interface NavigationService
query
- the asset query, needs to return Page assetsdepth
- the maximum number of levels to retrieveprotected abstract Collection<NavigationNode> getNodeChildren(long nodeId, int level, int depth, String linkAttribute)
nodeId
- the nodeId from the SitePlanTreelevel
- the tree level depthdepth
- the maximum depthlinkAttribute
- the attribute to use for the link textprotected abstract NavigationNode getNode(Row row, int level, int depth, String linkAttribute)
row
- the resultlist containing nid/oid/otypelevel
- the current leveldepth
- the maximum depthlinkAttribute
- the attribute for the link text.public String getLinkLabelAttribute()
public void setLinkLabelAttribute(String linkLabelAttribute)
linkLabelAttribute
- public String getPathAttribute()
public void setPathAttribute(String pathAttribute)
pathAttribute
- Copyright © 2010-2016 Oracle Corporation. All Rights Reserved.