diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-03 17:06:30 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-03 17:06:30 -0700 |
commit | 4030d3207c157a3fcee2653c18440898b6b2a2e6 (patch) | |
tree | b7e04a72bd369f75871edf832f7ff58198001a85 /src/main/java/org/traccar/database/DataManager.java | |
parent | 65b0f9c5398ddcb28018cb1963108534c638b1f4 (diff) | |
download | trackermap-server-4030d3207c157a3fcee2653c18440898b6b2a2e6.tar.gz trackermap-server-4030d3207c157a3fcee2653c18440898b6b2a2e6.tar.bz2 trackermap-server-4030d3207c157a3fcee2653c18440898b6b2a2e6.zip |
Remove attributes manager
Diffstat (limited to 'src/main/java/org/traccar/database/DataManager.java')
-rw-r--r-- | src/main/java/org/traccar/database/DataManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/database/DataManager.java b/src/main/java/org/traccar/database/DataManager.java index 9ac808a69..b5966ca9e 100644 --- a/src/main/java/org/traccar/database/DataManager.java +++ b/src/main/java/org/traccar/database/DataManager.java @@ -240,8 +240,9 @@ public class DataManager { return storage.getPermissions(owner, property); } - public void linkObject(Class<?> owner, long ownerId, Class<?> property, long propertyId, boolean link) - throws StorageException { + 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 { |