public List<HiveObjectPrivilege> showPrivilegeGrant(
      HiveObjectType objectType, String principalName,
      PrincipalType principalType, String dbName, String tableName,
      List<String> partValues, String columnName) throws HiveException {
    try {
      HiveObjectRef hiveObj = new HiveObjectRef(objectType, dbName, tableName,
          partValues, columnName);
      return getMSC().list_privileges(principalName, principalType, hiveObj);
    } catch (Exception e) {
      throw new HiveException(e);
    }
  }
@param objectType
         hive object type
@param principalName
@param principalType
@param dbName
@param tableName
@param partValues
@param columnName
@return list of privileges
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java