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

vmadala
Community profile vmadala Level 3
AEM Technical Lead
Singapore
18 BADGES
Level 3

Level 3

Learn more
Joined the community 25-09-2020 7:06:50 PM
Online
Top badges earned by vmadala
Customize the badges you want to showcase on your profile
Re: Java JCR/Adobe AEM: How do I access the node directly without using queries?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @jayv25585659 , You can use @Inject@Source("sling-object")private ResourceResolver resourceResolver;resourceResolver.getResource(); If this code is in Model class (Basically in Author) you don't need any service user, But if you want to get ResourceResolver in any other services like servlets you need service user with permission to access that node.And if you want create if node doesn't exists, can use below method ResourceUtil.getOrCreateResource(resolver, path, ....);

Views

130

Likes

2

Replies

1
Re: Is there way to get ACL list for given resource path.?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Thanks @Arun_Patidar, I've achieved the solution. Just FYI, I got all the user from the SQL2 query and used UserManager API to get the permission for given path.

Views

85

Likes

0

Replies

0
Is there way to get ACL list for given resource path.?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello Experts, I would like to get all allowed users (read/write) list for a given resource path.Let say I have a user called 'test-user' and I gave read/write permissions for '/content' folder and all child folders under '/content' folder.I would like to write a API bypassing a resource path as a request parameter (could be '/content' or any children of '/content')and get all the allowed users (read/write) for that given path.I wrote the below code, but it's returning the only configured users ...

Views

142

Like

1

Replies

3
Re: Is there anyway to publish Event handler at receiver...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Thanks @Dipti_Chauhan.

Views

111

Likes

0

Replies

0
Re: Is there anyway to publish Event handler at receiver...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Thanks @shelly-goel.

Views

113

Likes

0

Replies

0
Re: How to maintain the memory cache in AEM .?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Thanks @BrianKasingli, the above topic is talking about dispatcher cacher, but I want memory cache in java.

Views

354

Likes

0

Replies

0
Is there anyway to publish Event handler at receiver side.?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello Team, I would like to write a publish event handler at receiver serve, which means I would like to register/handle an event if my publish serve receives any content from the author server. Is there any way.?

Views

159

Like

1

Replies

4
Re: How to maintain the memory cache in AEM .?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Thanks @Dipti_Chauchan, Is there any way can we handle these events on publish server (not on author).?

Views

347

Likes

0

Replies

0
Re: set page properties for Redirect to different home pa...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @sunitaBorn , We've cq:redirect property, you can add this property under jcr:content node for source page. cq:redirectTarget:

Views

253

Like

1

Replies

0
Re: How to maintain the memory cache in AEM .?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Thanks @Bimmi_Soi, The provided link is talk about dispatcher, I want to implement memory cache in AEM publish server.

Views

366

Likes

0

Replies

0
How to maintain the memory cache in AEM .?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello Team,Let me try to explain our problem, We have a large number of pages (around 200+ pages) and these are all structured pages with some data points. We have an end-user landing page, this page has a couple of filters to filter the results.As of now we're processing all pages data on an ajax call and returning the data to the browser on page loading.With this approach, the page is getting timeout errors/slow rendering sometimes.We've decided to implement the memory cache on publishing node...

Views

481

Like

1

Replies

11
Can someone please point me to the adobe Java public API docs?
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Can someone please point me to the adobe Java public API docs?When I tried on google, It's pointing me to the older version of the package install page.

Views

115

Likes

0

Replies

2
Re: Language Copy
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @arvind, We used for "Latin America" language as "es", I confused with the page title. Please see below the screenshot and Spanish-us we used "en" since we don't need any translation for that. Spanish Latina AmericaSpanish US

Views

195

Like

1

Replies

0
Re: Language Copy
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @arvind , I think it's always better to give ISO language codes so that it will be no issues in case of translations. We're using smartling translation which will automatically update the language pages based on the ISO language codes. We're using these languages in our project, but we didn't create these languages in resources/languages path. Please see the below codes we're using for our project. 1. Spanish US, es_US2. Spanish Latin America, es_LA.

Views

195

Like

1

Replies

0
Re: What is the purpose of granite.ui.quickactions catego...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @JakeCham I understand that you want to execute JS code when you clicked on the "create -> page" button. I've achieved this in my local, please see the below steps.Please let me know if you need more info. 1. Overlay the node items from this path, "/libs/wcm/core/content/sites/jcr:content/actions/secondary/create/items", will create a node items node under /apps folder as shown in the screen-1.2. Create a clientlibs node, with the sling:resourceType is "granite/ui/components/coral/foundati...

Views

204

Like

1

Replies

0
Re: Live copy issue in AEM 6.5 when Synchronizing the upd...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
I think you have to select this option "Rollout config" -> "Push on modify" option in the master/parent page to reflect the changes to live pages. Thanks,Venkat.M

Views

229

Likes

2

Replies

1
Re: What is the purpose of granite.ui.quickactions catego...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @JakeCham ,As per my understanding, You want to load your javascript code during page creation, which is in page properties/editor mode. We've achieved this in our project. Please see below sample code:1. Create a clientlib, under page component "/apps//components/structure/page" as shown in the below screenshot.2. Add "categories" name as shown in the below screenshot.3. Add "extraClientlibs" property to the cq:dialog node under the page component. Let me know if you need more info.

Views

216

Like

1

Replies

1
Re: What is the purpose of granite.ui.quickactions catego...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @JakeCham ,As per my understanding, You want to load your javascript code during page creation, which is in page properties/editor mode. We've achieved this in our project. Please see below sample code:1. Create a clientlib, under page component "/apps//components/structure/page" as shown in the below screenshot.2. Add "categories" name as shown in the below screenshot.3. Add "extraClientlibs" propery to the cq:dialog node under the page component. Let me know if you need more info.

