mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Sites collection added to person rest API, check point of tagging rest API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10025 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -103,7 +103,24 @@ public class ScriptSiteService extends BaseScopableProcessorExtension
|
||||
sites.add(new Site(siteInfo, this.serviceRegistry, this.siteService, getScope()));
|
||||
}
|
||||
return (Site[])sites.toArray(new Site[sites.size()]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* List all the sites that the specified user has an explicit membership to.
|
||||
*
|
||||
* @param userName user name
|
||||
* @return Site[] a list of sites the user has an explicit membership to
|
||||
*/
|
||||
public Site[] listUserSites(String userName)
|
||||
{
|
||||
List<SiteInfo> siteInfos = this.siteService.listSites(userName);
|
||||
List<Site> sites = new ArrayList<Site>(siteInfos.size());
|
||||
for (SiteInfo siteInfo : siteInfos)
|
||||
{
|
||||
sites.add(new Site(siteInfo, this.serviceRegistry, this.siteService, getScope()));
|
||||
}
|
||||
return (Site[])sites.toArray(new Site[sites.size()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a site for a provided site short name.
|
||||
|
Reference in New Issue
Block a user