Class UserContextUtil

java.lang.Object
com.hack23.cia.web.impl.ui.application.util.UserContextUtil

public final class UserContextUtil extends Object
The Class UserContextUtil.
  • Constructor Details

    • UserContextUtil

      public UserContextUtil()
  • Method Details

    • allowRoleInSecurityContext

      public static boolean allowRoleInSecurityContext(String role)
      Allow role in security context.
      Parameters:
      role - the role
      Returns:
      true, if successful
    • getRequestUrl

      public static String getRequestUrl(com.vaadin.server.Page current)
      Gets the request url.
      Parameters:
      current - the current
      Returns:
      the request url
    • getUserIdFromSecurityContext

      public static String getUserIdFromSecurityContext()
      Gets the user id from security context.
      Returns:
      the user id from security context