Class NavigationItemImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerComponent
-
- com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerListItem
-
- com.adobe.cq.commerce.core.components.internal.models.v1.breadcrumb.NavigationItemImpl
-
- All Implemented Interfaces:
com.adobe.cq.export.json.ComponentExporter
,com.adobe.cq.wcm.core.components.models.Component
,com.adobe.cq.wcm.core.components.models.ListItem
,com.adobe.cq.wcm.core.components.models.NavigationItem
public class NavigationItemImpl extends DataLayerListItem implements com.adobe.cq.wcm.core.components.models.NavigationItem
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isActive
protected String
title
protected String
url
-
Fields inherited from class com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerListItem
ITEM_ID_PREFIX, parentId
-
Fields inherited from class com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerComponent
ID_SEPARATOR, resource
-
-
Constructor Summary
Constructors Constructor Description NavigationItemImpl(String title, String url, boolean isActive, String parentId, org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDataLayerLinkUrl()
String
getDataLayerTitle()
protected String
getIdentifier()
String
getTitle()
String
getURL()
boolean
isActive()
-
Methods inherited from class com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerListItem
generateId
-
Methods inherited from class com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerComponent
getComponentData, getData, getDataLayerAssetResource, getDataLayerAssets, getDataLayerCategories, getDataLayerCurrency, getDataLayerDescription, getDataLayerLanguage, getDataLayerPrice, getDataLayerShownItems, getDataLayerSKU, getDataLayerTags, getDataLayerTemplatePath, getDataLayerText, getDataLayerType, getDataLayerUrl, getId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getData, getExportedType, getId
-
-
-
-
Method Detail
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfacecom.adobe.cq.wcm.core.components.models.ListItem
-
getURL
public String getURL()
- Specified by:
getURL
in interfacecom.adobe.cq.wcm.core.components.models.ListItem
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfacecom.adobe.cq.wcm.core.components.models.NavigationItem
-
getIdentifier
protected String getIdentifier()
- Overrides:
getIdentifier
in classDataLayerListItem
-
getDataLayerLinkUrl
public String getDataLayerLinkUrl()
- Overrides:
getDataLayerLinkUrl
in classDataLayerComponent
-
getDataLayerTitle
public String getDataLayerTitle()
- Overrides:
getDataLayerTitle
in classDataLayerComponent
-
-