How to write data into aem repo using wcmusepojo

Abstract implementation of Use interface. This could be extended to provide custom Java Use-API objects.

Constructor Summary

Constructors
Constructor and Description
WCMUsePojo ()

Method Summary

All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods
Modifier and Type Method and Description
abstract void activate ()

Implement this method to perform post initialization tasks.

Get an object associated with the given name

Deprecated.

since 3.1.0; please switch to getInheritedPageProperties()

Initialize bindings and calls #activate()

Methods inherited from class java.lang.Object

Constructor Detail

WCMUsePojo

public WCMUsePojo()

Method Detail

init

public final void init(javax.script.Bindings scriptBindings)

Initialize bindings and calls #activate()

activate

public abstract void activate() throws java.lang.Exception

Implement this method to perform post initialization tasks. This method is called by init(Bindings) .

get

public final T get(java.lang.String name, java.lang.Class type)

Get an object associated with the given name

getWcmMode

public final SightlyWCMMode getWcmMode()

getPageManager

public final PageManager getPageManager()

getCurrentPage

public final Page getCurrentPage()

getResourcePage

public final Page getResourcePage()

getPageProperties

public final ValueMap getPageProperties()

getProperties

public final ValueMap getProperties()

getDesigner

public final Designer getDesigner()

getCurrentDesign

public final Design getCurrentDesign()

getCurrentStyle

public final Style getCurrentStyle()

getComponent

public final Component getComponent()

getInheritedProperties

@Deprecated public final ValueMap getInheritedProperties()

Deprecated. since 3.1.0; please switch to getInheritedPageProperties()

getInheritedPageProperties

public final ValueMap getInheritedPageProperties()

getResource

public final Resource getResource()

getResourceResolver

public final ResourceResolver getResourceResolver()

getRequest

public final SlingHttpServletRequest getRequest()

getResponse

public final SlingHttpServletResponse getResponse()

getSlingScriptHelper

public final SlingScriptHelper getSlingScriptHelper()

getComponentContext

public final ComponentContext getComponentContext()

getEditContext

public final EditContext getEditContext()

getResourceDesign

public final Design getResourceDesign()

getXSSAPI

public final XSSAPI getXSSAPI()