Class 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
    • Constructor Detail

      • CommerceTeaserImpl

        public CommerceTeaserImpl()
    • Method Detail

      • getActions

        public List<com.adobe.cq.wcm.core.components.models.ListItem> getActions()
        Specified by:
        getActions in interface com.adobe.cq.wcm.core.components.models.Teaser
      • isActionsEnabled

        public boolean isActionsEnabled()
        Specified by:
        isActionsEnabled in interface com.adobe.cq.wcm.core.components.models.Teaser
      • getLinkURL

        public String getLinkURL()
        Specified by:
        getLinkURL in interface com.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 interface CommerceTeaser
        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 interface com.adobe.cq.wcm.core.components.models.Teaser
      • isImageLinkHidden

        public boolean isImageLinkHidden()
        Specified by:
        isImageLinkHidden in interface com.adobe.cq.wcm.core.components.models.Teaser
      • getPretitle

        public String getPretitle()
        Specified by:
        getPretitle in interface com.adobe.cq.wcm.core.components.models.Teaser
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface com.adobe.cq.wcm.core.components.models.Teaser
      • isTitleLinkHidden

        public boolean isTitleLinkHidden()
        Specified by:
        isTitleLinkHidden in interface com.adobe.cq.wcm.core.components.models.Teaser
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface com.adobe.cq.wcm.core.components.models.Teaser
      • getTitleType

        public String getTitleType()
        Specified by:
        getTitleType in interface com.adobe.cq.wcm.core.components.models.Teaser
      • getExportedType

        public String getExportedType()
        Specified by:
        getExportedType in interface com.adobe.cq.wcm.core.components.models.Component
        Specified by:
        getExportedType in interface com.adobe.cq.export.json.ComponentExporter
        Specified by:
        getExportedType in interface com.adobe.cq.wcm.core.components.models.Teaser
      • getId

        public String getId()
        Specified by:
        getId in interface com.adobe.cq.wcm.core.components.models.Component
      • getData

        public com.adobe.cq.wcm.core.components.models.datalayer.ComponentData getData()
        Specified by:
        getData in interface com.adobe.cq.wcm.core.components.models.Component