private List<String> filterDataConnectorObjects(HiveMetaStoreAuthzInfo hiveMetaStoreAuthzInfo) throws MetaException {
    List<String> ret = null;

    LOG.debug("==> HiveMetaStoreAuthorizer.filterDataConnectorObjects()");

    try {
      HiveAuthorizer hiveAuthorizer = createHiveMetaStoreAuthorizer();
      List<HivePrivilegeObject> hivePrivilegeObjects = hiveMetaStoreAuthzInfo.getInputHObjs();
      HiveAuthzContext hiveAuthzContext = hiveMetaStoreAuthzInfo.getHiveAuthzContext();
      List<HivePrivilegeObject> filteredHivePrivilegeObjects =
              hiveAuthorizer.filterListCmdObjects(hivePrivilegeObjects, hiveAuthzContext);
      if (CollectionUtils.isNotEmpty(filteredHivePrivilegeObjects)) {
        ret = getFilteredDataConnectorList(filteredHivePrivilegeObjects);
      }
      LOG.info(String.format("Filtered %d connectors out of %d", filteredHivePrivilegeObjects.size(),
              hivePrivilegeObjects.size()));
    } catch (Exception e) {
      throw new MetaException("Error in HiveMetaStoreAuthorizer.filterDataConnector()" + e.getMessage());
    }

    LOG.debug("<== HiveMetaStoreAuthorizer.filterDataConnectorObjects() :" + ret );

    return ret;
  }
HiveMetaStoreAuthorizer :  Do authorization checks on MetaStore Events in MetaStorePreEventListener
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java