Added google oath token to DB as the session was invalidated after restart.

This commit is contained in:
Ziver Koc 2021-09-06 16:04:36 +02:00
parent 48a139cdd5
commit f27f7e4c81
2 changed files with 32 additions and 5 deletions

View file

@ -120,6 +120,14 @@ public class HalContext {
return value != null ? Integer.parseInt(getStringProperty(key)) : defaultValue;
}
public static long getLongProperty(String key){
return getLongProperty(key, 0);
}
public static long getLongProperty(String key, long defaultValue){
String value = getStringProperty(key);
return value != null ? Long.parseLong(getStringProperty(key)) : defaultValue;
}
public static boolean getBooleanProperty(String key) {
return getBooleanProperty(key, false);
}