com.filenet.wcm.apps.server.util.prefs

Class XMLUpdateUtil

  1. java.lang.Object
  2. extended bycom.filenet.wcm.apps.server.util.prefs.XMLUpdateUtil

  1. public class XMLUpdateUtil
  2. extends java.lang.Object

Constructor Summary

Constructor and Description
XMLUpdateUtil()

Method Summary

Modifier and Type Method and Description
  1. static
  2. void
copyFile(java.lang.String original,java.lang.String destination)
Backs up the original XML file.
  1. static
  2. void
log(java.lang.Object message)
Logs the passed in message to the system out
  1. static
  2. void
writeToXML(java.lang.String fileName,com.filenet.wcm.toolkit.server.util.prefs.WcmPrefsObject p)
Writes the WcmPrefsObject to XML file
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

XMLUpdateUtil

  1. public XMLUpdateUtil()

Method Detail

log

  1. public static void log(java.lang.Object message)
Logs the passed in message to the system out
Parameters:
message - The message to out put to system out.

copyFile

  1. public static void copyFile(java.lang.String original,
  2. java.lang.String destination)
  3. throws java.io.IOException
Backs up the original XML file.
Parameters:
original - The original file path.
destination - The destination file path.
Throws:
java.io.IOException

writeToXML

  1. public static void writeToXML(java.lang.String fileName,
  2. com.filenet.wcm.toolkit.server.util.prefs.WcmPrefsObject p)
  3. throws java.io.IOException
Writes the WcmPrefsObject to XML file
Parameters:
fileName - The path the the XML file
p - The WcmPrefsObject object that holds the XML data.
Throws:
java.io.IOException