aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-13 19:03:37 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-13 19:03:37 -0700
commitdd2594ddce22e105a6d9cb356c3c22c3227e58f9 (patch)
tree367e75f8fd5a29ffb0dc7c11d0204ed4c82760f5 /src/main/java/org/traccar/database/DataManager.java
parent6433ec663ec79196714dcd99939cdddf81f77a7a (diff)
downloadtrackermap-server-dd2594ddce22e105a6d9cb356c3c22c3227e58f9.tar.gz
trackermap-server-dd2594ddce22e105a6d9cb356c3c22c3227e58f9.tar.bz2
trackermap-server-dd2594ddce22e105a6d9cb356c3c22c3227e58f9.zip
Remove data manager methods
Diffstat (limited to 'src/main/java/org/traccar/database/DataManager.java')
-rw-r--r--src/main/java/org/traccar/database/DataManager.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/java/org/traccar/database/DataManager.java b/src/main/java/org/traccar/database/DataManager.java
index 8ed907fdd..fd45a0321 100644
--- a/src/main/java/org/traccar/database/DataManager.java
+++ b/src/main/java/org/traccar/database/DataManager.java
@@ -208,22 +208,6 @@ public class DataManager {
return storage.getPermissions(owner, property);
}
- public void linkObject(
- Class<? extends BaseModel> owner, long ownerId,
- Class<? extends BaseModel> property, long propertyId, boolean link) throws StorageException {
- if (link) {
- storage.addPermission(new Permission(owner, ownerId, property, propertyId));
- } else {
- storage.removePermission(new Permission(owner, ownerId, property, propertyId));
- }
- }
-
- public <T extends BaseModel> T getObject(Class<T> clazz, long entityId) throws StorageException {
- return storage.getObject(clazz, new Request(
- new Columns.All(),
- new Condition.Equals("id", "id", entityId)));
- }
-
public <T extends BaseModel> Collection<T> getObjects(Class<T> clazz) throws StorageException {
return storage.getObjects(clazz, new Request(new Columns.All()));
}