Package org.apache.accumulo.server.security

Examples of org.apache.accumulo.server.security.Authenticator.grantTablePermission()


  public Repo<Master> call(long tid, Master env) throws Exception {
    // give all table permissions to the creator
    Authenticator authenticator = ZKAuthenticator.getInstance();
    for (TablePermission permission : TablePermission.values()) {
      try {
        authenticator.grantTablePermission(SecurityConstants.getSystemCredentials(), tableInfo.user, tableInfo.tableId, permission);
      } catch (AccumuloSecurityException e) {
        Logger.getLogger(FinishCreateTable.class).error(e.getMessage(), e);
        throw e.asThriftException();
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.