Interface Embed
-
- All Superinterfaces:
Component,ComponentExporter
@ConsumerType public interface Embed extends Component
Defines theEmbedSling Model used for the/apps/core/wcm/components/embedcomponent.- Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEmbed.TypeEnumeration of the supported embed input types.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPN_DESIGN_ALLOWED_EMBEDDABLESName of the configuration policy property that defines the embeddables that are allowed to be selected by an author.static java.lang.StringPN_DESIGN_EMBEDDABLES_DISABLEDName of the configuration policy property that indicates whether the embeddable input type is disabled.static java.lang.StringPN_DESIGN_HTML_DISABLEDName of the configuration policy property that indicates whether the html input type is disabled.static java.lang.StringPN_DESIGN_URL_DISABLEDName of the configuration policy property that indicates whether the url input type is disabled.static java.lang.StringPN_EMBEDDABLE_RESOURCE_TYPEName of the resource property that defines the resource type of an embeddable.static java.lang.StringPN_HTMLName of the resource property that defines an embeddable HTML snippet.static java.lang.StringPN_TYPEName of the resource property that defines the embed inputEmbed.Type.static java.lang.StringPN_URLName of the resource property that defines the URL of an embeddable item.static java.lang.StringRT_EMBEDDABLE_V1Resource type of an embeddable.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @Nullable java.lang.StringgetEmbeddableResourceType()Returns the resource type of the embeddable.default @Nullable java.lang.StringgetHtml()Returns an embeddable HTML snippet.default UrlProcessor.ResultgetResult()Returns the result from the processor that can process the given URL.default @Nullable Embed.TypegetType()Returns the embed inputEmbed.Type.default @Nullable java.lang.StringgetUrl()Returns the URL of an embeddable item.-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getId
-
-
-
-
Field Detail
-
PN_DESIGN_URL_DISABLED
static final java.lang.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:
- Constant Field Values
-
PN_DESIGN_EMBEDDABLES_DISABLED
static final java.lang.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:
- Constant Field Values
-
PN_DESIGN_HTML_DISABLED
static final java.lang.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:
- Constant Field Values
-
PN_DESIGN_ALLOWED_EMBEDDABLES
static final java.lang.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:
- Constant Field Values
-
PN_TYPE
static final java.lang.String PN_TYPE
Name of the resource property that defines the embed inputEmbed.Type.- Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
- See Also:
- Constant Field Values
-
PN_URL
static final java.lang.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:
- Constant Field Values
-
PN_HTML
static final java.lang.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:
- Constant Field Values
-
PN_EMBEDDABLE_RESOURCE_TYPE
static final java.lang.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:
- Constant Field Values
-
RT_EMBEDDABLE_V1
static final java.lang.String RT_EMBEDDABLE_V1
Resource type of an embeddable.- Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
@Nullable default @Nullable Embed.Type getType()
Returns the embed inputEmbed.Type.- Returns:
- the embed input
Embed.Type, ornullif no type is found - Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
-
getUrl
@Nullable default @Nullable java.lang.String getUrl()
Returns the URL of an embeddable item.- Returns:
- The URL of the embeddable item, if type is
Embed.Type.URLand the url type is not disabled via policy configuration,nullotherwise - 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,
nullif processing is not possible - Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
-
getEmbeddableResourceType
@Nullable default @Nullable java.lang.String getEmbeddableResourceType()
Returns the resource type of the embeddable.- Returns:
- The resource type of the embeddable, if type is
Embed.Type.EMBEDDABLEand the embeddable type is not disabled via policy configuration,nullotherwise - Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
-
getHtml
@Nullable default @Nullable java.lang.String getHtml()
Returns an embeddable HTML snippet.- Returns:
- An embeddable HTML
String, if type isEmbed.Type.HTMLand the html type is not disabled via policy configuration,nullotherwise - Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
-
-