Support creation of groups via REST

A new group can now be created by POST on '/groups/'. The WebUI was
adapted to create groups via REST.

Change-Id: Ib11150cc4aa7944c5e79fff194fe97797cb77de2
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-01-25 16:32:07 +01:00
parent b33d0985ef
commit 58ccec09df
8 changed files with 141 additions and 11 deletions

View File

@@ -84,7 +84,7 @@ public class PerformCreateGroup {
* name already exists
* @throws PermissionDeniedException user cannot create a group.
*/
public AccountGroup.Id createGroup(final String groupName,
public AccountGroup createGroup(final String groupName,
final String groupDescription, final boolean visibleToAll,
final AccountGroup.Id ownerGroupId,
final Collection<? extends Account.Id> initialMembers,
@@ -133,7 +133,7 @@ public class PerformCreateGroup {
groupCache.onCreateGroup(nameKey);
return groupId;
return group;
}
private void addMembers(final AccountGroup.Id groupId,