org.kuali.rice.krad.maintainablexml
Class ConvertMaintainableXML

java.lang.Object
  extended by org.kuali.rice.krad.maintainablexml.ConvertMaintainableXML

public class ConvertMaintainableXML
extends Object

This is a command line utility class which upgrades the maintenance document xml stored in krns_maint_doc_t.doc_cntnt to be able to still open and use any maintenance documents that were enroute at the time of an upgrade to Rice 2.0.

Instructions:

  1. Backup database.
  2. Add the conversion rules to the rules xml file - ..\rice\development-tools\src\main\resources\org\kuali\rice\devtools\krad\maintainablexml\MaintainableXMLUpgradeRules.xml See comments in the xml file to setup the rules.
  3. Run this class.
  4. Enter the rice config file location that has the database connection properties. Only enter the location relative to user.dir/kuali/main.
  5. Select Run mode. Mode 1 will do the xml upgrade and update the krns_maint_doc_t table with the new xml. Cannot roll back after this has been done. Mode 2 will only print out the old xml and the new xml - this can be used to test the rules xml setup.
  6. Select the range of document numbers to upgrade. Enter % on from range prompt to upgrade all.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ConvertMaintainableXML()
           
 
Method Summary
static HashMap getSettings(String filePath)
          Parses settings file and put the properties in a map.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertMaintainableXML

public ConvertMaintainableXML()
Method Detail

main

public static void main(String[] args)

getSettings

public static HashMap getSettings(String filePath)
                           throws Exception
Parses settings file and put the properties in a map.

Parameters:
filePath - - the location of the settings file
Returns:
a HashMap populated with the settings
Throws:
Exception


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.