- All Implemented Interfaces and Traits:
- MetaClassExtensionProvider
@org.osgi.service.component.annotations.Component(service: MetaClassExtensionProvider, immediate: true)
@Slf4j(value: LOG)
class AemMetaClassExtensionProvider
extends Object
implements MetaClassExtensionProvider
This metaclass provider adds additional methods to all instances of the classes outlined below.
com.day.cq.wcm.api.Page
- iterator() - Allows usage of Groovy closure operators (
each,
eachWithIndex) to iterate over child pages of the current page.
- recurse(Closure closure) - Recursively invoke this closure on each descendant page of the current page.
- getNode() - Get the
jcr:content node of the current page, returning null if it does not exist
.
- get(String propertyName) - Get the named property value from the
jcr:content node of the
current page, with the return type determined dynamically by Property.getType()
.
- set(String propertyName, Object value) - Set the named property value on the
jcr:content node
of the current page. An array value argument can be used to set multi-valued properties.