Actually,At this line, rr = resourceFactory.getServiceResourceResolver(paramMap);It throws java.lang.NullPointerException.I think resourceFactory variable is not injected in osgi bundles..
Yes, I have configured the user mapping configuration in system console. In osgi bundles, wherever the .loginAdministrstive(null) is called , i have replaced by below written codes:-@Component(immediate=true) @Service(value = WriteSerive.class) public class WriteServiceImp implements WriteService { ...
Hi,Not able to inject resouceresolverfactory in following code.I created an interfacepublic interface WriteService{ public void getSession();{And a class which implemented an interface@Component(immediate=true) @Service(value = WriteSerive.class) public class WriteServiceImp implements WriteServ...
smacdonald2008 wrote... Follow this artilce and watch the video. For AEM 6.1 and 6.2 - you need to use a system user. http://scottsdigitalcommunity.blogspot.ca/2014/12/querying-adobe-experience-manager-6.html This will show you the proper way. I created system user.Not able to fix this issue..
Hi,I am working on AEM 6.2As loginAdministrator is depcreated.So i followed the link: http://adobeaemclub.com/access-to-resourceresolver-in-osgi-services-aem-6-1/I used following code in osgi-bundle:I created the service user and mapped as mention above link . Map<String,Object> paramMap = new HashM...
Hi,I want to edit the WCM Authoring UI Mode service programatically.I want to change :-Default authoring UI mode from EDITOR to CLASSIC.is there any way to edit this configuration using any API or curl command or write the code in bundles? Thanks
Thanks..In AEM 6.2, I am able to use loginAdministrative(null) method but not in AEM 6.3.we can still use this method in 6.2 but not in 6.3? is this correct?
Thanks , I agree with your point.But,I have to create a users and groups programatically that is in osgi-bundle , I think for it service user are required, doesn't it?Also, Can i create system user programatically? Thanks