Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.report
Class ReportItem

java.lang.Object
  extended by oracle.apps.fnd.applseed.report.ReportItem
All Implemented Interfaces:
java.lang.Comparable

public class ReportItem
extends java.lang.Object
implements java.lang.Comparable

Report Items are displayed in the Rendering of reports in the Log Manager. Report Items are generally string Messages. These messages are tied to a context. The items are displayed grouped by context. Report Items can exist in a hierachy of report item objects. If the report Item may be associated to objects. These objects are rendered on the report page by TreeReportRenderer.


Constructor Summary
ReportItem(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel, java.lang.String pmessage)
          Constructor based on panel context and String message.
ReportItem(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel, java.lang.String pmessage, java.lang.String paction)
          Constructor based on panel context, message, and action to be performed.
ReportItem(oracle.jbo.def.NamedObject namedObj, java.lang.String pmessage)
          Constructor based on NamedObject context and String message.
ReportItem(oracle.jbo.def.NamedObject namedObj, java.lang.String pmessage, java.lang.String paction)
          Constructor based on NamedObject context, message, and action to be performed.
ReportItem(java.lang.String pname, java.lang.String pcontext)
          Constructor based on String context.
ReportItem(java.lang.String pcontext, java.lang.String pname, java.lang.String pmessage)
          Constructor based on String context, message, and action to be performed.
ReportItem(java.lang.String pcontext, java.lang.String pname, java.lang.String pmessage, ReportManager.ReportType type)
          Constructor for item based on String context, message, and report type.
ReportItem(java.lang.String pcontext, java.lang.String pname, java.lang.String pmessage, ReportManager.ReportType type, java.lang.Object[] linkObj)
          Constructor for hierarchy of items based on String context, message, and report type.
ReportItem(java.lang.String pcontext, java.lang.String pname, java.lang.String pmessage, java.lang.String paction)
          Constructor for item based on String context, message, and action.
 
Method Summary
 int compareTo(java.lang.Object obj)
          Method performs natural ordering of report item.
 boolean equals(java.lang.Object obj)
          Method compares with object and returns true if context, message, and hierarchy is the same.
 java.lang.String getAction()
          Method returns action of the report item.
 java.lang.String getContext()
          Method returns context of the report item.
 java.lang.Object[] getLinkObjectPath()
          Method returns hierarchy of objects of this report item.
 java.lang.String getMessage()
          Method returns message of the report item.
 java.lang.String getName()
          Method returns name of the context of the report item.
 ReportManager.ReportType getReportType()
          Method returns the report type of this report item.
 int hashCode()
          Method computes hashcode based on context, name and message.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportItem

public ReportItem(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel,
                  java.lang.String pmessage)
Constructor based on panel context and String message.

Parameters:
panel - panel context of the message
pmessage - String message

ReportItem

public ReportItem(oracle.jbo.dt.ui.main.dlg.DtuWizardPanel panel,
                  java.lang.String pmessage,
                  java.lang.String paction)
Constructor based on panel context, message, and action to be performed.

Parameters:
panel - panel context of the message
pmessage - String message
paction - action to be performed

ReportItem

public ReportItem(oracle.jbo.def.NamedObject namedObj,
                  java.lang.String pmessage)
Constructor based on NamedObject context and String message.

Parameters:
namedObj - Named Object context of the message
pmessage - String message

ReportItem

public ReportItem(oracle.jbo.def.NamedObject namedObj,
                  java.lang.String pmessage,
                  java.lang.String paction)
Constructor based on NamedObject context, message, and action to be performed.

Parameters:
namedObj - Named Object context of the message
pmessage - String message
paction - action to be performed

ReportItem

public ReportItem(java.lang.String pcontext,
                  java.lang.String pname,
                  java.lang.String pmessage)
Constructor based on String context, message, and action to be performed.

Parameters:
pcontext - String context of the message
pname - context name
pmessage - String message

ReportItem

public ReportItem(java.lang.String pcontext,
                  java.lang.String pname,
                  java.lang.String pmessage,
                  ReportManager.ReportType type,
                  java.lang.Object[] linkObj)
Constructor for hierarchy of items based on String context, message, and report type. The hierarchy is array of objects containing the root of the hierarchy as the first object, and the leaf as the last object of the array. If a tree with four leaves need to be shown, four calls to this method would be required.

Parameters:
pcontext - String context of the message
pname - context name
pmessage - String message
type - Report type
linkObj - Hierarchy of report item objects

ReportItem

public ReportItem(java.lang.String pcontext,
                  java.lang.String pname,
                  java.lang.String pmessage,
                  ReportManager.ReportType type)
Constructor for item based on String context, message, and report type.

Parameters:
pcontext - String context of the message
pname - context name
pmessage - String message
type - Report type

ReportItem

public ReportItem(java.lang.String pcontext,
                  java.lang.String pname,
                  java.lang.String pmessage,
                  java.lang.String paction)
Constructor for item based on String context, message, and action.

Parameters:
pcontext - String context of the message
pname - context name
pmessage - String message
paction - action to be performed

ReportItem

public ReportItem(java.lang.String pname,
                  java.lang.String pcontext)
Constructor based on String context.

Parameters:
pname - context name
pcontext - String context
Method Detail

hashCode

public int hashCode()
Method computes hashcode based on context, name and message.

Overrides:
hashCode in class java.lang.Object
Returns:
returns hascode

compareTo

public int compareTo(java.lang.Object obj)
Method performs natural ordering of report item.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - object being compared to.
Returns:
returns sort position with respect to compared object.

equals

public boolean equals(java.lang.Object obj)
Method compares with object and returns true if context, message, and hierarchy is the same.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object being compared
Returns:
returns true if the two objects are equal

getAction

public java.lang.String getAction()
Method returns action of the report item.

Returns:
returns action

getName

public java.lang.String getName()
Method returns name of the context of the report item.

Returns:
returns name of the context

getContext

public java.lang.String getContext()
Method returns context of the report item.

Returns:
returns context of the report item

getMessage

public java.lang.String getMessage()
Method returns message of the report item.

Returns:
returns message of the report item

getLinkObjectPath

public java.lang.Object[] getLinkObjectPath()
Method returns hierarchy of objects of this report item. The hierarchy consists of array of objects. The last object of the array is the report item. The first object is the root of the hierarchy.

Returns:
returns array of objects

getReportType

public ReportManager.ReportType getReportType()
Method returns the report type of this report item.

Returns:
returns the report type

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.