org.apache.hadoop.hive.ql.security.authorization
Class PrivilegeRegistry
java.lang.Object
org.apache.hadoop.hive.ql.security.authorization.PrivilegeRegistry
public class PrivilegeRegistry
- extends Object
PrivilegeRegistry is used to do privilege lookups. Given a privilege name, it
will return the Privilege object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Registry
protected static HashMap<Privilege.PrivilegeType,Privilege> Registry
PrivilegeRegistry
public PrivilegeRegistry()
getPrivilege
public static Privilege getPrivilege(Privilege.PrivilegeType privilegeType)
getPrivilege
public static Privilege getPrivilege(int privilegeToken)
getPrivilege
public static Privilege getPrivilege(String privilegeName)
Copyright © 2012 The Apache Software Foundation