Class NavigationImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.models.v1.navigation.NavigationImpl
-
- All Implemented Interfaces:
Navigation
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class, adapters=Navigation.class, resourceType="core/cif/components/structure/navigation/v1/navigation") public class NavigationImpl extends Object implements Navigation
-
-
Field Summary
-
Fields inherited from interface com.adobe.cq.commerce.core.components.models.navigation.Navigation
PN_SHOW_MAIN_CATEGORIES, RT_CATALOG_PAGE
-
-
Constructor Summary
Constructors Constructor Description NavigationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
List<NavigationItem>
getItems()
String
getParentId()
-
-
-
Method Detail
-
getItems
public List<NavigationItem> getItems()
- Specified by:
getItems
in interfaceNavigation
- Returns:
- The navigation items to be rendered by the navigation component.
-
getId
public String getId()
- Specified by:
getId
in interfaceNavigation
- Returns:
- The identifier of this navigation.
-
getParentId
public String getParentId()
- Specified by:
getParentId
in interfaceNavigation
- Returns:
- The identifier of the parent navigation or null for the root navigation.
-
-