cancel
Showing results for 
Search instead for 
Did you mean: 

Creating WebProjects using WebSripts

senthilnathan_s
Champ in-the-making
Champ in-the-making
Hi ,
    I have a scenario in which i want to create web projects using web scripts.Is it possible to do so? If possible can you kindly say me what are the service/services used for creating the web project. Smiley Happy
7 REPLIES 7

zaizi
Champ in-the-making
Champ in-the-making
AFIK, this is currently not possible to do via web scripts. However, it is quite straight forward to expose this to web scripts. You can create a custom java backed web script to do this for your particular use case. Examples of this is available at http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples.

senthilnathan_s
Champ in-the-making
Champ in-the-making
Hi,
Is it possible to give me an example,I am not able to find any information regarding this.

zaizi
Champ in-the-making
Champ in-the-making
Look at the previous link on how to create a custom java backed web script. Then take a look at the org.alfresco.web.bean.wcm.CreateWebsiteWizard to get the java code that creates the web project. If you set up the Alfresco SDK then you'll have access to the source code and java docs.

rdanner
Champ in-the-making
Champ in-the-making
Hi ,
    I have a scenario in which i want to create web projects using web scripts.Is it possible to do so? If possible can you kindly say me what are the service/services used for creating the web project. Smiley Happy

If you have not started with this stay tuned.  A lot of work is going in to service-ization of the operations related to the AVM and web projects – for example creating a web project or a sandbox.

http://wiki.alfresco.com/wiki/WebProjectService_interface

This is in draft for the moment

mrogers
Star Contributor
Star Contributor
The WCM web service API which will include createWebProject is being worked on now.   It is **very** tentatively planned for release in Alfresco 3.1 (which itself is a only a rough idea), so is some time away. 

Were at the stage of kicking ideas for the wcm web script interface around and sketching out solutions on the wiki.    Ideas are still rapidly evolving on the wiki, but you are welcome to look and contribute.

If you need a create web project webscript today then you will have to write your own script that calls one of the other APIs.

stevereiner
Champ in-the-making
Champ in-the-making
Also should fix not being able to  set/write to properties on avm nodes via javascript. (and not being able to set content property on existing avm nodes)

http://issues.alfresco.com/browse/ALFCOM-1720

http://forums.alfresco.com/viewtopic.php?f=36&t=12602

Steve

mrogers
Star Contributor
Star Contributor
The Web Script for Create Web Project is now on HEAD.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.