@Override public void checkCanSetCatalogSessionProperty(TransactionId transactionId, Identity identity, String catalogName, String propertyName) { denySetCatalogSessionProperty(catalogName, propertyName); }
/** * Check if identity is allowed to set the specified property in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanSetCatalogSessionProperty(Identity identity, String catalogName, String propertyName) { denySetCatalogSessionProperty(propertyName); }
/** * Check if identity is allowed to set the specified property in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanSetCatalogSessionProperty(ConnectorTransactionHandle transactionHandle, Identity identity, String propertyName) { denySetCatalogSessionProperty(propertyName); }
public static void denySetCatalogSessionProperty(String catalogName, String propertyName) { denySetCatalogSessionProperty(catalogName, propertyName, null); }
@Override public void checkCanSetCatalogSessionProperty(ConnectorTransactionHandle transaction, Identity identity, String propertyName) { if (!isAdmin(transaction, identity)) { denySetCatalogSessionProperty(connectorId, propertyName); } }
@Override public void checkCanSetCatalogSessionProperty(TransactionId transactionId, Identity identity, String catalogName, String propertyName) { if (shouldDenyPrivilege(identity.getUser(), catalogName + "." + propertyName, SET_SESSION)) { denySetCatalogSessionProperty(catalogName, propertyName); } if (denyPrivileges.isEmpty()) { super.checkCanSetCatalogSessionProperty(transactionId, identity, catalogName, propertyName); } }
/** * Check if identity is allowed to set the specified property in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanSetCatalogSessionProperty(ConnectorTransactionHandle transactionHandle, Identity identity, String propertyName) { denySetCatalogSessionProperty(propertyName); }
/** * Check if identity is allowed to set the specified property in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanSetCatalogSessionProperty(Identity identity, String catalogName, String propertyName) { denySetCatalogSessionProperty(propertyName); }
@Override public void checkCanSetCatalogSessionProperty(Identity identity, String catalogName, String propertyName) { denySetCatalogSessionProperty(catalogName, propertyName); } }
public static void denySetCatalogSessionProperty(String catalogName, String propertyName) { denySetCatalogSessionProperty(catalogName, propertyName, null); }
@Override public void checkCanSetCatalogSessionProperty(Identity identity, String propertyName) { if (!metastore.getRoles(identity.getUser()).contains(ADMIN_ROLE_NAME)) { denySetCatalogSessionProperty(connectorId, propertyName); } }
@Override public void checkCanSetCatalogSessionProperty(Identity identity, String catalogName, String propertyName) { if (shouldDenyPrivilege(identity.getUser(), catalogName + "." + propertyName, SET_SESSION)) { denySetCatalogSessionProperty(catalogName, propertyName); } if (denyPrivileges.isEmpty()) { super.checkCanSetCatalogSessionProperty(identity, catalogName, propertyName); } }