private static void denySetSessionProperty(String propertyName) { throw new AccessDeniedException("Cannot set catalog session property: " + propertyName); } }
public static void denySetCatalogSessionProperty(String propertyName) { throw new AccessDeniedException(format("Cannot set catalog session property %s", propertyName)); }
public static void denyDropTable(String tableName, String extraInfo) { throw new AccessDeniedException(format("Cannot drop table %s%s", tableName, formatExtraInfo(extraInfo))); }
public static void denyDropView(String viewName, String extraInfo) { throw new AccessDeniedException(format("Cannot drop view %s%s", viewName, formatExtraInfo(extraInfo))); }
public static void denyShowTablesMetadata(String schemaName, String extraInfo) { throw new AccessDeniedException(format("Cannot show metadata of tables in %s%s", schemaName, formatExtraInfo(extraInfo))); }
public static void denyCreateView(String viewName, String extraInfo) { throw new AccessDeniedException(format("Cannot create view %s%s", viewName, formatExtraInfo(extraInfo))); }
public static void denySelectView(String viewName, String extraInfo) { throw new AccessDeniedException(format("Cannot select from view %s%s", viewName, formatExtraInfo(extraInfo))); }
public static void denyRenameSchema(String schemaName, String newSchemaName, String extraInfo) { throw new AccessDeniedException(format("Cannot rename schema from %s to %s%s", schemaName, newSchemaName, formatExtraInfo(extraInfo))); }
public static void denyRevokeTablePrivilege(String privilege, String tableName, String extraInfo) { throw new AccessDeniedException(format("Cannot revoke privilege %s on table %s%s", privilege, tableName, formatExtraInfo(extraInfo))); }
public static void denySetSystemSessionProperty(String propertyName, String extraInfo) { throw new AccessDeniedException(format("Cannot set system session property %s%s", propertyName, formatExtraInfo(extraInfo))); }
public static void denySetCatalogSessionProperty(String catalogName, String propertyName, String extraInfo) { throw new AccessDeniedException(format("Cannot set catalog session property %s.%s%s", catalogName, propertyName, formatExtraInfo(extraInfo))); }
public static void denyCreateSchema(String schemaName, String extraInfo) { throw new AccessDeniedException(format("Cannot create schema %s%s", schemaName, formatExtraInfo(extraInfo))); }
public static void denyDropSchema(String schemaName, String extraInfo) { throw new AccessDeniedException(format("Cannot drop schema %s%s", schemaName, formatExtraInfo(extraInfo))); }
public static void denyShowSchemas(String extraInfo) { throw new AccessDeniedException(format("Cannot show schemas%s", formatExtraInfo(extraInfo))); }
public static void denyCreateTable(String tableName, String extraInfo) { throw new AccessDeniedException(format("Cannot create table %s%s", tableName, formatExtraInfo(extraInfo))); }
public static void denySelectTable(String tableName, String extraInfo) { throw new AccessDeniedException(format("Cannot select from table %s%s", tableName, formatExtraInfo(extraInfo))); }
public static void denySelectColumns(String tableName, Collection<String> columnNames, String extraInfo) { throw new AccessDeniedException(format("Cannot select from columns %s in table or view %s%s", columnNames, tableName, formatExtraInfo(extraInfo))); }
public static void denyCatalogAccess(String catalogName, String extraInfo) { throw new AccessDeniedException(format("Cannot access catalog %s%s", catalogName, formatExtraInfo(extraInfo))); }
public static void denyDropColumn(String tableName, String extraInfo) { throw new AccessDeniedException(format("Cannot drop a column from table %s%s", tableName, formatExtraInfo(extraInfo))); }
public static void denyCreateViewWithSelect(String sourceName, Identity identity, String extraInfo) { throw new AccessDeniedException(format("View owner '%s' cannot create view that selects from %s%s", identity.getUser(), sourceName, formatExtraInfo(extraInfo))); }