|
|
|
@ -56,6 +56,12 @@ public class SecurityContextHolder
@@ -56,6 +56,12 @@ public class SecurityContextHolder
|
|
|
|
|
return Convert.toLong(get(SecurityConstants.DETAILS_USER_ID), 0L); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static String getStringUserId() |
|
|
|
|
{ |
|
|
|
|
return Convert.toStr(get(SecurityConstants.DETAILS_USER_ID),""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void setUserId(String account) |
|
|
|
|
{ |
|
|
|
|
set(SecurityConstants.DETAILS_USER_ID, account); |
|
|
|
|