Interface SocialMediaHelper

  • All Superinterfaces:
    Component, ComponentExporter

    @Deprecated
    @ConsumerType
    public interface SocialMediaHelper
    extends Component
    Deprecated.
    The Social Media Sharing component is deprecated since Core Components 2.18.0 and should not be used in new projects.
    Defines the Sling Model for the /apps/core/wcm/components/sharing component.
    Since:
    com.adobe.cq.wcm.core.components.models 11.0.0
    • Method Detail

      • isFacebookEnabled

        @Deprecated
        default boolean isFacebookEnabled()
        Deprecated.
        Returns true if Facebook sharing is enabled in page configuration, false otherwise.
        Returns:
        true if Facebook sharing is enabled in page configuration, false otherwise
        Since:
        com.adobe.cq.wcm.core.components.models 11.0.0; marked default in 12.1.0
      • isPinterestEnabled

        @Deprecated
        default boolean isPinterestEnabled()
        Deprecated.
        Returns true if Pinterest sharing is enabled in page configuration, false otherwise.
        Returns:
        true if Pinterest sharing is enabled in page configuration, false otherwise
        Since:
        com.adobe.cq.wcm.core.components.models 11.0.0; marked default in 12.1.0
      • isSocialMediaEnabled

        @Deprecated
        default boolean isSocialMediaEnabled()
        Deprecated.
        Returns true if a supported social media sharing is enabled in page configuration, false otherwise.
        Returns:
        true if a supported social media sharing is enabled in page configuration, false otherwise
        Since:
        com.adobe.cq.wcm.core.components.models 11.0.0; marked default in 12.1.0
      • getFacebookAppId

        @Deprecated
        default String getFacebookAppId()
        Deprecated.
        Returns the value of the Facebook App ID if specified, null otherwise.
        Returns:
        the value of the Facebook App ID if specified, null otherwise.
        Since:
        com.adobe.cq.wcm.core.components.models 12.14.0; marked default in 12.14.0
      • hasFacebookSharing

        @Deprecated
        default boolean hasFacebookSharing()
        Deprecated.
        Returns true if Facebook sharing is enabled in page configuration and the page contains the sharing component, false otherwise.
        Returns:
        true if Facebook sharing is enabled in page configuration and the page contains the sharing component, false otherwise
        Since:
        com.adobe.cq.wcm.core.components.models 11.0.0; marked default in 12.1.0
      • hasPinterestSharing

        @Deprecated
        default boolean hasPinterestSharing()
        Deprecated.
        Returns true if Pinterest sharing is enabled in page configuration and the page contains the sharing component, false otherwise
        Returns:
        true if Pinterest sharing is enabled in page configuration and the page contains the sharing component, false otherwise
        Since:
        com.adobe.cq.wcm.core.components.models 11.0.0; marked default in 12.1.0
      • getMetadata

        @Deprecated
        default Map<String,​String> getMetadata()
        Deprecated.
        Returns the social media metadata for the current page.
        Returns:
        the social media metadata for the current page; the Map can be empty if there's no social media configuration
        Since:
        com.adobe.cq.wcm.core.components.models 11.0.0; marked default in 12.1.0