You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2005/01/28 11:37:04 UTC
[Cocoon Wiki] New: RightsManagement
Date: 2005-01-28T02:37:04
Editor: JensMaukisch
Wiki: Cocoon Wiki
Page: RightsManagement
URL: http://wiki.apache.org/cocoon/RightsManagement
no comment
New Page:
= RightsManagement =
The RightsManagement should restrict the access to plugins, functions inside the plugins or or actions
inside the functions. It is configured via a XML-File (the auht-file you pass to the PortalToolManager, not fully implemented yet, itÂ’s a simple textfile atm)
/!\ The RightsManagement is currently under development and may change.
== Configuration (auth.xml) ==
=== Current Configuration ===
Simple properties file with a url pattern on the left side and the allowed roles on the right side:
copletManagement/showTab=admin[[BR]]
copletManagement/showTab*=admin[[BR]]
copletManagement/selectSkin*=admin+guest[[BR]]
=== New Configuration (proposal) ===
{{{
<auth>
<plugin id="copletManagement">
<functions>
<function id="showTab">
<roles>
<role>admin</role>
</roles>
<users>
<user>cocoon</user>
</users>
</function>
<actions>
<action id="moveUp">
<roles>
<role>admin</role>
</roles>
</action>
</actions>
</functions>
</plugin>
</auth>
}}}
== Components ==
* CheckAccessAction
* CheckAccessTransformer