Views

209

Like

1

Replies

0
Re: How to find live copies pages for a blueprint page
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @ASK_93 , The below piece of code is working fine for me to get the live relation copies from the master page. LiveRelationshipManager liveRelationManager = resourceResolver.adaptTo(LiveRelationshipManager.class); Resource resource = resourceResolver.getResource(); try { RangeIterator iterator = liveRelationManager.getLiveRelationships(resource, null, null); while(iterator.hasNext()) { LiveRelationship liveCopy = (LiveRelationship)iterator.next(); } } catch (WCMException e) { //Log the err...

Views

165

Like

1

Replies

0
Re: Issue while migrating HTML from JSON object into text...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @samikshaa223429 , As per my understating, there are some special un-standard characters in your HTML areas that are non-ASCII chars. You need to remove that special character while converting from HTML area to text component text by replacing all the non-ASCII chars to empty. Something like below, String textContent = htmlContent.replaceAll("[^\\p{ASCII}]", ""); Thanks,Venkat.M

Views

199

Like

1

Replies

1
Re: Detach a live copy programatically
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
@aemg12 ,The best practice is always sent the english language copy (not the live copy) for translation. You have to create your blueprint accordingly. Anyway, Yes we can detach the live copy through programatically, in your site root page, "jcr:content/cq:LiveSyncConfig" in this node needs to add "cq:excludedPath" property with all the detach page paths. Thanks,Venkat

Views

163

Like

1

Replies

2
Re: Want to use Tags to create meta data
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
@ShagunMalikMy bad missed one import import javax.annotation.PostConstruct; Here you go complete file, import javax.annotation.PostConstruct; import org.apache.sling.api.resource.Resource;import org.apache.sling.api.resource.ResourceResolver;import org.apache.sling.models.annotations.Model;import org.apache.sling.models.annotations.injectorspecific.SlingObject; import com.day.cq.tagging.Tag;import com.day.cq.tagging.TagManager; import java.util.Iterator; import org.apache.sling.models.annotation...

Views

285

Likes

0

Replies

0
Re: Want to use Tags to create meta data
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
@ShagunMalik, Please import the below classes into the class, import org.apache.sling.api.resource.Resource;import org.apache.sling.api.resource.ResourceResolver;import org.apache.sling.models.annotations.Model;import org.apache.sling.models.annotations.injectorspecific.SlingObject; import com.day.cq.tagging.Tag;import com.day.cq.tagging.TagManager; import java.util.Iterator; import org.apache.sling.models.annotations.DefaultInjectionStrategy;

Views

314

Likes

0

Replies

0
Re: How to pass some HTL variables/objects to a clientlib...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @jayv25585659 , Please see @Ritesh_Mittal answer and another way is. you can write this way in your HTL file, declare javascript and assign the objects. and these variabels available to access in the clientlib.var mypageVars = "${mypageVars}";<script> mypageVars object is available in the javascript code. Thanks,Venkat

Views

134

Like

1

Replies

0
Re: Proxy component throwing error (Uncaught TypeError: w...
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @Blaiirrr ,It seems the issue with author mode only. So custom javascript is loading in author mode and causing this JS issue, there are 2 ways to check the component level custom javascript&colon; 1. Do you have any extra clientlib javascript for this Accordion proxy component, check "extraClientlibs" property on cq:dialog node if node is there.2. Is there any "clientlib" folder under this proxy component.? Let me if you need more.

Views

441

Like

1

Replies

1
Re: Want to use Tags to create meta data
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
ShagunMalik if I understand you correctly, you're trying to load the tags and want a modal to fetch these meta tags. Sample code for you: 1. Create meta tags in under "/content/cq:tags/metatags"2. Modal Java class: @Model(adaptables=Resource.class, defaultInjectionStrategy=DefaultInjectionStrategy.OPTIONAL)public class MetaTagModel { final String path = "/content/cq:tags/metatags"; @SlingObjectprivate ResourceResolver resourceResolver; Tag tag; @PostConstructprotectedvoid init() {TagManager tagM...

Views

348

Like

1

Replies

4
Re: AEM6.5 console error 404 for clientlibrarymanager
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
I'm not sure how you're loading the clinelibs, It seems the path isn't valid. Try to load by the libs by calling the 'categories' name, It'll include the path automatically. Usually, the path should be inside the project let say my project name is 'training' path should be like below: /etc.clientlibs//clientlibs/soical/thridparty etc..

Views

300

Like

1

Replies

0
Re: Not able to fix these dependency issues
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello Heena, You're correct, I think you need to downgrade your bundle versions in the parent pom.xml file, To update these jars on AEM instances you need to upgrade the AEM version. What version are using now .?And you're child module also need separate pom.ml files. Thanks,Venkat.

Views

404

Likes

2

Replies

1
Re: Not able to extends PageImpl.java from Core Components
Avatar
Boost 5
Level 3
vmadala
Level 3

Likes

23 likes

Total Posts

29 posts

Correct reply

6 solutions
Top badges earned
Boost 5
Establish
Boost 3
Boost 1
Affirm 1
View profile
vmadala
- Adobe Experience Manager
Hello @Reini- Since core implemented classes are in the internal package, you can't extend these classes into your package.This is expected behavior, you can get more info about this limitation here https://github.com/adobe/aem-core-wcm-components/issues/503I would suggest here, you don't need to copy all the code from the core implementation class (PageImpl.java),you can use the Delegation pattern for sling models. For this, you have to write a model class and you can add you're own methods som...

Views

384

Like

1

Replies

0