Support changing of group options via REST

The options of a group can now be set by PUT on
'/groups/<group>/options'.

The WebUI was adapted to use this new REST endpoint.

There is a new JSON entity to describe the group options, which is also
included in the GroupInfo, instead of having the options directly in
the GroupInfo.

Change-Id: I5ea30b6ca397a1a377a038bd551092eccabecd40
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-01-31 10:58:57 +01:00
parent 0d625dcb6a
commit 7c8903b5df
10 changed files with 170 additions and 16 deletions

View File

@@ -88,8 +88,8 @@ public class ListGroupsCommand extends BaseCommand {
formatter.addColumn(Strings.nullToEmpty(info.description));
formatter.addColumn(o != null ? o.getName() : "n/a");
formatter.addColumn(o != null ? o.getGroupUUID().get() : "");
formatter.addColumn(Boolean.toString(
Objects.firstNonNull(info.visibleToAll, Boolean.FALSE)));
formatter.addColumn(Boolean.toString(Objects.firstNonNull(
info.options.isVisibleToAll, Boolean.FALSE)));
}
formatter.nextLine();
}