Package com.day.cq.wcm.foundation.model
Interface AllowedComponents
-
@ConsumerType public interface AllowedComponents
Public, Sling Model Interface to be used in HTLs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCssClass()
All css classes to be used on the Allowed Components DOM containerjava.lang.String
getPlaceholderCssClass()
All css classes to be used on a single Allowed Component DOM nodejava.lang.String
getPlaceholderResourceType()
The resource path of the Placeholder that should be used to list each of the Allowed Components in the DOMjava.util.Map<java.lang.String,Resource>
getResourcesMap()
Sorted (by Resource's Component Title) Map of all Allowed Components for the given Resource: key - synthetic path to the single Allowed Component value - resource representing single Allowed Componentjava.lang.String
getTitle()
Title of the Component represented by the given Resource, to be used in the Allowed Components DOM containerboolean
isApplicable()
Is the given resource contained by a page, with authored template structure, and is the given resource set as editable (unlocked)
-
-
-
Method Detail
-
getCssClass
java.lang.String getCssClass()
All css classes to be used on the Allowed Components DOM container- Returns:
- css classes
-
getPlaceholderCssClass
java.lang.String getPlaceholderCssClass()
All css classes to be used on a single Allowed Component DOM node- Returns:
- css classes
-
getPlaceholderResourceType
java.lang.String getPlaceholderResourceType()
The resource path of the Placeholder that should be used to list each of the Allowed Components in the DOM- Returns:
- resource type of Placeholder
-
getResourcesMap
java.util.Map<java.lang.String,Resource> getResourcesMap()
Sorted (by Resource's Component Title) Map of all Allowed Components for the given Resource:- key - synthetic path to the single Allowed Component
- value - resource representing single Allowed Component
- Returns:
- Map of Resources with Paths as a keys
-
getTitle
java.lang.String getTitle()
Title of the Component represented by the given Resource, to be used in the Allowed Components DOM container- Returns:
- title
-
isApplicable
boolean isApplicable()
Is the given resource contained by a page, with authored template structure, and is the given resource set as editable (unlocked)- Returns:
- true if the template has structure support and the resource is editable, false otherwise
-
-