我想编写一个Jenkins python作业,比较两个不同的AEM环境中Node权限的差异。在Jenkins UI中,我应该能够配置要比较的环境和要比较的路径。我需要输出的方式,它应该有环境-1和环境-2,正在被比较的路径和他们拥有的权限。例如,在Dev环境中,对于path /content/dam/test,我们只有读取权限,对于相同的路径,我们在工作台环境中具有读写权限,那么输出应该是
**Environment-1** **Environment-2**Content/dam/test读写
这里的真正问题是如何从两个aem环境检索节点权限,以及如何比较和筛选权限不同的节点路径?
发布于 2019-03-05 15:12:53
看看PageInfo servlet。示例调用:http://localhost:4502/libs/wcm/core/content/pageinfo.json?path=/content/we-retail/us/en
您将得到这样一个权限节点:
"permissions": {
"modify": true,
"replicate": true,
"read": true,
"create": true,
"delete": true,
"acl_read": true,
"acl_edit": true
},有关详细信息,请参阅:https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/pageinfo.html。
https://stackoverflow.com/questions/54930746
复制相似问题