Automate Space creation using Template
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2013 11:02 AM
I'm new to Alfresco.I need to automate the process of space creation when a new space is created.I define the template inside space template folder in Data Dictionary.But i do not how to automate the application of this template under User Homes folder.
I'm looking any one of this options.
Option 1: Create Rule that apply the space template to the new space that is created under a particular parent.
Option 2:I'm using OpenCMIS API.If through OpenCMIS if i can create the pass the template object to createfolder function and apply the template.
Please let me is it possible to do the requirement through any of the above options.
Thanks Shyam
I'm looking any one of this options.
Option 1: Create Rule that apply the space template to the new space that is created under a particular parent.
Option 2:I'm using OpenCMIS API.If through OpenCMIS if i can create the pass the template object to createfolder function and apply the template.
Please let me is it possible to do the requirement through any of the above options.
Thanks Shyam
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2013 07:21 AM
Hi,
I think that option 1 works and it is very easy to implement.
You can, for example, define a rule to execute the following script:
when a folder is created in "User Homes".
The script executes a deep copy of the template folder to the newly create space: the "document" object is actually the the user home space.
I think that option 1 works and it is very easy to implement.
You can, for example, define a rule to execute the following script:
var template = companyhome.childByNamePath("Data Dictionary/Space Templates/test"); template.copy(document, true);
when a folder is created in "User Homes".
The script executes a deep copy of the template folder to the newly create space: the "document" object is actually the the user home space.
