public static boolean hasPermission(Connection connection, String tableName, String columnFamily,
    String columnQualifier, String userName, Permission.Action... actions) throws Throwable {
    return hasPermission(connection, tableName, Bytes.toBytes(columnFamily),
      Bytes.toBytes(columnQualifier), userName, actions);
  }
Validates whether specified user has permission to perform actions on the mentioned table,
column family or column qualifier.
@param connection      Connection
@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 to the specified user, otherwise false.
@throws Throwable on failure
hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlClient.java