public static Permission.Action[] permissionActionsFromString(String permission_actions) {
    Set<Permission.Action> actions = new HashSet<>();
    for (char c : permission_actions.toCharArray()) {
      switch (c) {
        case 'R':
          actions.add(Permission.Action.READ);
          break;
        case 'W':
          actions.add(Permission.Action.WRITE);
          break;
        case 'C':
          actions.add(Permission.Action.CREATE);
          break;
        case 'X':
          actions.add(Permission.Action.EXEC);
          break;
        case 'A':
          actions.add(Permission.Action.ADMIN);
          break;
        default:
          break;
      }
    }
    return actions.toArray(new Permission.Action[0]);
  }
Adds all the attributes into the Operation object
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java