|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ebay.carad.os.vitalsigns.templates.DashboardReportTemplate
public class DashboardReportTemplate
Provides a way to generate templatized sets of reports based on the output of a query. This is useful if you want numerous dashboard reports that are reporting against a possibly changing set of values in the database.
Reports are created at load time, and only re-loaded upon dashboard restart.
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
LOGGER
|
private IDashboardReportContainer |
mContainer
|
private IMultiTemplatizableProvider |
mDataProvider
|
private java.lang.String |
mGroupName
|
private java.util.List |
mReports
List of generated reports. |
Constructor Summary | |
---|---|
DashboardReportTemplate()
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
|
private void |
createReports()
Generates the list of templatized reports, if they have not been generated yet. |
java.lang.String |
getGroupName()
|
java.util.List |
getReports()
Generates a set of report objects based on the data provided by the IMultiTemplatizableProvider and the contained template reports. |
int |
getSortOrder()
Returns the sort order of the container. |
void |
setDataProvider(IMultiTemplatizableProvider provider)
IoC method for initialization; defines where our list of lists comes from. |
void |
setGroupName(java.lang.String groupName)
|
void |
setTemplateContainer(IDashboardReportContainer inContainer)
IoC method to allow a report container to be passed in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOGGER
private IDashboardReportContainer mContainer
private java.lang.String mGroupName
private IMultiTemplatizableProvider mDataProvider
private java.util.List mReports
Constructor Detail |
---|
public DashboardReportTemplate()
Method Detail |
---|
public void setTemplateContainer(IDashboardReportContainer inContainer)
ITemplatizable
inContainer
- the container to use as a templatepublic java.util.List getReports()
getReports
in interface IDashboardReportContainer
IDashboardReport
objects.public void setDataProvider(IMultiTemplatizableProvider provider)
provider
- the provider of our template dataprivate void createReports()
public int getSortOrder()
getSortOrder
in interface IDashboardReportContainer
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public java.lang.String getGroupName()
getGroupName
in interface IDashboardReportContainer
public void setGroupName(java.lang.String groupName)
groupName
- The groupName to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |