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:
Roy Wetherall
2008-08-21 16:32:30 +00:00
parent be93fb9ca5
commit f8e72d6b47
6 changed files with 100 additions and 1 deletions

View File

@@ -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()]);
}
}