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

rajareddych
rajareddych
Offline

Badges

Badges
10

Accepted Solutions

Accepted Solutions
1

Likes

Likes
0

Posts

Posts
25

Discussions

Discussions
15

Questions

Questions
10

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by rajareddych
Customize the badges you want to showcase on your profile
Re: JUnit for Logic - Adobe Experience Manager 20-11-2019
I have resolved this myself. Thanks

Views

787

Likes

0

Replies

0
Re: JUnit for Logic - Adobe Experience Manager 08-11-2019
package service.core.workflows;import java.util.Collections;import java.util.UUID;import javax.jcr.Session;import org.apache.sling.api.resource.LoginException;import org.apache.sling.api.resource.ModifiableValueMap;import org.apache.sling.api.resource.Resource;import org.apache.sling.api.resource.ResourceResolver;import org.apache.sling.api.resource.ResourceResolverFactory;import org.apache.sling.jcr.resource.api.JcrResourceConstants;import org.osgi.framework.Constants;import org.osgi.service.co...

Views

773

Likes

0

Replies

0
Re: JUnit for Logic - Adobe Experience Manager 08-11-2019
did not help, i've gone through a lot of articles.Now I'm struck withif (childResource.getResourceType().equalsIgnoreCase(ServiceConstants.SOME_RESOURCE)) { name = "SomeResource"; } else if (childResource.getResourceType().equalsIgnoreCase(ServiceConstants.EXAMPLE_RESOURCE)) { name = "ExampleResource"; }

Views

773

Likes

0

Replies

0
JUnit for Logic - Adobe Experience Manager 07-11-2019
Help is appreciated in writing JUNIT for below code. @PostConstruct protected void invokepost() { super.Initialize(); qs = new ArrayList(); Iterator iteratorExp = resource.getChild("root/childParsys/").listChildren(); while (iteratorExp.hasNext()) { Resource childResource = iteratorExp.next(); SomeComponent map = childResource.adaptTo(SomeComponent.class); if(map != null) { qs.add(map); } if (childResource.getResourceType().equalsIgnoreCase(ServiceConstants.SOME_RESOURCE)) { name = "SomeResource...

Views

1.5K

Likes

0

Replies

6
JUnit for Workflow - Adobe Experience Manager 07-11-2019
Writing code is easy, but I'm finding it difficult to write JUnit tests for that code. Could anyone help in writing JUnit for the below workflow.public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) { log.info("\n------------- Workflow {Start} --------------------"); String contentPath = ""; WorkflowData workflowData = workItem.getWorkflowData(); final String type = workflowData.getPayloadType(); ResourceResolver resourceResolver = null; log.info("Workflow typ...

Views

617

Likes

0

Replies

0
Re: How to limit Parsys to one component dynamically. - Adobe Experience Manager 14-05-2019
I too got this idea, but unfortunately, I can use only 1 Parsys.

Views

753

Likes

0

Replies

0
How to limit Parsys to one component dynamically. - Adobe Experience Manager 13-05-2019
I have 2 components A & B and Parsys allowing both the 2 components.If I drag & drop component A, then the Parsys should only allow component A and should not be allowed for component B.If I drag & drop component B, then the Parsys should only allow component B and should not be allowed for component A.Can I achieve this condition? If so, how can I achieve this?

Views

806

Likes

0

Replies

2
Listener event not triggered - Adobe Experience Manager 19-04-2019
I am using below code to dynamically assign an ID to a component/template. Seems this is not getting triggered. Please helpimport javax.jcr.Node;import javax.jcr.RepositoryException;import javax.jcr.Session;import javax.jcr.observation.Event;import javax.jcr.observation.EventListener;import javax.jcr.observation.ObservationManager;import javax.jcr.observation.EventIterator;import org.apache.sling.api.resource.ResourceResolver;import org.apache.sling.api.resource.ResourceResolverFactory;import or...

Views

2.2K

Likes

0

Replies

2
Re: Generate Unique Component ID - Adobe Experience Manager 16-04-2019
I need a way to generate AEM inbuilt UUID for each component. I have read a lot of documents, but nothing has how to create it.

Views

1.4K

Likes

0

Replies

0
Workflow process step to assign a value to a node property in crx/de - Adobe Experience Manager 16-04-2019
I want to create a workflow process step for assigning a value to a component node's property in crx/de, /content folder.

Views

882

Likes

0

Replies

1