Interface ProductNavigationControlMenuCategory
public interface ProductNavigationControlMenuCategory
Provides an interface that defines categories to be used by a
product-navigation:control-menu tag instance to render a new
Control Menu category. Control Menu categories include Control Menu entries
defined by ProductNavigationControlMenuEntry implementations.
Implementations must be registered in the OSGi Registry. The order of the
Control Menu categories is determined by the
product.navigation.control.menu.category.order property value.
The parent Control Menu category key can be defined by the
product.navigation.control.menu.category.key property value.
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()Returns the Control Menu category's key.booleanhasAccessPermission(javax.servlet.http.HttpServletRequest httpServletRequest) Returnstrueif the Control Menu category should be displayed in the request's context.
-
Method Details
-
getKey
String getKey()Returns the Control Menu category's key. This key must be unique in the scope of the Control Menu, since it is referred to by Control Menu entries to be added to this Control Menu category.- Returns:
- the Control Menu category's key
-
hasAccessPermission
boolean hasAccessPermission(javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException Returnstrueif the Control Menu category should be displayed in the request's context.- Parameters:
httpServletRequest- the request that renders the Control Menu category- Returns:
trueif the Control Menu category should be displayed in the request's context;falseotherwise- Throws:
com.liferay.portal.kernel.exception.PortalException- if a portal exception occurred
-