diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-30 11:16:05 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-30 11:16:05 -0700 |
commit | b1a971eedb18a11af2cdc70ba5f8004bae89defd (patch) | |
tree | cd63dbb617457f7e1b2f2893db770c564932f9c7 /src/main/java/org/traccar/database/GroupsManager.java | |
parent | b9d7cbe6f15b471b0edff49870fef8190949ad09 (diff) | |
download | trackermap-server-b1a971eedb18a11af2cdc70ba5f8004bae89defd.tar.gz trackermap-server-b1a971eedb18a11af2cdc70ba5f8004bae89defd.tar.bz2 trackermap-server-b1a971eedb18a11af2cdc70ba5f8004bae89defd.zip |
Remove unused interface
Diffstat (limited to 'src/main/java/org/traccar/database/GroupsManager.java')
-rw-r--r-- | src/main/java/org/traccar/database/GroupsManager.java | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/main/java/org/traccar/database/GroupsManager.java b/src/main/java/org/traccar/database/GroupsManager.java index dafddc0cc..9322dd80a 100644 --- a/src/main/java/org/traccar/database/GroupsManager.java +++ b/src/main/java/org/traccar/database/GroupsManager.java @@ -23,7 +23,7 @@ import org.traccar.Context; import org.traccar.model.Group; import org.traccar.storage.StorageException; -public class GroupsManager extends BaseObjectManager<Group> implements ManagableObjects { +public class GroupsManager extends BaseObjectManager<Group> { public GroupsManager(DataManager dataManager) { super(dataManager, Group.class); @@ -62,22 +62,4 @@ public class GroupsManager extends BaseObjectManager<Group> implements Managable super.updateItem(group); } - @Override - public Set<Long> getUserItems(long userId) { - if (Context.getPermissionsManager() != null) { - return Context.getPermissionsManager().getGroupPermissions(userId); - } else { - return new HashSet<>(); - } - } - - @Override - public Set<Long> getManagedItems(long userId) { - Set<Long> result = getUserItems(userId); - for (long managedUserId : Context.getUsersManager().getUserItems(userId)) { - result.addAll(getUserItems(managedUserId)); - } - return result; - } - } |