Expand my Community achievements bar.

AEMLearner-1989
AEMLearner-1989
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hi Team, I have created maven project and deployed the same into my local server. I have created a new package under core bundle just say(com.example.myOrg) and created a some couple of java classes . I am getting an error as "com.example.myOrg.*. cannot be resolved to a type" when I am using those ...

    Type

    Questions

    Views

    2.7K

    Like

    1

    Replies

    3
  • Sorry..its my bad...ResourceResolver resourceResolver = resourceResolverFactory.getServiceResourceResolver(param);Its working now...

    Type

    Questions

    Views

    4.3K

    Likes

    2

    Replies

    0
  • package com.adobe.aem.guides.wknd.core.impl;import java.util.HashMap;import java.util.Map;import javax.jcr.Node;import javax.jcr.RepositoryException;import javax.jcr.Session;import javax.jcr.ValueFormatException;import javax.jcr.lock.LockException;import javax.jcr.nodetype.ConstraintViolationExcepti...

    Type

    Questions

    Views

    4.2K

    Like

    1

    Replies

    0
  • Hi Yadav,I am using the same line of code in both the classes . Only difference is usertest is a servlet class and SearchService is a normal java class and calling a addproperty() method from slightly.Map<String, Object> param = new HashMap<>();param.put(ResourceResolverFactory.SUBSERVICE,"systemUse...

    Type

    Questions

    Views

    4.2K

    Like

    1

    Replies

    0
  • Both are same in bundle...am i getting systemUser for class A and anonymous user for class B. And also we are facing one more issue.. If i create a new package with existing maven project...its not getting deployed.. Anything i am missing here?

    Type

    Questions

    Views

    4.2K

    Like

    1

    Replies

    0
  • HI Team,core/pom.xml<?xml version="1.0" encoding="UTF-8"?><!-- |  Copyright 2017 Adobe Systems Incorporated | |  Licensed under the Apache License, Version 2.0 (the "License"); |  you may not use this file except in compliance with the License. |  You may obtain a copy of the License at | |      htt...

    Type

    Questions

    Views

    4.2K

    Like

    1

    Replies

    0
  • Thanks for your reply..I have created two different java class and try to consume same systemuser in both the class for different purpose.By default ..this systemuser has all the permission(Read & Write)com.aem.example.core.userTest.java & com.aem.example.core.impl.SearchService.javaUserTest.java - ...

    Type

    Questions

    Views

    4.2K

    Like

    1

    Replies

    0
  • Hi ,Thanks for your reply .Can you pls check my query here pls . systemuser is working some java class not for all ..example :com.aem.example.core.userTest - Its working ..its giving user id as systemUsercom.aem.example.core.impl.SearchService - Its not working ..its giving anonymous  

    Type

    Questions

    Views

    4.2K

    Like

    1

    Replies

    0
  • Can you pls check hereSystemUser issue

    Type

    Questions

    Views

    4.2K

    Like

    1

    Replies

    0
  • Hi Team,I have created a systemUser and add the same into user mapper configuration user mapper configuration:com.adobe.aem.guides.aem-guides-wknd.core:systemUser=systemUserCode:and getting the same via param.put(ResourceResolverFactory.SUBSERVICE,"systemUser"); log.info("userid"+resource.getUserID(...

    Type

    Questions

    Views

    1.6K

    Likes

    2

    Replies

    1
Top badges earned by AEMLearner-1989
Customize the badges you want to showcase on your profile