Package org.apache.sentry.provider.db.service.thrift

Examples of org.apache.sentry.provider.db.service.thrift.SentryPolicyServiceClient.grantURIPrivilege()


          if (uri != null) {
            System.out.println(String.format(
                "GRANT ALL ON URI %s TO ROLE %s; # server=%s",
                uri, roleName, server));

            client.grantURIPrivilege(requestorUserName, roleName, server, uri);
          } else if (table != null && !AccessConstants.ALL.equals(table)) {
            System.out.println(String.format(
                "GRANT %s ON TABLE %s TO ROLE %s; # server=%s, database=%s",
                "*".equals(action) ? "ALL" : action.toUpperCase(), table,
                roleName, server, database));
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.