|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.maintainablexml.FileConverter
public class FileConverter
Used to upgrade 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.
Constructor Summary | |
---|---|
FileConverter()
|
Method Summary | |
---|---|
static DataSource |
getDataSource(HashMap settingsMap)
Creates the data source from the settings map |
void |
processDocumentRow(String docId,
String docCntnt,
EncryptionService encryptServ,
String runMode)
Called for each row in the processRow method of the spring query. |
void |
runFileConversion(HashMap settingsMap,
String runMode,
String fromRange,
String toRange,
boolean hasRangeParameters)
Selects all the encrypted xml documents from krns_maint_doc_t, decrypts them, runs the rules to upgrade them, encrypt them and update krns_maint_doc_t with the upgraded xml. |
void |
setRuleMaps()
Reads the rule xml and sets up the rule maps that will be used to transform the xml |
String |
upgradeXML(String oldXML)
Upgrades the xml using the rule maps executing the following actions : 1. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileConverter()
Method Detail |
---|
public void runFileConversion(HashMap settingsMap, String runMode, String fromRange, String toRange, boolean hasRangeParameters) throws Exception
settingsMap
- - the settings
Exception
public static DataSource getDataSource(HashMap settingsMap)
settingsMap
- - the settingMap containing the db connection settings
public void processDocumentRow(String docId, String docCntnt, EncryptionService encryptServ, String runMode)
docId
- - the document id stringdocCntnt
- - the old xml stringencryptServ
- - the encryption service used to encrypt/decrypt the xmlpublic String upgradeXML(String oldXML) throws Exception
oldXML
- - the old xml that must be upgraded
Exception
public void setRuleMaps()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |