Class CommerceTeaserImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.models.v1.teaser.CommerceTeaserImpl
-
- All Implemented Interfaces:
CommerceTeaser
,com.adobe.cq.export.json.ComponentExporter
,com.adobe.cq.wcm.core.components.models.Component
,com.adobe.cq.wcm.core.components.models.Teaser
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class, adapters={com.adobe.cq.wcm.core.components.models.Teaser.class,com.adobe.cq.export.json.ComponentExporter.class}, resourceType="core/cif/components/content/teaser/v1/teaser") public class CommerceTeaserImpl extends Object implements CommerceTeaser
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
RESOURCE_TYPE
-
Fields inherited from interface com.adobe.cq.commerce.core.components.models.teaser.CommerceTeaser
PN_ACTION_CATEGORY_ID, PN_ACTION_PRODUCT_SLUG
-
Fields inherited from interface com.adobe.cq.wcm.core.components.models.Teaser
NN_ACTIONS, PN_ACTION_LINK, PN_ACTION_TEXT, PN_ACTIONS_DISABLED, PN_ACTIONS_ENABLED, PN_DESCRIPTION_FROM_PAGE, PN_DESCRIPTION_HIDDEN, PN_IMAGE_LINK_HIDDEN, PN_PRETITLE_HIDDEN, PN_TITLE_FROM_PAGE, PN_TITLE_HIDDEN, PN_TITLE_LINK_HIDDEN, PN_TITLE_TYPE
-
-
Constructor Summary
Constructors Constructor Description CommerceTeaserImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.adobe.cq.wcm.core.components.models.ListItem>
getActions()
String
getAssetPath()
Retrieves the URL of the image associated with this teaser.com.adobe.cq.wcm.core.components.models.datalayer.ComponentData
getData()
String
getDescription()
String
getExportedType()
String
getId()
org.apache.sling.api.resource.Resource
getImageResource()
String
getLinkURL()
String
getPretitle()
String
getTitle()
String
getTitleType()
boolean
isActionsEnabled()
boolean
isImageLinkHidden()
boolean
isTitleLinkHidden()
-
-
-
Field Detail
-
RESOURCE_TYPE
protected static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActions
public List<com.adobe.cq.wcm.core.components.models.ListItem> getActions()
- Specified by:
getActions
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
isActionsEnabled
public boolean isActionsEnabled()
- Specified by:
isActionsEnabled
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
getLinkURL
public String getLinkURL()
- Specified by:
getLinkURL
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
getAssetPath
public String getAssetPath()
Description copied from interface:CommerceTeaser
Retrieves the URL of the image associated with this teaser.- Specified by:
getAssetPath
in interfaceCommerceTeaser
- Returns:
- A String representing the URL or
null
if there is not image associated with the teaser
-
getImageResource
public org.apache.sling.api.resource.Resource getImageResource()
- Specified by:
getImageResource
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
isImageLinkHidden
public boolean isImageLinkHidden()
- Specified by:
isImageLinkHidden
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
getPretitle
public String getPretitle()
- Specified by:
getPretitle
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
isTitleLinkHidden
public boolean isTitleLinkHidden()
- Specified by:
isTitleLinkHidden
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
getTitleType
public String getTitleType()
- Specified by:
getTitleType
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
getExportedType
public String getExportedType()
- Specified by:
getExportedType
in interfacecom.adobe.cq.wcm.core.components.models.Component
- Specified by:
getExportedType
in interfacecom.adobe.cq.export.json.ComponentExporter
- Specified by:
getExportedType
in interfacecom.adobe.cq.wcm.core.components.models.Teaser
-
getId
public String getId()
- Specified by:
getId
in interfacecom.adobe.cq.wcm.core.components.models.Component
-
getData
public com.adobe.cq.wcm.core.components.models.datalayer.ComponentData getData()
- Specified by:
getData
in interfacecom.adobe.cq.wcm.core.components.models.Component
-
-