Skip to main content

Posts

AEM Virus Scan

 Does AEM provide Virus Scanning for DAM assets? Here is the solution that the Valtech Team provides. AEM Virus Scan (AVS) tool that greatly simplifies virus scans.  It supports Clam AV scanner out-of-the-box and can be extended by custom scanning engines. It also provides a GUI to see the latest alerts and allows to running of manual scans. The complete AVS package can be installed by updating pom.xml with the below dependency  AEM 6.5           < dependency > < groupId >de.valtech.avs</ groupId > < artifactId >avs.complete</ artifactId > < version >LATEST</ version > < type >zip</ type > </ dependency > AEM Cloud           < dependency > < groupId >de.valtech.avs</ groupId > < artifactId >avs.complete.cloud</ artifactId > < version >LATEST</ version > < type >zip</ type &
Recent posts

How to set debug points in IDE Intellij

  Below are the steps to setup debug point in intellij Open startup.bat file located in crx-quickstart\bin and locate "::* default JVM options" in the file  Find : if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true Replace : if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx 2048m -XX:MaxPermSize= 1024M -Djava.awt.headless=true -debug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address= 30303 Explanation : In the above script we are increasing the JVM_OPTS size from 1024m to 2048m, increasing MaxPermSize from 256M to 1024M, and running the debug port on the 30303 port.  Now in intellij we need to configure the debug port for core bundle  Open Run from the intellij options Open " Edit Configurations " and select " Remote JVM Debug " Configure Name , Port,  and Use Module classpath fields  and select " Apply " and then " Ok " Now after successful configurat

Creating AEM Project from MVN Archetype

How to Create the AEM Project There are a couple options for creating a Maven Multi-module project for AEM. I am using    Maven AEM Project Archetype  35 . Cloud Manager also   to initiate the creation of an AEM application project. The underlying project generated by the Cloud Manager UI results in the same structure as using the archetype directly. Open up a command-line terminal. Verify that Maven is installed: Run the below script in the command line to generate the project in batch mode: mvn -B org.apache.maven.plugins:maven-archetype-plugin: 3.2.1 :generate -D archetypeGroupId =com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion = 39 -D appTitle= "WKND Sites Project" -D appId = "wknd" -D groupId= "com.adobe.aem.guides" -D artifactId = "aem-guides-wknd" -D package = "com.adobe.aem.guides.wknd" -D version = "0.0.1-SNAPSHOT" -D aemVersion= "cloud" To target AEM 6.5.14+ replace  aemVersio

AEM dialog field restrictions to Group or Users

  A  Granite Render Condition  is a way of conditionally rendering a component in an AEM Touch UI dialog. User case: A set of AEM dialog fields need to be restrcited to a group of AEM users  Below is the Example for Custom Render Condition  Lets create a Sling model  import com.adobe.granite.ui.components.rendercondition.RenderCondition ; import com.adobe.granite.ui.components.rendercondition.SimpleRenderCondition ; import org.apache.jackrabbit.api.security.user.Authorizable ; import org.apache.jackrabbit.api.security.user.Group ; import org.apache.jackrabbit.api.security.user.UserManager ; import org.apache.sling.api.SlingHttpServletRequest ; import org.apache.sling.api.resource.ResourceResolver ; import org.apache.sling.models.annotations. Model ; import org.apache.sling.models.annotations.injectorspecific. Self ; import org.apache.sling.models.annotations.injectorspecific. SlingObject ; import org.slf4j.Logger ; import org.slf4j.LoggerFactory ; import javax.annotation. PostConstruc