Class AuthUtils


  • public class AuthUtils
    extends Object
    • Constructor Detail

      • AuthUtils

        public AuthUtils()
    • Method Detail

      • getSubject

        public static org.apache.shiro.subject.Subject getSubject()
      • getUser

        public static User getUser()
      • getUser

        public static User getUser​(String code)
      • isActive

        public static boolean isActive​(User user)
      • isAdmin

        public static boolean isAdmin​(User user)
      • isTechnicalStaff

        public static boolean isTechnicalStaff​(User user)
      • hasRole

        public static boolean hasRole​(User user,
                                      String... roles)