diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-05 11:59:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-05 11:59:04 +1200 |
commit | b1b22e5339d53f8b6eadb190432f4761f0380ff7 (patch) | |
tree | 06cfd5dd52ed59d89346341cad4b6fd21e37d7ec /src/org/traccar/BaseProtocolDecoder.java | |
parent | ccd93309bdcd282abb14e68b462c97960ccf2f96 (diff) | |
download | trackermap-server-b1b22e5339d53f8b6eadb190432f4761f0380ff7.tar.gz trackermap-server-b1b22e5339d53f8b6eadb190432f4761f0380ff7.tar.bz2 trackermap-server-b1b22e5339d53f8b6eadb190432f4761f0380ff7.zip |
Separate identity manager interface
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java index 730c3a54c..61f11367c 100644 --- a/src/org/traccar/BaseProtocolDecoder.java +++ b/src/org/traccar/BaseProtocolDecoder.java @@ -16,14 +16,7 @@ package org.traccar; import java.net.SocketAddress; - import org.jboss.netty.channel.Channel; -import org.jboss.netty.channel.ChannelEvent; -import org.jboss.netty.channel.ChannelHandlerContext; -import static org.jboss.netty.channel.Channels.fireMessageReceived; -import org.jboss.netty.channel.MessageEvent; -import org.jboss.netty.handler.codec.oneone.OneToOneDecoder; - import org.traccar.helper.Log; import org.traccar.model.Device; @@ -50,7 +43,7 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { public boolean identify(String uniqueId, Channel channel, SocketAddress remoteAddress, boolean logWarning) { try { - Device device = Context.getDataManager().getDeviceByUniqueId(uniqueId); + Device device = Context.getIdentityManager().getDeviceByUniqueId(uniqueId); if (device != null) { deviceId = device.getId(); Context.getConnectionManager().setActiveDevice(device.getUniqueId(), protocol, channel, remoteAddress); |