Change space permission with the JavaScript API

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 07:57 AM
Hi Alfresco,
Some weeks ago I requested to expose the permission settings in Freemarker: http://www.alfresco.org/jira/browse/AWC-648. Kevin resolved this issue and this will be available in the 1.3 Enterprise release. Nice, great, perfect, thanks!
Now I would like to request the same feature for the JavaScript API. As far as I can see (and I may be overlooking some things here so correct me if I'm wrong) it's not possible to remove or add users and groups as space users with the JavaScript API.
I need to add groups dynamically, depending on their parent folder:
Secondly I would like to trigger this script when a new space (subfolderA in this case) is created, is this possible?
This would allow me to make some templates and let the coordinator of this customer space create subfolders on the fly. He would then select the template "meeting minutes" and all the read and write permissions of this template could be set correctly by the script. Some general permissions will be set in the template but the customer specific permissions need to be added at creation time.
Some weeks ago I requested to expose the permission settings in Freemarker: http://www.alfresco.org/jira/browse/AWC-648. Kevin resolved this issue and this will be available in the 1.3 Enterprise release. Nice, great, perfect, thanks!
Now I would like to request the same feature for the JavaScript API. As far as I can see (and I may be overlooking some things here so correct me if I'm wrong) it's not possible to remove or add users and groups as space users with the JavaScript API.
I need to add groups dynamically, depending on their parent folder:
- * company1
- - subfolderA
Secondly I would like to trigger this script when a new space (subfolderA in this case) is created, is this possible?
This would allow me to make some templates and let the coordinator of this customer space create subfolders on the fly. He would then select the template "meeting minutes" and all the read and write permissions of this template could be set correctly by the script. Some general permissions will be set in the template but the customer specific permissions need to be added at creation time.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 08:24 AM
No reactions regarding this idea?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 12:48 PM
There will be several additions to the JavaScript API for 1.4 - please add any suggestions you have to a task in JIRA. The ability to set() permissions will definitely be added.
Thanks,
Kevin
Thanks,
Kevin
