AnsweredAssumed Answered

Create Site in alfresco using open cmis extension

Question asked by smita on Jul 31, 2013
Latest reply on Jun 25, 2014 by kaynezhang

I want to create a alfresco site using open cmis extension. I researched and found an object type 'F:st:sites' and its properties like 'st:siteVisibility'  and 'st:sitePreset'. But I am not very sure that using this we can create a site in alfresco and I am not able to find any method for creating a site. It could be something like

      Map<String, Object> properties = new HashMap<String, Object>();
       properties.put(PropertyIds.NAME, "mySiteName");
       properties.put(PropertyIds.OBJECT_TYPE_ID, "F:st:sites");
       properties.put("cmis:path", "/Sites");
       properties.put("cmis:createdBy", date);
       properties.put("st:siteVisibility", ScriptSiteService.PUBLIC_SITE);
   // TODO: add method for creating site with session object

Please reply.

   Also, if there is any other way to create a site other than apache's Http api, Please share.