wt.dataops
Class DataMaintContentUtil
java.lang.Object
wt.dataops.DataMaintContentUtil
- public class DataMaintContentUtil
- extends Object
Helper class implements static methods to log messages in log service.
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 |
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
DataMaintContentUtil
public DataMaintContentUtil()
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