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 Type
    Method
    Description
    Returns the Control Menu category's key.
    boolean
    hasAccessPermission(jakarta.servlet.http.HttpServletRequest httpServletRequest)
    Returns true if 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(jakarta.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException
      Returns true if the Control Menu category should be displayed in the request's context.
      Parameters:
      httpServletRequest - the request that renders the Control Menu category
      Returns:
      true if the Control Menu category should be displayed in the request's context; false otherwise
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred