aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database/GroupsManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-30 11:16:05 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-30 11:16:05 -0700
commitb1a971eedb18a11af2cdc70ba5f8004bae89defd (patch)
treecd63dbb617457f7e1b2f2893db770c564932f9c7 /src/main/java/org/traccar/database/GroupsManager.java
parentb9d7cbe6f15b471b0edff49870fef8190949ad09 (diff)
downloadtrackermap-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.java20
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;
- }
-
}