Expand my Community achievements bar.

getInheritedProperties() in sling servlet

Avatar

Level 4

Hi All,

How can I fetch getineritedProperties() in sling servlet?? I would like to get cloud service configuration details in sling servlet. I don't want to pass all the cloud config properties from ajax.

Any pointers?

Thanks,

Kishore

2 Replies

Avatar

Level 10

Never tried getting this type of information by using an API. There is a doc topic that may help you -- appears there is an API that retrieves configuration information - see Cloud Service Configurations

Avatar

Level 10

Also  speaking to internal ppl about this --

Yeh - long as the requests resource is in that tree.

Probably something like:

Page page = pagemanager.getContainingPage(request.gerResource())

inheritedProps = new hierarchynodevaluemap(page.getContentResource())