public Permission build() {
      Action[] actionArray = actions.toArray(new Action[actions.size()]);
      if (namespace != null) {
        return new NamespacePermission(namespace, actionArray);
      } else if (tableName != null) {
        return new TablePermission(tableName, family, qualifier, actionArray);
      } else {
        return new GlobalPermission(actionArray);
      }
    }
Build a table permission
@param tableName the specific table name
@return table permission builder
hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/Permission.java