Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

AEMaaCS - ACS AEM Commons, Netcentric Accesscontroltool and AEM Groovy Console | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

AEMaaCS - ACS AEM Commons, Netcentric Accesscontroltool and AEM Groovy Console by Arun Patidar

Abstract

What is ACS AEM Commons, Netcentric Accesscontroltool and AEM Groovy Console?

ACS AEM Commons
A way to bootstrap AEM projects with common functionality, a set of reusable components, and an AEM development toolkit.


Access Control Tool for Adobe Experience Manager
The Access Control Tool for Adobe Experience Manager (AC Tool) simplifies the specification and deployment of complex Access Control Lists in AEM. Instead of existing solutions that build e.g. a content package with actual ACL nodes you can write simple configuration files and deploy them with your content packages. See Comparison to other approches for a comprehensive overview.



AEM Groovy Console
The AEM Groovy Console provides an interface for running Groovy scripts in Adobe Experience Manager. Scripts can be created to manipulate content in the JCR, call OSGi services, or execute arbitrary code using the AEM, Sling, or JCR APIs. After installing the package in AEM (instructions below), see the console page for documentation on the available bindings and methods. Sample scripts are included in the package for reference.



How to Deploy on AEM as a cloud service
This can be deploy using embedded packages in all module's pom.xml
For example check the below commit
https://github.com/arunpatidar02/aemaacs-aemlab/commit/bb4ccecdeff84c7253abb25baeeda5de40050746
https://github.com/arunpatidar02/aemaacs-aemlab/pull/4/files

Read Full Blog

AEMaaCS - ACS AEM Commons, Netcentric Accesscontroltool and AEM Groovy Console

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
4 Replies

Avatar

Community Advisor

@arunpatidar @kautuk_sahni 

 

Access Control Tool for Adobe Experience Manager is interesting - Can you elaborate more on  point 3 of 

https://github.com/Netcentric/accesscontroltool/blob/develop/docs/Migration.md

Create a permissions package in the source control

Create a permissions package in source control/maven and add the config file(s) to it along with the install hook to install the rules during package installation.

 

Thanks,

Pallavi Shukla

 

 

 

Avatar

Community Advisor

Hi,

When you add the ACL and wants to installhook, which is basically create the user/permission/aet permission during build and send back the results and you can get error in error.log

https://sling.apache.org/documentation/bundles/installer-provider-installhook.html 

https://jackrabbit.apache.org/filevault/installhooks.html 

 

 

example of plugin in POM

<plugin>
                <groupId>com.day.jcr.vault</groupId>
                <artifactId>content-package-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <filterSource>src/main/content/META-INF/vault/filter.xml</filterSource>
                    <verbose>true</verbose>
                    <failOnError>true</failOnError>
                    <group>My Group</group>
                    <properties>
                      <installhook.actool.class>biz.netcentric.cq.tools.actool.installhook.AcToolInstallHook</installhook.actool.class>
                    </properties>
                </configuration>
            </plugin>

 



Arun Patidar

Avatar

Community Advisor

Further you can check this sample ACL package(module) I created to install ACL

https://github.com/arunpatidar02/aemaacs-aemlab/pull/7/files 



Arun Patidar