[opencms-dev] How set set access control entries for a resource programatically?

Mathias Lin mail at mathiaslin.com
Mon Sep 17 11:22:13 CEST 2012


Nevermind, found it in the
http://files.opencms.org/javadoc/core/org/opencms/file/CmsObject.html
class.
chacc, etc.


On Mon, Sep 17, 2012 at 5:09 PM, Mathias Lin <mail at mathiaslin.com> wrote:
> 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