aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShinryuken <watertext@hotmail.it>2017-11-07 19:17:08 +0100
committerGitHub <noreply@github.com>2017-11-07 19:17:08 +0100
commitccb2e9e5e0581406963ac63a9d08acb7c2549834 (patch)
tree23a752b9e0dc8ee88982cc7764bb02309bfffe43 /src
parent0801b279a4fe91c8cb1d653676f43dfe6c26a6f2 (diff)
downloadtrackermap-server-ccb2e9e5e0581406963ac63a9d08acb7c2549834.tar.gz
trackermap-server-ccb2e9e5e0581406963ac63a9d08acb7c2549834.tar.bz2
trackermap-server-ccb2e9e5e0581406963ac63a9d08acb7c2549834.zip
User defaults when no User is available
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/reports/ReportUtils.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/reports/ReportUtils.java b/src/org/traccar/reports/ReportUtils.java
index f6f386e99..22c7981d8 100644
--- a/src/org/traccar/reports/ReportUtils.java
+++ b/src/org/traccar/reports/ReportUtils.java
@@ -61,19 +61,19 @@ public final class ReportUtils {
}
}
- public static String getDistanceUnit(long userId) {
+ public static String getDistanceUnit(Long userId) {
return (String) Context.getPermissionsManager().lookupAttribute(userId, "distanceUnit", "km");
}
- public static String getSpeedUnit(long userId) {
+ public static String getSpeedUnit(Long userId) {
return (String) Context.getPermissionsManager().lookupAttribute(userId, "speedUnit", "kn");
}
- public static String getVolumeUnit(long userId) {
+ public static String getVolumeUnit(Long userId) {
return (String) Context.getPermissionsManager().lookupAttribute(userId, "volumeUnit", "ltr");
}
- public static TimeZone getTimezone(long userId) {
+ public static TimeZone getTimezone(Long userId) {
String timezone = (String) Context.getPermissionsManager().lookupAttribute(userId, "timezone", null);
return timezone != null ? TimeZone.getTimeZone(timezone) : TimeZone.getDefault();
}
@@ -137,7 +137,7 @@ public final class ReportUtils {
return null;
}
- public static org.jxls.common.Context initializeContext(long userId) {
+ public static org.jxls.common.Context initializeContext(Long userId) {
org.jxls.common.Context jxlsContext = PoiTransformer.createInitialContext();
jxlsContext.putVar("distanceUnit", getDistanceUnit(userId));
jxlsContext.putVar("speedUnit", getSpeedUnit(userId));