@BeforeClass
 public static void setUpClass() throws Throwable {
   SchemaLoader.loadSchema();
   executeSchemaChange(
       "CREATE KEYSPACE IF NOT EXISTS %s WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}");
   clientState = ClientState.forInternalCalls();
 }
 public void checkAccess(ClientState state) throws InvalidRequestException {
   state.hasColumnFamilyAccess(keyspace(), columnFamily(), Permission.DELETE);
 }
Example #3
0
 public long getTimestamp(ClientState clientState) {
   return timestamp == null ? clientState.getTimestamp() : timestamp;
 }
 public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException {
   state.hasColumnFamilyAccess(keyspace(), columnFamily(), Permission.ALTER);
 }
 public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException {
   state.hasKeyspaceAccess(name, Permission.ALTER);
 }
 public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException {
   state.hasKeyspaceAccess(keyspace(), Permission.CREATE);
 }
 public void checkAccess(ClientState state) throws UnauthorizedException {
   state.ensureIsSuper("Only superusers are allowed to perfrom CREATE TRIGGER queries");
 }