public static PrivilegeType getPrivTypeByName(String privilegeName) {
    populateName2Type();
    String canonicalizedName = privilegeName.toLowerCase();
    PrivilegeType privType = name2Type.get(canonicalizedName);
    if(privType != null){
      return privType;
    }
    return PrivilegeType.UNKNOWN;
  }
Do case insensitive lookup of PrivilegeType with this name
@param privilegeName
@return corresponding PrivilegeType
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/PrivilegeType.java