org.apache.cassandra.service
Class ClientState
java.lang.Object
org.apache.cassandra.service.ClientState
- Direct Known Subclasses:
- ThriftClientState
public class ClientState
- extends java.lang.Object
State related to a client connection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CQL_VERSION
public static final SemanticVersion DEFAULT_CQL_VERSION
ClientState
public ClientState()
ClientState
public ClientState(boolean internalCall)
- Construct a new, empty ClientState
getRawKeyspace
public java.lang.String getRawKeyspace()
getKeyspace
public java.lang.String getKeyspace()
throws InvalidRequestException
- Throws:
InvalidRequestException
setKeyspace
public void setKeyspace(java.lang.String ks)
throws InvalidRequestException
- Throws:
InvalidRequestException
login
public void login(java.util.Map<java.lang.String,java.lang.String> credentials)
throws AuthenticationException
- Attempts to login this client with the given credentials map.
- Throws:
AuthenticationException
hasAllKeyspacesAccess
public void hasAllKeyspacesAccess(Permission perm)
throws UnauthorizedException,
InvalidRequestException
- Throws:
UnauthorizedException
InvalidRequestException
hasKeyspaceAccess
public void hasKeyspaceAccess(java.lang.String keyspace,
Permission perm)
throws UnauthorizedException,
InvalidRequestException
- Throws:
UnauthorizedException
InvalidRequestException
hasColumnFamilyAccess
public void hasColumnFamilyAccess(java.lang.String keyspace,
java.lang.String columnFamily,
Permission perm)
throws UnauthorizedException,
InvalidRequestException
- Throws:
UnauthorizedException
InvalidRequestException
ensureHasPermission
public void ensureHasPermission(Permission perm,
IResource resource)
throws UnauthorizedException
- Throws:
UnauthorizedException
validateLogin
public void validateLogin()
throws UnauthorizedException
- Throws:
UnauthorizedException
ensureNotAnonymous
public void ensureNotAnonymous()
throws UnauthorizedException
- Throws:
UnauthorizedException
setCQLVersion
public void setCQLVersion(java.lang.String str)
throws InvalidRequestException
- Throws:
InvalidRequestException
getUser
public AuthenticatedUser getUser()
getCQLVersion
public SemanticVersion getCQLVersion()
getCQLSupportedVersion
public static SemanticVersion[] getCQLSupportedVersion()
Copyright © 2013 The Apache Software Foundation