Authentication v/s Authorization


Authentication and Authorization are often used together when it comes to gaining access to the system. However, both are very different concepts. Authentication means confirming your own identity, while authorization means granting access to the system. In simple terms, authentication is the process of verifying who you are, while authorization is the process of verifying … Continue reading Authentication v/s Authorization

Avoid Binary Duplication – Multilingual Assets


Asset binaries occupy much larger storage space compared to metadata and tags. Therefore, if translating metadata and tags only serves your purpose, omit to translate the binaries. File Data Store and Amazon S3 Data Store provide a storage infrastructure that is best suited for these scenarios. These storage repositories store a single copy of asset … Continue reading Avoid Binary Duplication – Multilingual Assets

DS Annotations – Sling Filter


Sling supports filter processing by applying filter chains to the requests before actually dispatching to the servlet or script for processing. They can be used to call a servlet, to redirect to another page, to authenticate request, preprocessing, post-processing of mark up, logging, measuring, decoration or adding/removing request parameters. Filters to be used in such … Continue reading DS Annotations – Sling Filter

Manage access to links in Global navigation panel / Tools Menu


We often have to tighten the link access in AEM to limit user access to only few links, like only Sites, Experience fragments. For AEM 6.3 touch UI, if you wish to revoke access on a link in Global Navigation Panel, you will have to follow 2 steps: Revoke access on the icon that displays … Continue reading Manage access to links in Global navigation panel / Tools Menu

Customizing AEM Toolbar


Adding new action to an AEM Assets Toolbar consists of 2 steps: Configure the new action for the toolbar Add a client library to execute some operation on clicking the action. In the following example, we are adding ability to publish and unpublish assets from the Collection view. Step 1: Resolving the location of toolbar … Continue reading Customizing AEM Toolbar

cURL execution from Java program


cURL is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNETand TFTP). The command is designed to work without user interaction. With AEM, you can use cURL commands to modify repository, download json, access OSGi information etc. Snippet to download a json … Continue reading cURL execution from Java program