Added google oath token to DB as the session was invalidated after restart.
This commit is contained in:
parent
48a139cdd5
commit
f27f7e4c81
2 changed files with 32 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue