Interface Embed

All Superinterfaces:
Component, ComponentExporter

@ConsumerType public interface Embed extends Component
Defines the Embed Sling Model used for the /apps/core/wcm/components/embed component.
Since:
com.adobe.cq.wcm.core.components.models 12.10.0
  • Field Details

    • PN_DESIGN_URL_DISABLED

      static final String PN_DESIGN_URL_DISABLED
      Name of the configuration policy property that indicates whether the url input type is disabled.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
    • PN_DESIGN_EMBEDDABLES_DISABLED

      static final String PN_DESIGN_EMBEDDABLES_DISABLED
      Name of the configuration policy property that indicates whether the embeddable input type is disabled.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
    • PN_DESIGN_HTML_DISABLED

      static final String PN_DESIGN_HTML_DISABLED
      Name of the configuration policy property that indicates whether the html input type is disabled.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
    • PN_DESIGN_ALLOWED_EMBEDDABLES

      static final String PN_DESIGN_ALLOWED_EMBEDDABLES
      Name of the configuration policy property that defines the embeddables that are allowed to be selected by an author.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
    • PN_TYPE

      static final String PN_TYPE
      Name of the resource property that defines the embed input Embed.Type.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
    • PN_URL

      static final String PN_URL
      Name of the resource property that defines the URL of an embeddable item.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
    • PN_HTML

      static final String PN_HTML
      Name of the resource property that defines an embeddable HTML snippet.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
    • PN_EMBEDDABLE_RESOURCE_TYPE

      static final String PN_EMBEDDABLE_RESOURCE_TYPE
      Name of the resource property that defines the resource type of an embeddable.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
    • RT_EMBEDDABLE_V1

      static final String RT_EMBEDDABLE_V1
      Resource type of an embeddable.
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
      See Also:
  • Method Details

    • getType

      @Nullable default @Nullable Embed.Type getType()
      Returns the embed input Embed.Type.
      Returns:
      the embed input Embed.Type, or null if no type is found
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
    • getUrl

      @Nullable default @Nullable String getUrl()
      Returns the URL of an embeddable item.
      Returns:
      The URL of the embeddable item, if type is Embed.Type.URL and the url type is not disabled via policy configuration, null otherwise
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
    • getResult

      @Nullable default UrlProcessor.Result getResult()
      Returns the result from the processor that can process the given URL.
      Returns:
      The result from the processor that can process the given URL, null if processing is not possible
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
    • getEmbeddableResourceType

      @Nullable default @Nullable String getEmbeddableResourceType()
      Returns the resource type of the embeddable.
      Returns:
      The resource type of the embeddable, if type is Embed.Type.EMBEDDABLE and the embeddable type is not disabled via policy configuration, null otherwise
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0
    • getHtml

      @Nullable default @Nullable String getHtml()
      Returns an embeddable HTML snippet.
      Returns:
      An embeddable HTML String, if type is Embed.Type.HTML and the html type is not disabled via policy configuration, null otherwise
      Since:
      com.adobe.cq.wcm.core.components.models 12.10.0