Interface Embed
- All Superinterfaces:
Component,ComponentExporter
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration of the supported embed input types. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the configuration policy property that defines the embeddables that are allowed to be selected by an author.static final StringName of the configuration policy property that indicates whether the embeddable input type is disabled.static final StringName of the configuration policy property that indicates whether the html input type is disabled.static final StringName of the configuration policy property that indicates whether the url input type is disabled.static final StringName of the resource property that defines the resource type of an embeddable.static final StringName of the resource property that defines an embeddable HTML snippet.static final StringName of the resource property that defines the embed inputEmbed.Type.static final StringName of the resource property that defines the URL of an embeddable item.static final StringResource type of an embeddable. -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable StringReturns the resource type of the embeddable.default @Nullable StringgetHtml()Returns an embeddable HTML snippet.default UrlProcessor.ResultReturns the result from the processor that can process the given URL.default @Nullable Embed.TypegetType()Returns the embed inputEmbed.Type.default @Nullable 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 Details
-
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
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
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
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
Name of the resource property that defines the embed inputEmbed.Type.- Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
- See Also:
-
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
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
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
Resource type of an embeddable.- Since:
- com.adobe.cq.wcm.core.components.models 12.10.0
- See Also:
-
-
Method Details
-
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
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
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
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
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
-