aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-04-27 19:18:28 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2012-04-27 19:18:28 +0000
commit89654e64cfa18e19741ea97fe685ccfa2f40788c (patch)
tree5783e91ece939b047a87977617339d154bd0517b /src/org/traccar/model
parente9527c7a8a99e09f47e2169676dee85a7834d670 (diff)
downloadtraccar-server-89654e64cfa18e19741ea97fe685ccfa2f40788c.tar.gz
traccar-server-89654e64cfa18e19741ea97fe685ccfa2f40788c.tar.bz2
traccar-server-89654e64cfa18e19741ea97fe685ccfa2f40788c.zip
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/DataManager.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/model/DataManager.java b/src/org/traccar/model/DataManager.java
index a7338b3c4..a7dbd6719 100644
--- a/src/org/traccar/model/DataManager.java
+++ b/src/org/traccar/model/DataManager.java
@@ -23,18 +23,18 @@ import java.util.List;
public interface DataManager {
/**
- * Read device list
+ * Manage devices
*/
public List getDevices() throws Exception;
-
- /**
- * Get device by imei
- */
+ public void addDevice(Device device) throws Exception;
+ public void addUpdate(Device device) throws Exception;
+ public void addRemove(Device device) throws Exception;
public Device getDeviceByImei(String imei) throws Exception;
/**
- * Write position
+ * Manage positions
*/
- public void setPosition(Position position) throws Exception;
+ public List getPositions(Long deviceId) throws Exception;
+ public void addPosition(Position position) throws Exception;
}