/** * Create a thrift privilege object from the plugin interface privilege object * * @param privObj * @return * @throws HiveAuthzPluginException */ static HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveAuthzPluginException { try { return AuthorizationUtils.getThriftHiveObjectRef(privObj); } catch (HiveException e) { throw new HiveAuthzPluginException(e); } }
/** * Create a thrift privilege object from the plugin interface privilege object * * @param privObj * @return * @throws HiveAuthzPluginException */ static HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveAuthzPluginException { try { return AuthorizationUtils.getThriftHiveObjectRef(privObj); } catch (HiveException e) { throw new HiveAuthzPluginException(e); } }
HiveObjectRef objectRef = AuthorizationUtils.getThriftHiveObjectRef(hivePrivObject); if (objectRef.getObjectType() == null) { objectRef.setObjectType(HiveObjectType.GLOBAL);
HiveObjectRef objectRef = AuthorizationUtils.getThriftHiveObjectRef(hivePrivObject); if (objectRef.getObjectType() == null) { objectRef.setObjectType(HiveObjectType.GLOBAL);
/** * Create a thrift privilege object from the plugin interface privilege object * * @param privObj * @return * @throws HiveAuthzPluginException */ static HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveAuthzPluginException { try { return AuthorizationUtils.getThriftHiveObjectRef(privObj); } catch (HiveException e) { throw new HiveAuthzPluginException(e); } }
HiveObjectRef objectRef = AuthorizationUtils.getThriftHiveObjectRef(hivePrivObject); if (objectRef.getObjectType() == null) { objectRef.setObjectType(HiveObjectType.GLOBAL);