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/sharingcomponent.- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPN_FACEBOOK_APP_IDDeprecated.static java.lang.StringPN_SOCIAL_MEDIADeprecated.static java.lang.StringPN_VARIANT_PATHDeprecated.static java.lang.StringPV_FACEBOOKDeprecated.static java.lang.StringPV_PINTERESTDeprecated.
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.lang.StringgetFacebookAppId()Deprecated.default java.util.Map<java.lang.String,java.lang.String>getMetadata()Deprecated.default booleanhasFacebookSharing()Deprecated.default booleanhasPinterestSharing()Deprecated.default booleanisFacebookEnabled()Deprecated.default booleanisPinterestEnabled()Deprecated.default booleanisSocialMediaEnabled()Deprecated.-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getId
-
-
-
-
Field Detail
-
PN_SOCIAL_MEDIA
@Deprecated static final java.lang.String PN_SOCIAL_MEDIA
Deprecated.Name of the resource property that will indicate which social networks are supported for social sharing.- Since:
- com.adobe.cq.wcm.core.components.models 11.1.0
- See Also:
PV_FACEBOOK,PV_PINTEREST, Constant Field Values
-
PN_VARIANT_PATH
@Deprecated static final java.lang.String PN_VARIANT_PATH
Deprecated.Name of the resource property that will indicate which page variant has been used for social sharing.- Since:
- com.adobe.cq.wcm.core.components.models 11.1.0
- See Also:
- Constant Field Values
-
PV_FACEBOOK
@Deprecated static final java.lang.String PV_FACEBOOK
Deprecated.Possible value of thePN_SOCIAL_MEDIAresource property.- Since:
- com.adobe.cq.wcm.core.components.models 11.1.0
- See Also:
- Constant Field Values
-
PN_FACEBOOK_APP_ID
@Deprecated static final java.lang.String PN_FACEBOOK_APP_ID
Deprecated.Name of the property that will return the Facebook App ID.- Since:
- com.adobe.cq.wcm.core.components.models 11.1.0
- See Also:
- Constant Field Values
-
PV_PINTEREST
@Deprecated static final java.lang.String PV_PINTEREST
Deprecated.Possible value of thePN_SOCIAL_MEDIAresource property.- Since:
- com.adobe.cq.wcm.core.components.models 11.1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
isFacebookEnabled
@Deprecated default boolean isFacebookEnabled()
Deprecated.Returnstrueif Facebook sharing is enabled in page configuration,falseotherwise.- Returns:
trueif Facebook sharing is enabled in page configuration,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
isPinterestEnabled
@Deprecated default boolean isPinterestEnabled()
Deprecated.Returnstrueif Pinterest sharing is enabled in page configuration,falseotherwise.- Returns:
trueif Pinterest sharing is enabled in page configuration,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
isSocialMediaEnabled
@Deprecated default boolean isSocialMediaEnabled()
Deprecated.Returnstrueif a supported social media sharing is enabled in page configuration,falseotherwise.- Returns:
trueif a supported social media sharing is enabled in page configuration,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
getFacebookAppId
@Deprecated default java.lang.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
defaultin 12.14.0
-
hasFacebookSharing
@Deprecated default boolean hasFacebookSharing()
Deprecated.Returnstrueif Facebook sharing is enabled in page configuration and the page contains the sharing component,falseotherwise.- Returns:
trueif Facebook sharing is enabled in page configuration and the page contains the sharing component,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
hasPinterestSharing
@Deprecated default boolean hasPinterestSharing()
Deprecated.Returnstrueif Pinterest sharing is enabled in page configuration and the page contains the sharing component,falseotherwise- Returns:
trueif Pinterest sharing is enabled in page configuration and the page contains the sharing component,falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
getMetadata
@Deprecated default java.util.Map<java.lang.String,java.lang.String> getMetadata()
Deprecated.Returns the social media metadata for the current page.- Returns:
- the social media metadata for the current page; the
Mapcan be empty if there's no social media configuration - Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
-