|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.service.ClientState
public class ClientState
State related to a client connection. TODO: Kill thrift exceptions
Field Summary | |
---|---|
static SemanticVersion |
DEFAULT_CQL_VERSION
|
Constructor Summary | |
---|---|
ClientState()
|
|
ClientState(boolean internalCall)
Construct a new, empty ClientState |
Method Summary | |
---|---|
static SemanticVersion[] |
getCQLSupportedVersion()
|
SemanticVersion |
getCQLVersion()
|
java.lang.String |
getKeyspace()
|
java.lang.String |
getRawKeyspace()
|
void |
grantPermission(Permission permission,
java.lang.String to,
CFName on,
boolean grantOption)
|
void |
hasColumnFamilyAccess(java.lang.String columnFamily,
Permission perm)
Confirms that the client thread has the given Permission in the context of the given ColumnFamily and the current keyspace. |
void |
hasColumnFamilyAccess(java.lang.String keyspace,
java.lang.String columnFamily,
Permission perm)
|
void |
hasColumnFamilySchemaAccess(java.lang.String keyspace,
Permission perm)
Confirms that the client thread has the given Permission for the ColumnFamily list of the provided keyspace. |
void |
hasKeyspaceAccess(java.lang.String keyspace,
Permission perm)
|
boolean |
isLogged()
|
ResultMessage |
listPermissions(java.lang.String username)
|
void |
login(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials)
Attempts to login this client with the given credentials map. |
void |
revokePermission(Permission permission,
java.lang.String from,
CFName resource)
|
void |
setCQLVersion(java.lang.String str)
|
void |
setKeyspace(java.lang.String ks)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SemanticVersion DEFAULT_CQL_VERSION
Constructor Detail |
---|
public ClientState()
public ClientState(boolean internalCall)
Method Detail |
---|
public java.lang.String getRawKeyspace()
public java.lang.String getKeyspace() throws InvalidRequestException
InvalidRequestException
public void setKeyspace(java.lang.String ks) throws InvalidRequestException
InvalidRequestException
public void login(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials) throws org.apache.cassandra.thrift.AuthenticationException
org.apache.cassandra.thrift.AuthenticationException
public void hasKeyspaceAccess(java.lang.String keyspace, Permission perm) throws UnauthorizedException, InvalidRequestException
UnauthorizedException
InvalidRequestException
public void hasColumnFamilySchemaAccess(java.lang.String keyspace, Permission perm) throws UnauthorizedException, InvalidRequestException
UnauthorizedException
InvalidRequestException
public void hasColumnFamilyAccess(java.lang.String columnFamily, Permission perm) throws UnauthorizedException, InvalidRequestException
UnauthorizedException
InvalidRequestException
public void hasColumnFamilyAccess(java.lang.String keyspace, java.lang.String columnFamily, Permission perm) throws UnauthorizedException, InvalidRequestException
UnauthorizedException
InvalidRequestException
public boolean isLogged()
public void setCQLVersion(java.lang.String str) throws InvalidRequestException
InvalidRequestException
public SemanticVersion getCQLVersion()
public static SemanticVersion[] getCQLSupportedVersion()
public void grantPermission(Permission permission, java.lang.String to, CFName on, boolean grantOption) throws UnauthorizedException, InvalidRequestException
UnauthorizedException
InvalidRequestException
public void revokePermission(Permission permission, java.lang.String from, CFName resource) throws UnauthorizedException, InvalidRequestException
UnauthorizedException
InvalidRequestException
public ResultMessage listPermissions(java.lang.String username) throws UnauthorizedException, InvalidRequestException
UnauthorizedException
InvalidRequestException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |