예제 #1
0
 @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);
 }
예제 #3
0
 public long getTimestamp(ClientState clientState) {
   return timestamp == null ? clientState.getTimestamp() : timestamp;
 }
예제 #4
0
 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");
 }