aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/DeviceResource.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-01 11:30:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-01 11:30:03 +1300
commit6c444343d14bd3158bb27285efbcb17141166bff (patch)
tree950c882161219618a87a5aedb82cc9cdf00aa52f /src/org/traccar/api/resource/DeviceResource.java
parent7575edbee87f9fbe4770c988b469f5915d85bb51 (diff)
downloadtrackermap-server-6c444343d14bd3158bb27285efbcb17141166bff.tar.gz
trackermap-server-6c444343d14bd3158bb27285efbcb17141166bff.tar.bz2
trackermap-server-6c444343d14bd3158bb27285efbcb17141166bff.zip
Remove response builder utility class
Diffstat (limited to 'src/org/traccar/api/resource/DeviceResource.java')
-rw-r--r--src/org/traccar/api/resource/DeviceResource.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/api/resource/DeviceResource.java b/src/org/traccar/api/resource/DeviceResource.java
index 98f1d1cca..50589171d 100644
--- a/src/org/traccar/api/resource/DeviceResource.java
+++ b/src/org/traccar/api/resource/DeviceResource.java
@@ -34,7 +34,7 @@ import org.traccar.model.User;
@Path("devices")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
-public class DeviceResource extends BaseResource<Device, Long> {
+public class DeviceResource extends BaseResource<Device> {
@GET
@RolesAllowed(User.ROLE_ADMIN)
@@ -47,7 +47,7 @@ public class DeviceResource extends BaseResource<Device, Long> {
@Path("{id}")
@RolesAllowed(User.ROLE_USER)
@Override
- public Device getEntity(@PathParam("id") Long id) {
+ public Device getEntity(@PathParam("id") long id) {
return super.getEntity(id);
}
@@ -62,7 +62,7 @@ public class DeviceResource extends BaseResource<Device, Long> {
@Path("{id}")
@RolesAllowed(User.ROLE_USER)
@Override
- public Response putEntity(@PathParam("id") Long id, Device entity) {
+ public Response putEntity(@PathParam("id") long id, Device entity) {
return super.putEntity(id, entity);
}
@@ -70,7 +70,7 @@ public class DeviceResource extends BaseResource<Device, Long> {
@Path("{id}")
@RolesAllowed(User.ROLE_USER)
@Override
- public Response deleteEntity(@PathParam("id") Long id) {
+ public Response deleteEntity(@PathParam("id") long id) {
return super.deleteEntity(id);
}