Package org.apache.accumulo.server.security

Examples of org.apache.accumulo.server.security.SecurityOperation.grantNamespacePermission()


  public Repo<Master> call(long tid, Master env) throws Exception {
    // give all namespace permissions to the creator
    SecurityOperation security = AuditedSecurityOperation.getInstance();
    for (NamespacePermission permission : NamespacePermission.values()) {
      try {
        security.grantNamespacePermission(SystemCredentials.get().toThrift(env.getInstance()), namespaceInfo.user, namespaceInfo.namespaceId, permission);
      } catch (ThriftSecurityException e) {
        Logger.getLogger(FinishCreateNamespace.class).error(e.getMessage(), e);
        throw e;
      }
    }
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.