aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/shared
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-16 17:36:19 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-16 17:36:19 +1300
commit92bd56c8bb8a63cf34a19a6197d988ffc671de6c (patch)
tree006f3de4d7e7b30b033f9ed1d0765b2265443383 /src/org/traccar/web/shared
parent6d48729efb4bd1ac34bba003a8a4313a70a02cce (diff)
downloadtrackermap-web-92bd56c8bb8a63cf34a19a6197d988ffc671de6c.tar.gz
trackermap-web-92bd56c8bb8a63cf34a19a6197d988ffc671de6c.tar.bz2
trackermap-web-92bd56c8bb8a63cf34a19a6197d988ffc671de6c.zip
Add admin user
Diffstat (limited to 'src/org/traccar/web/shared')
-rw-r--r--src/org/traccar/web/shared/model/User.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/org/traccar/web/shared/model/User.java b/src/org/traccar/web/shared/model/User.java
index 89bebc07..9a67c6d9 100644
--- a/src/org/traccar/web/shared/model/User.java
+++ b/src/org/traccar/web/shared/model/User.java
@@ -40,6 +40,7 @@ public class User implements Serializable, Cloneable {
id = user.id;
login = user.login;
password = user.password;
+ admin = user.admin;
}
@Id
@@ -71,6 +72,16 @@ public class User implements Serializable, Cloneable {
return password;
}
+ private boolean admin;
+
+ public void setAdmin(boolean admin) {
+ this.admin = admin;
+ }
+
+ public boolean getAdmin() {
+ return admin;
+ }
+
@OneToMany(fetch = FetchType.EAGER)
private List<Device> devices = new LinkedList<Device>();