Class UserContextUtil
java.lang.Object
com.hack23.cia.web.impl.ui.application.util.UserContextUtil
The Class UserContextUtil.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Allow role in security context.static String
getRequestUrl
(com.vaadin.server.Page current) Gets the request url.static String
Gets the user id from security context.
-
Constructor Details
-
UserContextUtil
public UserContextUtil()
-
-
Method Details
-
allowRoleInSecurityContext
Allow role in security context.- Parameters:
role
- the role- Returns:
- true, if successful
-
getRequestUrl
Gets the request url.- Parameters:
current
- the current- Returns:
- the request url
-
getUserIdFromSecurityContext
Gets the user id from security context.- Returns:
- the user id from security context
-