Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

ccpiizz
ccpiizz
Offline

Badges

Badges
2

Accepted Solutions

Accepted Solutions
0

Likes

Likes
0

Posts

Posts
2

Discussions

Discussions
0

Questions

Questions
2

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by ccpiizz
Customize the badges you want to showcase on your profile
Apache Sling Context Aware Configuration: get the effective node where configuration is defined - Adobe Experience Manager 22-05-2020
Given a hierarchy of CAC configurations defined at multiple levels, for example: /content /en +{CAC1} /animals /dogs +{CAC2} /hound /bloodhound /dachshund /poodle /cats /de Suppose that I have the resource for `bloodhound` and then I do:ConfigurationBuilder builder = resource.adaptTo(ConfigurationBuilder.class);myConfig = builder.as(MyConfig.class);I can access the configuration properties as needed, but how to get the path where the actual configuration is defined which in this case would be pa...

Views

460

Likes

0

Replies

1
Re: Writing Files to the JCR using a Sling Servlet - Adobe Experience Manager 26-11-2016
There is no need to use the adminSession. Instead you can get the ResourceResolver from the request object and adapt it to a Session: ResourceResolver resourceResolver = request.getResourceResolver(); Session session = resourceResolver.adaptTo(Session.class); Node node = session.getRootNode().getNode(path); // IMPORTANT: note that you do not need to logout out of the session in this case

Views

783

Likes

0

Replies

0