public static PrivilegeType posToSysPri(int pos) {
    switch (pos) {
      case 0:
        return PrivilegeType.MANAGE_DATABASE;
      case 1:
        return PrivilegeType.MANAGE_USER;
      case 2:
        return PrivilegeType.MANAGE_ROLE;
      case 3:
        return PrivilegeType.USE_TRIGGER;
      case 4:
        return PrivilegeType.USE_UDF;
      case 5:
        return PrivilegeType.USE_CQ;
      case 6:
        return PrivilegeType.USE_PIPE;
      case 7:
        return PrivilegeType.EXTEND_TEMPLATE;
      case 8:
        return PrivilegeType.MAINTAIN;
      case 9:
        return PrivilegeType.USE_MODEL;
      default:
        // Not reach here.
        LOGGER.warn("Not support position");
        throw new RuntimeException("Not support position");
    }
  }
Transform permission from name to privilegeId

@param authorizationList the list of privilege name
@return the set of privilege type
@throws AuthException throws if there are no privilege matched
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java