wttech / APM

AEM Permission Management (APM) is an AEM based, cloud compatible tool focused on streamlining the permission configuration.
Apache License 2.0
54 stars 15 forks source link

Add automatic script execution based on Vault hook #206

Closed pun-ky closed 4 years ago

pun-ky commented 4 years ago

It would be nice if automatic scripts execution will be performed if package has corresponding vault hook defined like in AC tool, and consumed e.g in this way: https://github.com/Cognifide/gradle-aem-multi/blob/master/aem/sites/build.gradle.kts#L43 personally, I am convinced that it is a very elegant way, because permission management is placed directly in application / under same /apps/folder in repository (https://github.com/Cognifide/gradle-aem-multi/tree/master/aem/sites/src/main/content/jcr_root/apps/example/sites/permissions)

I am not sure if currently available mechanism using jcr listener will work properly with multiple files and script inclusions

mjedraszczyk commented 4 years ago

It's done slightly different than in the ticket. There is still one place to store scripts: /conf/apm/scripts. And script needs to have property cqsm:executionMode= ON_HOOK.