AnsweredAssumed Answered

How to get a SiteService object in Java Backed Webscript

Question asked by driekhof on Aug 16, 2010
Latest reply on Sep 27, 2010 by driekhof
I haven't been able to find any examples of how to get a reference to a SiteService object in a webscript.  If my webscript Java class starts like this, how do I get a hold of a SiteService object (using latest alfresco 3.3 release)?


public class SiteMgrWebScript extends AbstractWebScript
{
    public void execute(WebScriptRequest req, WebScriptResponse res)  throws IOException
    {
       try   {

Do I need to extend another class other than AbstracWebScript?  Do I need to edit some Spring config file to define the SiteService bean.  Some example code would be most welcome.

Is it possible to create sites exclusively in Java code, or will I need to use a combination of Javascript and Java code to create sites?

Outcomes