Class UserdataConverter

java.lang.Object
org.dlese.dpc.schemedit.security.user.UserdataConverter

public class UserdataConverter extends Object
Converts user.xml files to a directory of username.xml records

Up to ncs version 2.7.10, all user data was stored in a single "user.xml" file. Release 2.7.10 stores user data in individual files. This class is responsible for

  • read a user.xml file, parse into user-based structures (storing info for a single user)
  • create a subdirectory in the parent of user.xml
  • write user data to individual files within the new user direcotry (named by username)
  • rename user.xml to user.xml.imported
Author:
Jonathan Ostwald
  • Method Details

    • convert

      public static void convert(File usersXmlFile) throws Exception
      Throws:
      Exception
    • convert

      public static void convert(String usersXmlPath) throws Exception
      Throws:
      Exception
    • main

      public static void main(String[] args) throws Exception
      The main program for the UserdataConverter class
      Parameters:
      args - The command line arguments
      Throws:
      Exception - NOT YET DOCUMENTED
    • prtln

      protected static void prtln(String s)
      NOT YET DOCUMENTED
      Parameters:
      s - NOT YET DOCUMENTED