public static void denyDropView(String viewName) { denyDropView(viewName, null); }
@Override public void checkCanDropView(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName viewName) { denyDropView(viewName.toString()); }
/** * Check if identity is allowed to drop the specified view in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanDropView(ConnectorTransactionHandle transactionHandle, Identity identity, SchemaTableName viewName) { denyDropView(viewName.toString()); }
/** * Check if identity is allowed to drop the specified view in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanDropView(Identity identity, CatalogSchemaTableName view) { denyDropView(view.toString()); }
@Override public void checkCanDropView(TransactionId transactionId, Identity identity, QualifiedObjectName viewName) { denyDropView(viewName.toString()); }
@Override public void checkCanDropView(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName viewName) { if (!checkTablePermission(identity, viewName, OWNERSHIP)) { denyDropView(viewName.toString()); } }
@Override public void checkCanDropView(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName viewName) { if (!checkTablePermission(transaction, identity, viewName, OWNERSHIP)) { denyDropView(viewName.toString()); } }
@Override public void checkCanDropView(TransactionId transactionId, Identity identity, QualifiedObjectName viewName) { if (shouldDenyPrivilege(identity.getUser(), viewName.getObjectName(), DROP_VIEW)) { denyDropView(viewName.toString()); } if (denyPrivileges.isEmpty()) { super.checkCanDropView(transactionId, identity, viewName); } }
public static void denyDropView(String viewName) { denyDropView(viewName, null); }
/** * Check if identity is allowed to drop the specified view in this catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanDropView(ConnectorTransactionHandle transactionHandle, Identity identity, SchemaTableName viewName) { denyDropView(viewName.toString()); }
@Override public void checkCanDropView(TransactionId transactionId, Identity identity, QualifiedObjectName viewName) { denyDropView(viewName.toString()); }
/** * Check if identity is allowed to drop the specified view in a catalog. * * @throws com.facebook.presto.spi.security.AccessDeniedException if not allowed */ default void checkCanDropView(Identity identity, CatalogSchemaTableName view) { denyDropView(view.toString()); }
@Override public void checkCanDropView(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName viewName) { denyDropView(viewName.toString()); }
@Override public void checkCanDropView(ConnectorTransactionHandle transaction, Identity identity, SchemaTableName viewName) { if (!checkTablePermission(identity, viewName, OWNERSHIP)) { denyDropView(viewName.toString()); } }
@Override public void checkCanDropView(TransactionId transactionId, Identity identity, QualifiedObjectName viewName) { if (shouldDenyPrivilege(identity.getUser(), viewName.getObjectName(), DROP_VIEW)) { denyDropView(viewName.toString()); } if (denyPrivileges.isEmpty()) { super.checkCanDropView(transactionId, identity, viewName); } }