05-14-2009 09:12 PM
SiteInfo siteInfo = this.serviceRegistry.getSiteService().createSite("TestSite", "1234567", "for-santhana", "description", true);
System.out.println("successful site, and the details are "+" preset= "+siteInfo.getSitePreset()+" shortname= "+siteInfo.getShortName());
06-26-2009 08:11 AM
var components = avm.lookupNode("sitestore:/alfresco/site-data/components");
if (components == null) {
logger.log ('components null');
return 507;
}
logger.log ('got store and components');
var dashFile = components.createFile("page.title.site~" + shortName + "~dashboard.xml");
logger.log ('got dash file');
06-26-2009 11:14 AM
07-01-2009 02:50 PM
07-01-2009 05:54 PM
…was expecting that the default container like "documentLibrary" will be created and was grabbing the NodeRef for it. Unfortunately I discovered it is not creating immediately, but is being created only after someone was physically going to the site and clicking on the site to open from the browser. Which does not serve my purpose.That's correct: containers are not created until first accessed. This is something we may revisit in a future version, so you should always check for the container first before creating it - and always go through the Site Service's createContainer() to do so.
So I created documentLibrary as a container in newly created share (in my infamous java code) and went ahead and had no issues (You may ask so what is your issue, I am just pointing it out so others do not waste time like I did)… Let me know if anyone wants code I can post it here…
07-13-2009 01:45 PM
05-11-2010 05:51 AM
my $GetRequest = HTTP::Request->new
(
'POST',
"http://HOST:PORT/alfresco/service/api/sites?alf_ticket=$alfTicket",
$h,
' {"visibility":"PUBLIC","description":"test","url":"/services/api/sites/test","sitePreset":"site-dashboard","title":"test","shortName":"test"}'
);
Then I use POST /share/service/modules/create-website: to populate sitedata on the Share side :
my $GetRequest2 = HTTP::Request->new
(
'POST',
"http://HOST:PORT/share/service/modules/create-site",
$h2,
'{"shortName":"test", "sitePreset" : "site-dashboard"}'
);
11-13-2014 08:07 AM
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.