public abstract class SitePlanNavService<N extends AssetNode<N> & ConfigurableNode<N>> extends Object implements NavService<N,com.fatwire.assetapi.data.AssetId,com.fatwire.assetapi.data.AssetId>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SitePlanNavService.BreadcrumbCandidate<N extends AssetNode<N>> |
| Constructor and Description |
|---|
SitePlanNavService(COM.FutureTense.Interfaces.ICS ics,
TemplateAssetAccess dao) |
SitePlanNavService(COM.FutureTense.Interfaces.ICS ics,
TemplateAssetAccess dao,
String theSitename) |
| Modifier and Type | Method and Description |
|---|---|
protected List<N> |
chooseBreadcrumb(Collection<SitePlanNavService.BreadcrumbCandidate<N>> candidates)
Determines a node's "preferred" breadcrumb from a list of "candidates".
|
protected abstract N |
createAssetNode(com.fatwire.assetapi.data.AssetId assetId) |
List<N> |
getBreadcrumb(com.fatwire.assetapi.data.AssetId id)
Return the preferred breadcrumb path from the root of the site to the object specified.
|
protected List<N> |
getBreadcrumbForNode(N node)
Get the breadcrumb corresponding to the specified node.
|
protected COM.FutureTense.Interfaces.ICS |
getIcs() |
List<N> |
getNav(com.fatwire.assetapi.data.AssetId sitePlan)
Returns the nodes corresponding to the nav structure specified.
|
protected String |
getSitename() |
protected TemplateAssetAccess |
getTemplateAssetAccess() |
public SitePlanNavService(COM.FutureTense.Interfaces.ICS ics,
TemplateAssetAccess dao)
public SitePlanNavService(COM.FutureTense.Interfaces.ICS ics,
TemplateAssetAccess dao,
String theSitename)
protected abstract N createAssetNode(com.fatwire.assetapi.data.AssetId assetId)
protected TemplateAssetAccess getTemplateAssetAccess()
protected String getSitename()
protected final COM.FutureTense.Interfaces.ICS getIcs()
public List<N> getNav(com.fatwire.assetapi.data.AssetId sitePlan)
NavServicegetNav in interface NavService<N extends AssetNode<N> & ConfigurableNode<N>,com.fatwire.assetapi.data.AssetId,com.fatwire.assetapi.data.AssetId>sitePlan - an identifier that specifies which nav structure should be loaded.public List<N> getBreadcrumb(com.fatwire.assetapi.data.AssetId id)
NavServicegetBreadcrumb in interface NavService<N extends AssetNode<N> & ConfigurableNode<N>,com.fatwire.assetapi.data.AssetId,com.fatwire.assetapi.data.AssetId>id - object participating in the navigation structureprotected List<N> getBreadcrumbForNode(N node)
node - the node whose breadcrumb needs to be calculatedprotected List<N> chooseBreadcrumb(Collection<SitePlanNavService.BreadcrumbCandidate<N>> candidates)
candidates - The candidates you get to choose the preferred breadcrumb from.Copyright © 2016–2017. All rights reserved.