04-05-2012 12:17 PM
namespace LogiqueMetier
{
public class SiteAlfrescoManager
{
public SiteAlfrescoManager()
{
}
public string AjouterSite(string siteID, string titre, string description, string visibilite)
{
string json = @"{
""shortName"" : """ + siteID + @""",
""sitePreset"" : ""site-dashboard"",
""title"" : """ + titre + @""",
""description"" : """ + description + @""",
""visibility"" : """ + visibilite + @"""
}";
//Création du site dans Alfresco
string result = new RequetesHttpManager().post(new Uri("http://localhost:8080/alfresco/service/api/sites"), json);
return result;
}
…
}
<webscript>
<shortname>Utility Service for creating site programmatically</shortname>
<description>Utility Service for creating site programmatically</description>
<url>/modules/custom-site</url>
</webscript>
var tokens = new Array();
tokens["siteid"] = args.shortName;
sitedata.newPreset(args.sitePreset, tokens);
string result2 = new RequetesHttpManager().get(new Uri("http://localhost:8080/share/service/modules/custom-site?shortName=+ siteID + "&sitePreset=site-dashboard"));
il génère une erreur 500.04-16-2012 10:13 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.