Session session = getRequest().getResourceResolver().adaptTo(Session.class);UserManager userManager = getResource().adaptTo(UserManager.class);Authorizable auth = userManager.getAuthorizable(session.getUserID());userId = auth.getID(); So I have the code above to get the currently logged in username...
Hello All,i am transforming my project from archetype-9 to archetype-20,i am able to build the code without an issue and but the bundle is not getting resolved.Below 2 packages are not getting resolved hence bundle is in "Installed" state.org.apache.sling.event,version=[2.3,3) -- Cannot be resolvedo...
Hey guys,I am using AEM 6.5 and I've deployed a custom OSGI service config. I was expecting to find the config under http://localhost:4502/system/console/configMgrHere is my Service. MyService.javapublic interface MyService { /** * This method returns the entered password into a hash equiv...
I have a project requirement where we have to make a role-based login website. On this website, any customer logged in can see their component only not others. I mean provide access permission based on Component. I don't want to use the database. We just want to use AEM features for user profiling a...
Built a new codebase using AEM Archetype 22. But code build (using command mvn clean install -PautoInstallPackage ) fails with the below message. How can this be resolved?Trying to deploy to AEM 6.3.3 on Windows 10 Enterprise[ERROR] Failed to execute goal on project sow3pocs.core: Could not resolve ...
I have configuration which contains various fields. I want to enable one text field if above field (check box) is selected.I am not sure how can i do that without using any js.
Hi Everyone This is my first posting to the adobe community. We are in the process of migrating from AEM 6.2 to Aem 6.5. I had to create a new table component in 6.5 that completely changed the table properties dialog. This was no problem in 6.2. However I've tried doing the same in 6.5 and I canno...
Hi, I am using AEM6.3 with Touch ui SP3 installed , unlock of custom page does not work. Please let me know how this could be resolved. when I tried unlock in custom page I see the error. core.js:32697 Uncaught TypeError: Cannot read property 'shared' of undefined at HTMLButtonElement.unlockPage ...