|
|
|
Change By:
|
Tobias Mattsson
(28/May/13 6:39 PM)
|
Description:
|
The goal is described in this UX design page: http://wiki.magnolia-cms.com/display/UX/How+ACLs+are+defined+to+restrict+access+to+nodes
Development is happening on the 'acls' branch.
Web Access Control * We add this as a separate tab with a dedicated field
ACLs * Each workspace/ACL will have its own field * The label of these fields are the workspace names * The fields are created dynamically rather than configuring them, by either: ** using a dynamic provider, similar to configuration-by-code, or ** by creating a definition in the edit action, like in pages app for adding components
Update: we're not using a provider to add fields because it would be overwritten when the configuration in workspace changes. Instead the action reads a fresh dialog definition from the workspace and then adds the fields. This also means we don't have to require fields to be clonable.
Storing * challenge: base on the type we have to create two ACL nodes * we use a similar approach to the mulit select field ** the field edits a ObjectProperty<List<ACL>> (Vaadin) ** an ACL POJO is used (permission, type, path) ** options: *** a) the property creates the node structure using the JCRAdapters **** when prop.setValue(List<ACL>) is called **** this is how the 'basic' multi select field works *** b) the action creates the structure on save **** if a) doesn't make sense
Choose dialog * problem: ** not all workspaces have an app ** not all choose dialogs return a path (DAM returns an asset id) * solution ** we construct a choose dialog *** uses a generic workbench configuration *** the configuration is build by code
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------