|
Oracle Fusion Middleware extensions for Seed Data Framework 11g Release 1 (11.1.2) E22564-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applseed.report.ReportManager
public final class ReportManager
ReportManger class exposes programming interface to error reporting as well as reporting in general. The report Manager maintains a error/report item set. These report items are categorized as validation reports, migration progress reports, or or migration evaluation reports. The report items are further categorized by context that is defined while registering the report item. The calling programs may also register a predefined action that is appropriate for the error item. These report items are registered by the static methods setError or setReport. The ReportManager provides utility methods to display the report in a dialog box. Such display may be restricted to contexts. Also, the report manager manages a tree representation of all the error/report items in the log panel of JDeveloper.
Nested Class Summary | |
---|---|
static class |
ReportManager.ReportType
ReportType allows for classification of error/report items during reporting. |
Field Summary | |
---|---|
static java.lang.String |
ACT_DRAFT
The action to be perfomed on the Configuration file. |
static java.lang.String |
ACT_FIXNOW
The action to be perfomed on the Configuration file. |
static ReportManager.ReportType |
MIGRATION_ASSESSMENT
Report items of this type indicate the work content to complete the migration from pre-fusion based Seeddata configuration file to the fusion configuration file. |
static ReportManager.ReportType |
MIGRATION_CONFORMANCE
Report items of this type indicate the progress of the migration from pre-fusion based Seeddata configuration file to the fusion configuration file. |
static ReportManager.ReportType |
MIGRATION_CONFORMANCE_SUMMARY
Report items of this type summarize the Seed Configuration. |
static ReportManager.ReportType |
VALIDATION_REPORT
Report items of this type are messages that have been generated by validation of the Seed Configuration. |
Method Summary | |
---|---|
static java.lang.StringBuilder |
buildMessage()
Returns StringBuffer listing all the error and report items. |
static java.lang.StringBuilder |
buildMessage(java.lang.String pcontext,
java.lang.String pname)
Returns StringBuffer listing all the validation error items. |
static void |
clear()
Clears the ReportItem collection and prepares the report for a new report. |
static void |
clear(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel)
Remove all error/report items related to the panel. |
static void |
clear(oracle.jbo.def.NamedObject namedObject)
Remove all error/report items related to the named object. |
static void |
clear(java.lang.String context,
java.lang.String name)
Clears the ReportItem collection of items that belong to the context of given name. |
static int |
confirmEditOnErrorList()
Shows error/message items in dialog box. |
static java.util.Set |
getActionSet()
Returns the Set of actions that have been registered with the error/report items. |
static boolean |
isEmpty()
Returns true if no error/report item is registered. |
static boolean |
isEmpty(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel)
Returns true if no error/report item for context panel has been registered. |
static boolean |
isEmpty(oracle.jbo.def.NamedObject namedObject)
Returns true if no error/report item for context namedObject has been registered. |
static boolean |
isEmpty(java.lang.String context,
java.lang.String name)
Returns true if no error/report item for named context has been registered. |
static void |
log()
Starts a new log page and displays all the error items in hierachical tree. |
static void |
setAppModule(oracle.jbo.dt.objects.JboAppModule pam)
Set Application Module the report will be based on. |
static void |
setError(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel,
java.lang.String error)
Register error item by the panel where the error can be fixed. |
static void |
setError(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel,
java.lang.String error,
java.lang.String action)
Register error item by the panel where the error can be fixed. |
static void |
setError(oracle.jbo.def.NamedObject namedObj,
java.lang.String error)
Register error item by the namedObj that has caused the error. |
static void |
setError(oracle.jbo.def.NamedObject namedObj,
java.lang.String error,
java.lang.String action)
Register error item by the namedObj that caused the error. |
static void |
setError(java.lang.String context,
java.lang.String contextName,
java.lang.String error)
Register error item by the context and contextName that has caused the error. |
static void |
setError(java.lang.String context,
java.lang.String contextName,
java.lang.String error,
java.lang.String action)
Register error item by context and contextName. |
static void |
setReport(java.lang.String context,
java.lang.String contextName,
ReportManager.ReportType type,
javax.swing.tree.DefaultMutableTreeNode root)
Register report item(s) by the context and contextName. |
static void |
setReport(java.lang.String context,
java.lang.String contextName,
java.lang.String msg,
ReportManager.ReportType type)
Register report item by the context and contextName. |
static void |
setReport(java.lang.String context,
java.lang.String contextName,
java.lang.String msg,
ReportManager.ReportType type,
java.lang.Object[] contextPath)
Register report item by the context and contextName. |
static void |
setTitle(java.lang.String ptitle)
Sets the title for Dialog boxes. |
static void |
showErrorList()
Shows all validation error items in a dialog box. |
static void |
showErrorList(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel wiz)
Shows all error and report items related to context wiz in a dialog box. |
static void |
showErrorList(oracle.jbo.def.NamedObject namedObj)
Shows all error and report items related to the context namedObj in a dialog box. |
static int |
showErrorList(java.lang.StringBuilder buff,
int ideButtons,
int msgType,
java.lang.String confirmation)
Shows error and report items and returns user selection. |
static void |
showErrorList(java.lang.String context,
java.lang.String name)
Shows all error and report items related to the named context in a dialog box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ACT_DRAFT
setError(String , String , String , String )
,
Constant Field Valuespublic static final java.lang.String ACT_FIXNOW
setError(String , String , String , String )
,
Constant Field Valuespublic static final ReportManager.ReportType VALIDATION_REPORT
setError
or
any other flavor of setError function will create error items of
ValidationReport type. Report Items of this type can also be registered by
call to
\
setReport
or its variations. This ReportType has
an order value of 10.
public static final ReportManager.ReportType MIGRATION_ASSESSMENT
\
setReport
or its variations. This ReportType has an order value of 20.
public static final ReportManager.ReportType MIGRATION_CONFORMANCE
\
setReport
or its variations. This ReportType has an order value of 30.
public static final ReportManager.ReportType MIGRATION_CONFORMANCE_SUMMARY
\
setReport
or its variations. This ReportType has an order value of 40.
Method Detail |
---|
public static void setTitle(java.lang.String ptitle)
ptitle
- title of the dialog boxpublic static void clear()
public static void clear(java.lang.String context, java.lang.String name)
context
- context to be clearedname
- context namepublic static void setError(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel, java.lang.String error)
panel
- panel related to the errorerror
- error messagepublic static void setError(oracle.jbo.def.NamedObject namedObj, java.lang.String error)
namedObj
- named object related to the errorerror
- error messagepublic static void setError(java.lang.String context, java.lang.String contextName, java.lang.String error)
context
- context related to the errorcontextName
- name of the contexterror
- error messagepublic static void setReport(java.lang.String context, java.lang.String contextName, ReportManager.ReportType type, javax.swing.tree.DefaultMutableTreeNode root)
context
- context of the report item(s)contextName
- name of the contexttype
- report type of the report item(s)root
- root of the tree containing all report itemspublic static void setReport(java.lang.String context, java.lang.String contextName, java.lang.String msg, ReportManager.ReportType type, java.lang.Object[] contextPath)
context
- context of the report itemcontextName
- name of the contextmsg
- report itemtype
- report type of the report itemcontextPath
- object array under which the report item will be
displayedpublic static void setReport(java.lang.String context, java.lang.String contextName, java.lang.String msg, ReportManager.ReportType type)
context
- context of the reportcontextName
- context namemsg
- report itemtype
- report type of the report itempublic static void setError(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel, java.lang.String error, java.lang.String action)
panel
- panel related to the error itemerror
- error messageaction
- action to be performed by the wizardpublic static void setError(oracle.jbo.def.NamedObject namedObj, java.lang.String error, java.lang.String action)
namedObj
- named object realted to the error itemerror
- error messageaction
- action to be performed by the wizardpublic static void setError(java.lang.String context, java.lang.String contextName, java.lang.String error, java.lang.String action)
context
- context of the error itemcontextName
- name of the contexterror
- error messageaction
- action to be performed by the wizardpublic static java.lang.StringBuilder buildMessage()
log()
method
of this class.
public static java.util.Set getActionSet()
public static java.lang.StringBuilder buildMessage(java.lang.String pcontext, java.lang.String pname)
pcontext
- context for which error items are listedpname
- name of context
public static void showErrorList()
public static void showErrorList(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel wiz)
wiz
- error/report items related to wizard panel are showpublic static void showErrorList(oracle.jbo.def.NamedObject namedObj)
namedObj
- error/report items related to named object are showpublic static void showErrorList(java.lang.String context, java.lang.String name)
context
- context of error/report items to be shownname
- name of the contextpublic static void setAppModule(oracle.jbo.dt.objects.JboAppModule pam)
pam
- Application Module the report is based onpublic static void log()
public static int showErrorList(java.lang.StringBuilder buff, int ideButtons, int msgType, java.lang.String confirmation)
SysIde
for list of buttons. The dialog
box shows a prompt message of type msgType. The selected button code is
returned.
buff
- StringBuffer containing list of messagesideButtons
- buttons to display in the dialog windowmsgType
- Type of messsageconfirmation
- confirmation message
public static int confirmEditOnErrorList()
public static boolean isEmpty()
public static boolean isEmpty(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel)
panel
- panel for which the operation is to be performed
public static boolean isEmpty(oracle.jbo.def.NamedObject namedObject)
namedObject
- named object for which the operation is to be performed
public static boolean isEmpty(java.lang.String context, java.lang.String name)
context
- existance of error/report item related to named context
testedname
- name of the context
public static void clear(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel)
panel
- panel for which the operation is to be performedpublic static void clear(oracle.jbo.def.NamedObject namedObject)
namedObject
- named object for which the operation is to be performed
|
Oracle Fusion Middleware extensions for Seed Data Framework 11g Release 1 (11.1.2) E22564-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |