Hi
I want to retrieve permission data. Can I get to know where this data stored in CRXDE
so that I can get it.
Solved! Go to Solution.
Views
Replies
Total Likes
Permission data is stored in rep:policy nodes. For eg: you have given jcr read access of /content/<your-site> to "read-service" user and write access to "write-service". Then go to /content/<your-site>
click rep:policy, you will find allow nodes, check for rep:privileges
Thanks,
Heena
Permission data is stored in rep:policy nodes. So for example you give permission to a node /content/a for user test then a rep:policy node will be created under /content/a having a child node allow/deny containing user name as rep:principalName, rep:privileges as type of permission.
For Example :
Below are the details of API that you can refer :
Sample Code :
UserManager userMgr = ((org.apache.jackrabbit.api.JackrabbitSession) session).getUserManager(); AccessControlManager accessControlManager = session.getAccessControlManager(); Authorizable authorizable = userMgr.getAuthorizable(groupName); AccessControlPolicyIterator policyIterator = accessControlManager.getApplicablePolicies(nodePath);
Users and groups are stored under /home node. Please see [1] for details.
Permission data is stored in rep:policy nodes. For eg: you have given jcr read access of /content/<your-site> to "read-service" user and write access to "write-service". Then go to /content/<your-site>
click rep:policy, you will find allow nodes, check for rep:privileges
Thanks,
Heena
Views
Likes
Replies