Example usage for org.apache.cassandra.auth Permission SELECT

List of usage examples for org.apache.cassandra.auth Permission SELECT

Introduction

In this page you can find the example usage for org.apache.cassandra.auth Permission SELECT.

Prototype

Permission SELECT

To view the source code for org.apache.cassandra.auth Permission SELECT.

Click Source Link

Usage

From source file:org.wso2.carbon.cassandra.common.auth.AuthUtils.java

License:Open Source License

public static Permission getCassandraPermission(String action) {
    if (Action.ACTION_CREATE.equals(action)) {
        return Permission.CREATE;
    } else if (Action.ACTION_ALTER.equals(action)) {
        return Permission.ALTER;
    } else if (Action.ACTION_DROP.equals(action)) {
        return Permission.DROP;
    } else if (Action.ACTION_SELECT.equals(action)) {
        return Permission.SELECT;
    } else if (Action.ACTION_MODIFY.equals(action)) {
        return Permission.MODIFY;
    } else if (Action.ACTION_AUTHORIZE.equals(action)) {
        return Permission.AUTHORIZE;
    } else {/*w  ww  .  j  ava  2  s . co  m*/
        return null;
    }
}