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

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

Introduction

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

Prototype

Permission CREATE

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

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 {//from  w  w w. j  a va2 s .  com
        return null;
    }
}