aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-05 19:18:58 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-05 19:18:58 +1200
commit61bd26d530710e74ef1c0dfd6920b9c1d27cfdd5 (patch)
tree92638aecdc7e10b0eb745954304798cce3f9ff3d /src/org/traccar/database
parentc2afe93f1443181bc7bcce2df708a88c331b8800 (diff)
downloadtrackermap-server-61bd26d530710e74ef1c0dfd6920b9c1d27cfdd5.tar.gz
trackermap-server-61bd26d530710e74ef1c0dfd6920b9c1d27cfdd5.tar.bz2
trackermap-server-61bd26d530710e74ef1c0dfd6920b9c1d27cfdd5.zip
Add user account dialog
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/DataManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index e9647922c..6cfd84d41 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -228,6 +228,13 @@ public class DataManager {
.setObject(user)
.executeUpdate());
}
+
+ public void updateUser(User user) throws SQLException {
+ QueryBuilder.create(dataSource,
+ "UPDATE user SET name = :name, email = :email, admin = :admin WHERE id = :id;")
+ .setObject(user)
+ .executeUpdate();
+ }
public Collection<Permission> getPermissions() throws SQLException {
return QueryBuilder.create(dataSource,