|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
| 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
Exceptionpublic 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 xml
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||