siteService.listSites("", ""); ou siteService.listSites(null, null);
listSites(java.lang.String userName)
List all the sites that the specified user has a explicit membership to.
de la façon suivante :var listeSite = siteService.listSites("nom d'utilisateur");
model.sites = listeSite;
La méthode 'org.alfresco.repo.site.script.ScriptSiteService.listSites(string)' est introuvable
// Get the list of sites
var sites = siteService.listUserSites(userName);
var sizeString = args["size"];
if (sizeString != null)
{
var size = parseInt(sizeString);
if (size < sites.length)
{
// Only return the first n sites based on the passed page size
var pagedSites = new Array(size);
for (var index = 0; index < size; index++)
{
pagedSites[index] = sites[index];
}
sites = pagedSites;
}
}
model.sites = sites;
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.