public final class UserContextUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
allowRoleInSecurityContext(String role)
Allow role in security context.
|
static String |
getRequestUrl(com.vaadin.server.Page current)
Gets the request url.
|
static String |
getUserIdFromSecurityContext()
Gets the user id from security context.
|
static Long |
getUserInternalIdFromSecurityContext()
Gets the user internal id from security context.
|
static String |
getUserNameFromSecurityContext()
Gets the user name from security context.
|
public static String getUserNameFromSecurityContext()
public static String getUserIdFromSecurityContext()
public static Long getUserInternalIdFromSecurityContext()
public static String getRequestUrl(com.vaadin.server.Page current)
current
- the currentpublic static boolean allowRoleInSecurityContext(String role)
role
- the roleCopyright © 2008–2017 www.hack23.com. All rights reserved.