From ebcedc38812405ba1cd03c518317bcf0cd52f925 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 25 Feb 2013 21:06:38 +1300 Subject: Added user management --- src/org/traccar/web/client/model/DataService.java | 6 ++++++ src/org/traccar/web/client/model/DataServiceAsync.java | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src/org/traccar/web/client/model') 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 getUsers(); + + User addUser(User user); + User updateUser(User user); + User removeUser(User user); + List 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 callback); + void getUsers(AsyncCallback> callback); + + void addUser(User user, AsyncCallback callback); + void updateUser(User user, AsyncCallback callback); + void removeUser(User user, AsyncCallback callback); + void getDevices(AsyncCallback> callback); void addDevice(Device device, AsyncCallback callback); -- cgit v1.2.3