wt.dataops
Class DataMaintContentUtil

java.lang.Object
  extended bywt.dataops.DataMaintContentUtil

public class DataMaintContentUtil
extends Object

Helper class implements static methods to log messages in log service.


Field Summary
private static String CLASSNAME
           
private static String comment
           
private static String fileEncoding
           
private static String info_separator
           
private static String infoExtention
           
private static Hashtable locales
           
private static String logExtention
           
private static Hashtable logs
           
private static String newLine
           
private static Hashtable operandsInfos
           
private static Hashtable opRecords
           
private static String RESOURCE
           
private static String TEMP_DIR
           
private static boolean USEUTF8
           
private static boolean VERBOSE
           
 
Constructor Summary
DataMaintContentUtil()
           
 
Method Summary
static void addContentToDataMaintRecord(DataMaintRecord opRec)
           
static void addOperandsInfoContent(WTCollection operands, DataMaintRecord record, String header, boolean noLinks, Locale locale)
           
static void copyOperandsInfo(DataMaintRecord record, ContentHolder holder)
           
static String formatAndWrite(WTCollection operands, boolean noLinks, String header, Locale locale, PrintWriter writer)
           
private static String getLogFileName(DataMaintRecord opRec)
           
private static String getlogFilePath(DataMaintRecord opRec)
           
private static String getOperandsInfoFilePath(DataMaintRecord opRec)
           
private static String getOperandsInfoName(DataMaintRecord opRec)
           
static boolean isRegistered()
           
static void registerDataMaintContent(DataMaintRecord opRec)
           
static void registerDataMaintContent(DataMaintRecord opRec, Locale locale)
           
static void unregisterDataMaintContent()
           
static void writeLogMessage(String message)
           
static void writeLogMessage(String resourceBundle, String messageKey, Object[] textInserts)
           
static void writeOperandsInfo(WTCollection operands, String header)
           
static void writeOperandsInfo(WTCollection operands, String header, boolean noLinks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

logExtention

private static final String logExtention
See Also:
Constant Field Values

infoExtention

private static final String infoExtention
See Also:
Constant Field Values

info_separator

private static final String info_separator
See Also:
Constant Field Values

comment

private static final String comment
See Also:
Constant Field Values

fileEncoding

private static final String fileEncoding
See Also:
Constant Field Values

newLine

private static final String newLine
See Also:
Constant Field Values

USEUTF8

private static final boolean USEUTF8

VERBOSE

private static final boolean VERBOSE

TEMP_DIR

private static String TEMP_DIR

opRecords

private static Hashtable opRecords

logs

private static Hashtable logs

operandsInfos

private static Hashtable operandsInfos

locales

private static Hashtable locales
Constructor Detail

DataMaintContentUtil

public DataMaintContentUtil()
Method Detail

registerDataMaintContent

public static void registerDataMaintContent(DataMaintRecord opRec)
                                     throws WTException
Throws:
WTException

registerDataMaintContent

public static void registerDataMaintContent(DataMaintRecord opRec,
                                            Locale locale)
                                     throws WTException
Throws:
WTException

addContentToDataMaintRecord

public static void addContentToDataMaintRecord(DataMaintRecord opRec)
                                        throws WTException
Throws:
WTException

unregisterDataMaintContent

public static void unregisterDataMaintContent()
                                       throws WTException
Throws:
WTException

writeLogMessage

public static void writeLogMessage(String message)
                            throws WTException
Throws:
WTException

writeLogMessage

public static void writeLogMessage(String resourceBundle,
                                   String messageKey,
                                   Object[] textInserts)
                            throws WTException
Throws:
WTException

writeOperandsInfo

public static void writeOperandsInfo(WTCollection operands,
                                     String header)
                              throws WTException
Throws:
WTException

writeOperandsInfo

public static void writeOperandsInfo(WTCollection operands,
                                     String header,
                                     boolean noLinks)
                              throws WTException
Throws:
WTException

addOperandsInfoContent

public static void addOperandsInfoContent(WTCollection operands,
                                          DataMaintRecord record,
                                          String header,
                                          boolean noLinks,
                                          Locale locale)
                                   throws WTException
Throws:
WTException

copyOperandsInfo

public static void copyOperandsInfo(DataMaintRecord record,
                                    ContentHolder holder)
                             throws WTException
Throws:
WTException

isRegistered

public static boolean isRegistered()

getlogFilePath

private static String getlogFilePath(DataMaintRecord opRec)
                              throws WTException
Throws:
WTException

getLogFileName

private static String getLogFileName(DataMaintRecord opRec)
                              throws WTException
Throws:
WTException

getOperandsInfoFilePath

private static String getOperandsInfoFilePath(DataMaintRecord opRec)
                                       throws WTException
Throws:
WTException

getOperandsInfoName

private static String getOperandsInfoName(DataMaintRecord opRec)
                                   throws WTException
Throws:
WTException

formatAndWrite

public static String formatAndWrite(WTCollection operands,
                                    boolean noLinks,
                                    String header,
                                    Locale locale,
                                    PrintWriter writer)
                             throws WTException
Throws:
WTException