[opencms-dev] How set set access control entries for a resource programatically?
Mathias Lin
mail at mathiaslin.com
Mon Sep 17 11:09:22 CEST 2012
How set set access control entries for a resource programatically?
I learned from the mailing list in another context that it's usually
not necessary to ever use/call the CmsSecurityManager and it's
instantiation method directly.
So, what's the correct way to apply or remove access control entries
for a resource?
I'm looking for methods that do the same as:
CmsSecurityManager.newInstance(...).getAccessControlEntries
CmsSecurityManager.newInstance(..).copyAccessControlEntries
CmsSecurityManager.newInstance(...).removeAccessControlEntry
I couldn't find anything through the org.opencms.main.OpenCms class,
for example: OpenCms.getResourceManager() doesn't give me any suitable
methods, neither does the CmsFile/CmsResource .
Thanks,
Mathias
More information about the opencms-dev
mailing list