With Javascript Webscript, I can get a group node with the following code:
var group = People.getGroup(groupname);
What would be the Java-backed equivalent of this code?
So far I can only get a set of all group names, but I would like to be able to iterate through the set and get the actual group node.
//Gets all groups, but only as a set of groupnames
Set<String> groups = new HashSet<String>();
groups.addAll(authorityService.getAllAuthorities(AuthorityType.GROUP));
for (String groupname : groups) {
//jscript equivalent - var group = People.getGroup(groupname);
}