diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-04-08 09:03:58 +0200 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-04-08 11:05:54 +0200 |
commit | eba1bc963c50372aae16db1e6721d77f238a6329 (patch) | |
tree | 3af2e8abb75c22411b6ce238a71f8ba827765c54 /controller-api | |
parent | 89ed1c77cc353aebca390cfe0d24c584cd9ecd1f (diff) |
Simplify UserManagement
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/user/UserManagement.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/user/UserManagement.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/user/UserManagement.java index c78dcc76854..2ae8c0b7f31 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/user/UserManagement.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/user/UserManagement.java @@ -15,7 +15,7 @@ public interface UserManagement { /** Creates the given role, or throws if the role already exists. */ void createRole(RoleId role); - /** Deletes the given role, or throws if it doesn't already exist. */ + /** Ensures the given role does not exist. */ void deleteRole(RoleId role); /** Ensures the given users exist, and are part of the given role, or throws if the role does not exist. */ @@ -25,7 +25,7 @@ public interface UserManagement { void removeUsers(RoleId role, Collection<UserId> users); /** Returns all known roles. */ - List<RoleId> listRoles(); + default List<RoleId> listRoles() { throw new UnsupportedOperationException("To be removed."); } /** Returns all users in the given role, or throws if the role does not exist. */ List<UserId> listUsers(RoleId role); |