diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-25 21:06:38 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-25 21:06:38 +1300 |
commit | ebcedc38812405ba1cd03c518317bcf0cd52f925 (patch) | |
tree | 2df884c0127218b1205bb5861ff7a048d6a54bff /src/org/traccar/web/client/model | |
parent | b26e487f3c65808d349c7a53c0ea2a3981b61bac (diff) | |
download | trackermap-web-ebcedc38812405ba1cd03c518317bcf0cd52f925.tar.gz trackermap-web-ebcedc38812405ba1cd03c518317bcf0cd52f925.tar.bz2 trackermap-web-ebcedc38812405ba1cd03c518317bcf0cd52f925.zip |
Added user management
Diffstat (limited to 'src/org/traccar/web/client/model')
-rw-r--r-- | src/org/traccar/web/client/model/DataService.java | 6 | ||||
-rw-r--r-- | src/org/traccar/web/client/model/DataServiceAsync.java | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/org/traccar/web/client/model/DataService.java b/src/org/traccar/web/client/model/DataService.java index 3e649717..2bb78832 100644 --- a/src/org/traccar/web/client/model/DataService.java +++ b/src/org/traccar/web/client/model/DataService.java @@ -37,8 +37,14 @@ public interface DataService extends RemoteService { User register(String login, String password); + List<User> getUsers(); + + User addUser(User user); + User updateUser(User user); + User removeUser(User user); + List<Device> getDevices(); Device addDevice(Device device); diff --git a/src/org/traccar/web/client/model/DataServiceAsync.java b/src/org/traccar/web/client/model/DataServiceAsync.java index 559545d9..b1830639 100644 --- a/src/org/traccar/web/client/model/DataServiceAsync.java +++ b/src/org/traccar/web/client/model/DataServiceAsync.java @@ -35,8 +35,14 @@ public interface DataServiceAsync { void register(String login, String password, AsyncCallback<User> callback); + void getUsers(AsyncCallback<List<User>> callback); + + void addUser(User user, AsyncCallback<User> callback); + void updateUser(User user, AsyncCallback<User> callback); + void removeUser(User user, AsyncCallback<User> callback); + void getDevices(AsyncCallback<List<Device>> callback); void addDevice(Device device, AsyncCallback<Device> callback); |