diff options
author | Bjørn Christian Seime <bjorncs@oath.com> | 2018-03-13 18:18:36 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@oath.com> | 2018-03-13 18:18:36 +0100 |
commit | 1d924cd83dbb1ab21f8171482d39a6aefeb52fd6 (patch) | |
tree | 9b6ece7d2faed267715dc68a9dfe22f2b54d0dd8 /controller-api | |
parent | 8a9bc9f4a87e58944806fa2739f122d815d3eb53 (diff) |
Remove unused methods in EntityService
Diffstat (limited to 'controller-api')
2 files changed, 0 insertions, 22 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/EntityService.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/EntityService.java index fc242a360f6..067686269b2 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/EntityService.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/EntityService.java @@ -3,11 +3,8 @@ package com.yahoo.vespa.hosted.controller.api.integration.entity; import com.yahoo.vespa.hosted.controller.api.identifiers.Property; import com.yahoo.vespa.hosted.controller.api.identifiers.PropertyId; -import com.yahoo.vespa.hosted.controller.api.identifiers.UserGroup; -import com.yahoo.vespa.hosted.controller.api.identifiers.UserId; import java.util.Map; -import java.util.Set; /** * A service which provides access to business-specific entities. @@ -19,10 +16,4 @@ public interface EntityService { /** List all properties known by the service */ Map<PropertyId, Property> listProperties(); - /** List all groups of which user is a member */ - Set<UserGroup> getUserGroups(UserId user); - - /** Whether user is a member of the group */ - boolean isGroupMember(UserId user, UserGroup group); - } diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/MemoryEntityService.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/MemoryEntityService.java index e5c2bbedae4..c5400e2d8e7 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/MemoryEntityService.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/MemoryEntityService.java @@ -3,13 +3,10 @@ package com.yahoo.vespa.hosted.controller.api.integration.entity; import com.yahoo.vespa.hosted.controller.api.identifiers.Property; import com.yahoo.vespa.hosted.controller.api.identifiers.PropertyId; -import com.yahoo.vespa.hosted.controller.api.identifiers.UserGroup; -import com.yahoo.vespa.hosted.controller.api.identifiers.UserId; import java.util.Collections; import java.util.HashMap; import java.util.Map; -import java.util.Set; /** * @author mpolden @@ -24,14 +21,4 @@ public class MemoryEntityService implements EntityService { return Collections.unmodifiableMap(properties); } - @Override - public Set<UserGroup> getUserGroups(UserId userId) { - return Collections.singleton(new UserGroup("vespa")); - } - - @Override - public boolean isGroupMember(UserId userId, UserGroup userGroup) { - return true; - } - } |