| java.lang.Object com.sun.jbi.ui.common.ESBResultFormatter
ESBResultFormatter | public class ESBResultFormatter (Code) | | this class creates formatted text from the esb admin result.
author: Sun Microsystems, Inc. |
Method Summary | |
public TaskResultInfo | createTaskResultInfo(TaskResultInfo taskResultInfo, List msgList, List expList) copy the id, resutl, msgtype from the taskresultinfo passed and create a new TaskResultInfo with them
and the passed msg, exp lists. | protected String | get2ndExceptionMsgI18NKey(int formatType) | protected String | get2ndMessageI18NKey(int formatType) | protected String | getExceptionMsgI18NKey(int formatType) | public String | getFormattedESBResult(JBIManagementMessage jbiMsg) return the formatted message if you can create. | public String | getFormattedESBResult(String jbiMgmtMsgXml) return the formatted message if you can create. | public String | getFormattedResult(ESBTaskResult esbResult) | public static I18NBundle | getI18NBundle() | protected String | getL10N2ndExptionMessageForAppVar(String appVarName) | protected String | getL10NExptionMessage(String code, String msg) | protected String | getL10NExptionMessageForAppVar(String appVarName) | protected String | getL10NMainMessage(String msgType, String code, String msg) | protected String | getL10NMainMessageForAppVar(String msgType, String appVarName) | protected String | getL10NMessage(String code, String msg) | protected String | getL10NMessageForAppVar(String appVarName) | protected String | getL10NMessageType(String msgType) | protected String | getMainMessageI18NKey(int formatType) | protected void | print2ndExceptionMessage(PrintWriter out, int formatType, String msgCode, String msg) | protected void | print2ndMessage(PrintWriter out, int formatType, String msgCode, String msg) | protected boolean | printAllFormattedMessages(PrintWriter out, int formatType, String msgType, List msgList, List expList, boolean startWithNewLine) | public boolean | printComponentLevelMessages(PrintWriter out, ComponentTaskResult compTaskResult) | public boolean | printESBTaskResult(PrintWriter out, ESBTaskResult esbResult) | protected void | printExceptionMessage(PrintWriter out, int formatType, String msgCode, String msg) | protected boolean | printFormattedExceptionMessages(PrintWriter out, int formatType, String msgType, List expList, boolean printMainMsg) | protected boolean | printFormattedStatusMessages(PrintWriter out, int formatType, String msgType, List msgList) | public boolean | printFrameworkLevelMessages(PrintWriter out, FrameworkTaskResult fwTaskResult) | public boolean | printInstanceLevelMessages(PrintWriter out, InstanceTaskResult instResult, boolean printInstanceName) | public boolean | printInstanceLevelMessages(PrintWriter out, InstanceTaskResult instResult) | public boolean | printJbiTaskResultMessages(PrintWriter out, JBITaskResult jbiTaskResult) | protected void | printMainMessage(PrintWriter out, int formatType, String msgType, String msgCode, String msg) | public boolean | printTaskResultMessages(PrintWriter out, int formatType, TaskResultInfo taskResultInfo) | public boolean | printTaskResultMessages(PrintWriter out, TaskResultInfo taskResultInfo) | public void | sortComponentTaskResultList(List compTaskResultList) | public void | sortInstanceResultList(List instResultList) | public ESBTaskResult | toESBTaskResult(JBIManagementMessage jbiMsg) | public void | updateInstanceMap(Map instMap, FrameworkTaskResult fwTaskResult, Map fwInstMsgMap, Map fwInstExpMap) | public void | updateInstanceMap(Map instMap, ComponentTaskResult compResult, Map msgMap, Map expMap) |
APP_VAR_MARKER_ID | final public static String APP_VAR_MARKER_ID(Code) | | application varaible name marker in the msg/exp list
|
CAS_KEY | final public static String CAS_KEY(Code) | | CAS msg/exp list key in the instance Maps
|
CAS_MSG_FORMAT | final public static int CAS_MSG_FORMAT(Code) | | cas msg format
|
COMP_MSG_FORMAT | final public static int COMP_MSG_FORMAT(Code) | | component msg format
|
ERROR | final public static String ERROR(Code) | | error message type
|
EXCEPTION | final public static String EXCEPTION(Code) | | error message type
|
INSTANCE_MARKER_ID | final public static String INSTANCE_MARKER_ID(Code) | | instance name marker in the msg/exp list
|
INST_MSG_FORMAT | final public static int INST_MSG_FORMAT(Code) | | instance msg format
|
SUCCESS | final public static String SUCCESS(Code) | | success status
|
TOP_MSG_FORMAT | final public static int TOP_MSG_FORMAT(Code) | | same as cas msg format
|
UNKNOWN | final public static String UNKNOWN(Code) | | unknown value for any unknonw value of any msg status or type.
|
WARNING | final public static String WARNING(Code) | | warning message type
|
ESBResultFormatter | public ESBResultFormatter()(Code) | | |
ESBResultFormatter | public ESBResultFormatter(String outLevel)(Code) | | Creates a new instance of AdminResultFormatter
|
createTaskResultInfo | public TaskResultInfo createTaskResultInfo(TaskResultInfo taskResultInfo, List msgList, List expList)(Code) | | copy the id, resutl, msgtype from the taskresultinfo passed and create a new TaskResultInfo with them
and the passed msg, exp lists. This will be used in re-creating the taskresultinfo per instance from
the main jbi mgmt msg task result info at framework level and component level
|
get2ndExceptionMsgI18NKey | protected String get2ndExceptionMsgI18NKey(int formatType)(Code) | | message format type i18n key
Parameters: formatType - format type i18n key |
get2ndMessageI18NKey | protected String get2ndMessageI18NKey(int formatType)(Code) | | message format type i18n key
Parameters: formatType - format type i18n key |
getExceptionMsgI18NKey | protected String getExceptionMsgI18NKey(int formatType)(Code) | | message format type i18n key
Parameters: formatType - format type i18n key |
getFormattedESBResult | public String getFormattedESBResult(JBIManagementMessage jbiMsg)(Code) | | return the formatted message if you can create. else return null
Parameters: jbiMgmtMsgXml - string contains the xml confirms to the JbiManagementMessage schema the formatted message if you can create. else return null |
getFormattedESBResult | public String getFormattedESBResult(String jbiMgmtMsgXml)(Code) | | return the formatted message if you can create. else return null
Parameters: jbiMgmtMsgXml - string contains the xml confirms to the JbiManagementMessage schema the formatted message if you can create. else return null |
getFormattedResult | public String getFormattedResult(ESBTaskResult esbResult)(Code) | | creates formatted esb results
Parameters: esbResult - esb results object formatted text |
getI18NBundle | public static I18NBundle getI18NBundle()(Code) | | gives the I18N bundle
I18NBundle object |
getL10N2ndExptionMessageForAppVar | protected String getL10N2ndExptionMessageForAppVar(String appVarName)(Code) | | creates l10n message in exceptin format
Parameters: appVarName - formatted message |
getL10NExptionMessage | protected String getL10NExptionMessage(String code, String msg)(Code) | | creates l10n message in exceptin format
Parameters: code - message code Parameters: msg - message formatted message |
getL10NExptionMessageForAppVar | protected String getL10NExptionMessageForAppVar(String appVarName)(Code) | | creates l10n message in exceptin format
Parameters: appVarName - formatted message |
getL10NMainMessage | protected String getL10NMainMessage(String msgType, String code, String msg)(Code) | | formats the message
Parameters: msgType - message type Parameters: code - message code Parameters: msg - message formatted message |
getL10NMainMessageForAppVar | protected String getL10NMainMessageForAppVar(String msgType, String appVarName)(Code) | | formats the message
Parameters: msgType - message type Parameters: appVarName - message formatted message |
getL10NMessage | protected String getL10NMessage(String code, String msg)(Code) | | creates l10n message
Parameters: code - message code Parameters: msg - message formatted message |
getL10NMessageForAppVar | protected String getL10NMessageForAppVar(String appVarName)(Code) | | creates l10n message
Parameters: appVarName - formatted message |
getL10NMessageType | protected String getL10NMessageType(String msgType)(Code) | | message type from i18n bundle
Parameters: msgType - message type message type |
getMainMessageI18NKey | protected String getMainMessageI18NKey(int formatType)(Code) | | message format type i18n key
Parameters: formatType - format type i18n key |
print2ndExceptionMessage | protected void print2ndExceptionMessage(PrintWriter out, int formatType, String msgCode, String msg)(Code) | | prints message to the output
Parameters: out - print writer to print the message Parameters: formatType - format type Parameters: msgCode - message code Parameters: msg - message |
print2ndMessage | protected void print2ndMessage(PrintWriter out, int formatType, String msgCode, String msg)(Code) | | prints message to the output
Parameters: out - print writer to print the message Parameters: formatType - format type Parameters: msgCode - message code Parameters: msg - message |
printAllFormattedMessages | protected boolean printAllFormattedMessages(PrintWriter out, int formatType, String msgType, List msgList, List expList, boolean startWithNewLine)(Code) | | prints the messages from message list
true if any message is printed, false if no msg is printed. Parameters: out - print writer to print the message Parameters: formatType - format type Parameters: msgType - message type Parameters: msgList - list of TaskStatusMsgType objects Parameters: expList - list of ExceptionInfoType objects Parameters: startWithNewLine - true prints the first message in new line |
printComponentLevelMessages | public boolean printComponentLevelMessages(PrintWriter out, ComponentTaskResult compTaskResult)(Code) | | prints the messages
true if any message is printed, false if no msg is printed. Parameters: compTaskResultType - ComponentTaskResultType object Parameters: out - print writer to print the message |
printESBTaskResult | public boolean printESBTaskResult(PrintWriter out, ESBTaskResult esbResult)(Code) | | prints the messages
true if any message is printed, false if no msg is printed. Parameters: esbResultType - EsbTaskResultType object Parameters: out - print writer to print the message |
printExceptionMessage | protected void printExceptionMessage(PrintWriter out, int formatType, String msgCode, String msg)(Code) | | prints message to the output
Parameters: out - print writer to print the message Parameters: formatType - format type Parameters: msgCode - message code Parameters: msg - message |
printFormattedExceptionMessages | protected boolean printFormattedExceptionMessages(PrintWriter out, int formatType, String msgType, List expList, boolean printMainMsg)(Code) | | prints the messages from message list
true if any message is printed, false if no msg is printed. Parameters: out - print writer to print the message Parameters: formatType - format type Parameters: msgType - message type Parameters: expList - list of ExceptionInfoType objects Parameters: printMainMsg - true prints the first message as main message format |
printFormattedStatusMessages | protected boolean printFormattedStatusMessages(PrintWriter out, int formatType, String msgType, List msgList)(Code) | | prints the messages from message list
true if any message is printed, false if no msg is printed. Parameters: out - print writer to print the message Parameters: formatType - format type Parameters: msgType - message type Parameters: msgList - list of TaskStatusMsgType objects |
printFrameworkLevelMessages | public boolean printFrameworkLevelMessages(PrintWriter out, FrameworkTaskResult fwTaskResult)(Code) | | prints the messages
true if any message is printed, false if no msg is printed. Parameters: fwTaskResultType - frmwkTaskResultType object Parameters: out - print writer to print the message |
printInstanceLevelMessages | public boolean printInstanceLevelMessages(PrintWriter out, InstanceTaskResult instResult, boolean printInstanceName)(Code) | | prints the messages
true if any message is printed, false if no msg is printed. Parameters: instResultDetailType - InstanceResultDetailType object Parameters: printInstanceName - true prints the instance name, false prints no instance name. Parameters: out - print writer to print the message |
printInstanceLevelMessages | public boolean printInstanceLevelMessages(PrintWriter out, InstanceTaskResult instResult)(Code) | | prints the messages
true if any message is printed, false if no msg is printed. Parameters: instResultDetailType - InstanceResultDetailType object Parameters: out - print writer to print the message |
printJbiTaskResultMessages | public boolean printJbiTaskResultMessages(PrintWriter out, JBITaskResult jbiTaskResult)(Code) | | prints the messages
true if any message is printed, false if no msg is printed. Parameters: jbiTaskResultType - JbiTaskResultType object Parameters: out - print writer to print the message |
printMainMessage | protected void printMainMessage(PrintWriter out, int formatType, String msgType, String msgCode, String msg)(Code) | | prints message to the output
Parameters: out - print writer to print the message Parameters: formatType - format type Parameters: msgType - message type Parameters: msgCode - message code Parameters: msg - message |
printTaskResultMessages | public boolean printTaskResultMessages(PrintWriter out, int formatType, TaskResultInfo taskResultInfo)(Code) | | prints the messages
true if any message is printed, false if no msg is printed. Parameters: out - print writer to print the message Parameters: formatType - format type Parameters: taskResultDetailsType - TaskResultDetailsType object |
printTaskResultMessages | public boolean printTaskResultMessages(PrintWriter out, TaskResultInfo taskResultInfo)(Code) | | prints the messages
true if any message is printed, false if no msg is printed. Parameters: taskResultDetailsType - TaskResultDetailsType object Parameters: out - print writer to print the message |
sortComponentTaskResultList | public void sortComponentTaskResultList(List compTaskResultList)(Code) | | sort the list
Parameters: compTaskResultList - list. |
sortInstanceResultList | public void sortInstanceResultList(List instResultList)(Code) | | sort the list
Parameters: instResultList - list. |
updateInstanceMap | public void updateInstanceMap(Map instMap, FrameworkTaskResult fwTaskResult, Map fwInstMsgMap, Map fwInstExpMap)(Code) | | |
updateInstanceMap | public void updateInstanceMap(Map instMap, ComponentTaskResult compResult, Map msgMap, Map expMap)(Code) | | |
|
|