Package com.day.cq.wcm.foundation.model
Interface AllowedComponents
Public, Sling Model Interface to be used in HTLs.
-
Method Summary
Modifier and TypeMethodDescriptionAll css classes to be used on the Allowed Components DOM containerAll css classes to be used on a single Allowed Component DOM nodeThe resource path of the Placeholder that should be used to list each of the Allowed Components in the DOMSorted (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 ComponentgetTitle()
Title of the Component represented by the given Resource, to be used in the Allowed Components DOM containerboolean
Is the given resource contained by a page, with authored template structure, and is the given resource set as editable (unlocked)
-
Method Details
-
getCssClass
String getCssClass()All css classes to be used on the Allowed Components DOM container- Returns:
- css classes
-
getPlaceholderCssClass
String getPlaceholderCssClass()All css classes to be used on a single Allowed Component DOM node- Returns:
- css classes
-
getPlaceholderResourceType
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
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
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
-