public interface HstSiteMenuItemConfiguration
Modifier and Type | Method and Description |
---|---|
List<HstSiteMenuItemConfiguration> |
getChildItemConfigurations() |
int |
getDepth() |
String |
getExternalLink()
When a sitemenu item has an external link (http://...) configured, it is retrieved by this method.
|
HstSiteMenuConfiguration |
getHstSiteMenuConfiguration() |
String |
getLocalParameter(String name)
The value of the local parameter, where there are no parameters inherited from ancestor items
|
Map<String,String> |
getLocalParameters() |
String |
getMountAlias()
If not
null the mount belonging to this alias is used for creating the sitemenu item link |
String |
getName() |
String |
getParameter(String name)
A HstSiteMenuItemConfiguration can contain a Map of parameters.
|
Map<String,String> |
getParameters()
Parameters are inherited from ancestor HstSiteMenuItemConfiguration's.
|
HstSiteMenuItemConfiguration |
getParentItemConfiguration() |
Map<String,Object> |
getProperties()
When developers have customized SiteMenuItem configuration with extra properties, these properties can be
accessed through this Map
|
Set<String> |
getRoles()
Returns the roles that are allowed to view this
HstSiteMenuItemConfiguration . |
String |
getSiteMapItemPath()
The sitemapitem path can point to a sitemap item that contains wildcards.
|
boolean |
isRepositoryBased() |
String getName()
String getSiteMapItemPath()
String getExternalLink()
null
is
returned. When an external link is configured, the getSiteMapItemPath()
is ignorednull
if non is configuredHstSiteMenuConfiguration getHstSiteMenuConfiguration()
HstSiteMenuConfiguration
of this HstSiteMenuItemConfiguration
List<HstSiteMenuItemConfiguration> getChildItemConfigurations()
SiteMenuItemConfiguration
's of this itemHstSiteMenuItemConfiguration getParentItemConfiguration()
HstSiteMenuItemConfiguration
and null
is none exists (ie, it is a root)Map<String,Object> getProperties()
boolean isRepositoryBased()
true
when below this sitemenu item repository based navigation is expectedint getDepth()
String getParameter(String name)
null
will be returned.
Parameters are inherited from ancestor HstSiteMenuItemConfiguration's. When this HstSiteMenuItemConfiguration configures the same parameter as an ancestor, the
value from the ancestor is overwritten.
Implementations should return an unmodifiable map, for example Collections.UnmodifiableMap
to avoid
client code changing configurationnname
- the name of the parameternull
when not presentString getLocalParameter(String name)
name
- the name of the parameternull
when not present, only this method returns parameters without inheritance
Map<String,String> getParameters()
HstSiteMenu
. If no parameters present, and empty map is returned, only now the entire parameters map is returned.
Map<String,String> getLocalParameters()
HstSiteMenuItemConfiguration
. If no parameters present, and empty map is returned, only this method returns parameters (unmodifiable map) without inheritance
String getMountAlias()
null
the mount belonging to this alias is used for creating the sitemenu item linkMount
to create the link for and null
if the mount from the HstRequestContext
can be usedSet<String> getRoles()
Returns the roles that are allowed to view this HstSiteMenuItemConfiguration
. If a request is not in the
right role (HttpServletRequest.isUserInRole(String)
}), the sitemenu item won't be visible.
If the sitemeniitem does not have any roles defined by itself, it inherits them from the parent.
If it defines roles by itself, the roles from any ancestor are ignored.
An empty list of roles (property exists but no values) means nobody can view the sitemenuitem!. A missing property for roles means everybody can view the sitemenu item.
null
must be returnedCopyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.