Automatically creates space inside a user space

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2013 02:50 AM
May you help me solving my problem?
I need to automatically create a space inside a user space. So, it means that once a user signs up, aside from its user space, another space inside the user space will also be automatically created?
Thank you very much.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2013 03:56 AM
- create a script into Data Dictionary\Scripts to create the required space as a child of the space identified by Document (which is the object that will trigger that script)
- create a rule on the space "User Homes" to be triggered when a new space is created, and that executes the script described previously
See following documentation article for more informations on the usage of rules to automate repetitive tasks : http://docs.alfresco.com/4.1/topic/com.alfresco.enterprise.doc/concepts/library-folder-rules.html

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2013 04:41 AM
Thank you very much! I will try that one. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2013 05:17 AM
Thank you very much…
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2013 06:42 AM
You just have to create a child folder for "document" in your script :
<javascript>var privateFolder = document.createFolder("Private Folder");</javascript>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2013 08:16 PM
I tried to put a line of code after creating the folder.. Here is the part of the code:
privateFolder = document.createFolder("privateFolder");
privateFolder.setInheritsPermissions(false);
What seems to be the problem?
Thank you very much!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2013 10:37 PM
In my script, there are permissions I have included.. But when the process is actually implemented, permission I had specified is not working… Here's my code..
var privateFolder = document.createFolder("My Private Space");
var user = person.properties.userName;
if(privateFolder == null && space.hasPermission("CreateChildren")){
privateFolder = document.createFolder("privateFolder");
privateFolder.setPermission("All", user);
privateFolder.setInheritsPermissions(false);
}
Please help me.. Thank you very much..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2013 10:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2013 03:38 AM
When a user is created in Alfresco with the standard configuration, a private space is created into the repository under User Homes with the name of the user. For instance, my user home gets the path User Homes/ecarbenay.
When a space is created under User Homes it gets private : each user is able to see its space, but not the other users space.
So without changing permissions, inherited permissions keep the new space private.
Can you explain with more details what you want to realize and the difficulties you meet ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2013 04:27 AM
Is it different from yours?
Now, my problem is that a user gets access to the Private Folder inside the other user's home space. I think, it is because of permission inheritance. But I included in my script that turning off of that property. I think you dont get me because we have different standard configuration? Is it possible? Thank you..
