public interface NavService<N extends Node<N>,S,P>
Node
s.
The service also allows an object present in or related to the navigation structures to access its breadcrumb.
An object's breadcrumb is defined as the preferred path through the navigation structures from the
root of the entire site to the specified object.
In specifying "preferred" it therefore follows that an object that is present or related to more than one location
in the navigation structures (and can therefore be reached by traversing the navs in more than one way) may only
have one single breadcrumb path.Modifier and Type | Method and Description |
---|---|
List<N> |
getBreadcrumb(P obj)
Return the preferred breadcrumb path from the root of the site to the object specified.
|
List<N> |
getNav(S id)
Returns the nodes corresponding to the nav structure specified.
|
List<N> getNav(S id)
id
- an identifier that specifies which nav structure should be loaded.IllegalArgumentException
- if the structure specified is invalid.List<N> getBreadcrumb(P obj)
obj
- object participating in the navigation structureIllegalArgumentException
- if the specified object is not present or related to an object in the nav
structures of this site.Copyright © 2010–2017. All rights reserved.