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

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

Introduction

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

Prototype

Permission ALTER

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

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   ww w  .j a  v  a  2 s.  c o  m*/
        return null;
    }
}