diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-16 06:51:41 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-16 06:51:41 -0700 |
commit | d3fd20d4a4f7dc647e75c5a0cb962759630ed967 (patch) | |
tree | 9fada7b5571f61678f7fb5a862be4da0f1f84d12 /src/main/java/org/traccar/database | |
parent | 481a902538b951a420d00c32063e0984e4e922d6 (diff) | |
download | trackermap-server-d3fd20d4a4f7dc647e75c5a0cb962759630ed967.tar.gz trackermap-server-d3fd20d4a4f7dc647e75c5a0cb962759630ed967.tar.bz2 trackermap-server-d3fd20d4a4f7dc647e75c5a0cb962759630ed967.zip |
Inject data manager
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r-- | src/main/java/org/traccar/database/DataManager.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/database/DataManager.java b/src/main/java/org/traccar/database/DataManager.java index 9ffe1fe97..3cad2dd63 100644 --- a/src/main/java/org/traccar/database/DataManager.java +++ b/src/main/java/org/traccar/database/DataManager.java @@ -32,6 +32,7 @@ import org.traccar.storage.query.Limit; import org.traccar.storage.query.Order; import org.traccar.storage.query.Request; +import javax.inject.Inject; import java.util.Collection; import java.util.Date; @@ -41,6 +42,7 @@ public class DataManager { private final boolean forceLdap; + @Inject public DataManager(Config config, Storage storage) throws Exception { this.storage = storage; forceLdap = config.getBoolean(Keys.LDAP_FORCE); @@ -68,12 +70,6 @@ public class DataManager { return null; } - public void updateUserPassword(User user) throws StorageException { - storage.updateObject(user, new Request( - new Columns.Include("hashedPassword", "salt"), - new Condition.Equals("id", "id"))); - } - public void updateDeviceStatus(Device device) throws StorageException { storage.updateObject(device, new Request( new Columns.Include("lastUpdate"), |