Category: Adobe CQ
-
Adobe Experience Manager Learning Series – Part 2
This is my first post in this year. With my last post, I have completed second series of video tutorials that covers some of the main concepts in AEM development. We didn’t do anything complex; however, it will help you to get a quick start. If you are learning, see my blog too. It has the transcripts available.…
-
Create a custom workflow
In this post, we will see how to implement a workflow using AEM. As the name suggests, a workflow represents a step-by-step process to accomplish a common task. For example, author creates the content. Then, the content goes to an editor for approval. After the approval, the content can be published. As usual, we will see a…
-
Create a custom JCR event
In this session, we will see how to create a custom event and manage it. A custom event helps you to manage a specific activity happened on an AEM instance. For example, you want to send an e-mail to an editor as soon as an AEM page is created by a content creator; so that the editor…
-
Search in AEM repository
In the last session, we have seen how to add a property to a JCR node. We primarily created a resourceResolver object and created a resource using the path to the node where we wanted to set the property. Converted the resource into a Node using the adptTo() method. And, then used the setProperty() method to set the…
-
Update a node property using an AEM bundle
In the previous session, we have seen how to obtain a Resource. We later, translated the Resource into a Page object, and then programmatically obtained its title. We will see one more example. Here, using an AEM bundle, we will write a property to the Page we created. In this case too, we need to use a Resource object…
-
Access a resource property using an AEM bundle
In this session, we will learn about how to access resources using bundles deployed in the Felix console. After all, for Sling, everything is a resource. We will update the bundle we developed with a method that accesses a node and prints its title. Though it sounds very simple, we will learn about a very important…
-
Manage Sling requests using Java Servlets
In this session, we will see how to manage Sling requests using Java Servlets. Servlets are programs that run on a Web server and act as a middle layer between a request and a response. You can deploy Servlets in the Felix console and use them for managing the request from clients. An example: you need to print…
-
Create configurable parameters in an OSGi component
In this session, you will see how to configure values for various parameters in an OSGi bundle and obtain the same for further processing. We will also learn about ComponentContext object that helps to interact with a component. (As usual, it’s a continuation of the previous session. Obtain the latest package and project from GitHub.)…
-
Enable logging for a bundle
In this session, we will see how to enable logging for a bundle. We will later create a logger configuration in Felix console and will specify a file to write the logs. Enabling logging in a bundle helps you a lot while debugging. We will use Simple Logging Facade for Java (SLF4J). It’s an abstraction of various…