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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user