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.Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.