Which user is resolved when used ‘request.getResourceResolver()’ in AEM 6.3?

 

 Que: When you are accessing the resource resolver from a sling request object, what user is this resolver mapped to? Ans: If you do request.getResourceResolver(), the user is used of the current session. That is the recommended way, because the permissions are respected of the current user. Source

Read More

AEM 6.3 – Identify difference between foundation components and core components.

 

  Provide components that are easier to use. Reduces the number of code changes needed to use these components. It provides a way to configure a component once it’s used in a template via UI in template editor. Provides clear css naming to style and theme of the components without changing the HTL code. Introduces […]

Read More

Customize Touch UI

Customize Touch UI dialog for Image Component

 

 This article talks about disabling the ‘File Upload’ option for the image component in Touch UI dialog (screenshot shown below). This also helps in understanding Customizing the Touch UI dialog Inheriting the foundation component Lets follow the below steps: Create a custom image component under /apps/<your-app>/components/ Add a property sling:resourceSuperType = wcm/foundation/components/image to inherit the OOB image […]

Read More

Reading OSGi Configuration properties

 

 Having talking about different ways of managing OSGi configuration here, I would like to extend from there and talk about how to create the configuration properties for a service how to read the configuration values in the service. How to Create the configurable properties:

As shown in the above example, Use @Property annotation for […]

Read More