mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Site Service: expose methods to get group names and available site roles
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10479 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -140,4 +140,15 @@ public class ScriptSiteService extends BaseScopableProcessorExtension
|
||||
}
|
||||
return site;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of all the roles that can be assigned to a memeber of a site.
|
||||
*
|
||||
* @return String[] roles available to assign to a member of a site
|
||||
*/
|
||||
public String[] listSiteRoles()
|
||||
{
|
||||
List<String> roles = this.siteService.getSiteRoles();
|
||||
return (String[])roles.toArray(new String[roles.size()]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user