01-27-2011 03:56 AM
01-27-2011 06:07 AM
siteService.listSites("", ""); ou siteService.listSites(null, null);
01-27-2011 06:38 AM
01-27-2011 07:04 AM
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
01-27-2011 07:39 AM
// 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;
01-27-2011 08:33 AM
01-27-2011 10:52 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.