@Deprecated
  public static boolean hasPermission(RpcController controller,
    AccessControlService.BlockingInterface protocol, TableName tableName, byte[] columnFamily,
    byte[] columnQualifier, String userName, Permission.Action[] actions) throws ServiceException {
    AccessControlProtos.TablePermission.Builder tablePermissionBuilder =
      AccessControlProtos.TablePermission.newBuilder();
    tablePermissionBuilder.setTableName(ProtobufUtil.toProtoTableName(tableName));
    if (Bytes.len(columnFamily) > 0) {
      tablePermissionBuilder.setFamily(UnsafeByteOperations.unsafeWrap(columnFamily));
    }
    if (Bytes.len(columnQualifier) > 0) {
      tablePermissionBuilder.setQualifier(UnsafeByteOperations.unsafeWrap(columnQualifier));
    }
    for (Permission.Action a : actions) {
      tablePermissionBuilder.addAction(toPermissionAction(a));
    }
    AccessControlProtos.HasPermissionRequest request = AccessControlProtos.HasPermissionRequest
      .newBuilder().setTablePermission(tablePermissionBuilder)
      .setUserName(ByteString.copyFromUtf8(userName)).build();
    AccessControlProtos.HasPermissionResponse response =
      protocol.hasPermission(controller, request);
    return response.getHasPermission();
  }
Validates whether specified user has permission to perform actions on the mentioned table,
column family or column qualifier.
@param controller      RpcController
@param protocol        the AccessControlService protocol proxy
@param tableName       Table name, it shouldn't be null or empty.
@param columnFamily    The column family. Optional argument, can be empty. If empty then
                       validation will happen at table level.
@param columnQualifier The column qualifier. Optional argument, can be empty. If empty then
                       validation will happen at table and column family level. columnQualifier
                       will not be considered if columnFamily is passed as null or empty.
@param userName        User name, it shouldn't be null or empty.
@param actions         Actions
@return true if access allowed, otherwise false
@deprecated Use {@link Admin#hasUserPermissions(String, List)} instead.
hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlUtil.java