|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.war.report.ReportData
public abstract class ReportData
| Nested Class Summary | |
|---|---|
class |
ReportData.ArrayDataIterator
|
protected class |
ReportData.ListDataIterator
|
| Field Summary | |
|---|---|
static java.lang.String |
FORMAT_GRAPH
|
static java.lang.String |
FORMAT_KML
|
static java.lang.String |
FORMAT_MAP
|
| Constructor Summary | |
|---|---|
ReportData(ReportEntry rptEntry,
RequestProperties reqState,
ReportDeviceList devList)
|
|
ReportData(ReportFactory rptFact,
RequestProperties reqState,
Account acct,
User user,
ReportDeviceList devList)
|
|
| Method Summary | |
|---|---|
protected long |
_countEventData(Device deviceDB)
|
protected EventData[] |
_getEventData(Device deviceDB,
DBRecordHandler<EventData> rcdHandler)
Returns an array EventData records for the specified Device |
protected long |
countEventData(Device deviceDB)
|
java.lang.String |
expandHeaderText(java.lang.String text)
|
Account |
getAccount()
|
java.lang.String |
getAccountID()
|
URIArg |
getAutoReportURL()
|
abstract DBDataIterator |
getBodyDataIterator()
|
int |
getColumnCount()
|
DataRowTemplate |
getDataRowTemplate()
|
Device |
getDevice(java.lang.String deviceID)
|
int |
getDeviceCount()
|
protected EventData[] |
getEventData(DBRecordHandler<EventData> rcdHandler)
Returns an array EventData records based on the predefined ReportDeviceList and constraints |
protected EventData[] |
getEventData(Device deviceDB,
DBRecordHandler<EventData> rcdHandler)
Returns an array EventData records for the specified Device |
java.lang.String |
getFirstDeviceID()
|
java.lang.String |
getGraphLinkDescription()
|
URIArg |
getGraphURL()
|
MapDimension |
getGraphWindowSize()
|
java.lang.String |
getKmlLinkDescription()
|
URIArg |
getKmlURL()
|
java.util.Locale |
getLocale()
|
java.lang.String |
getMapIconSelector()
|
java.lang.String |
getMapLinkDescription()
|
URIArg |
getMapURL()
|
MapDimension |
getMapWindowSize()
|
long |
getMaximumEventDataCount()
|
boolean |
getOrderAscending()
Returns true if the data records are to be in ascending order |
java.lang.String |
getPreferredFormat()
|
PrivateLabel |
getPrivateLabel()
|
RTProperties |
getProperties()
|
URIArg |
getRefreshURL()
|
ReportCallback |
getReportCallback()
Gets the ReportCallback instance (if specified) |
ReportColumn[] |
getReportColumns()
|
ReportConstraints |
getReportConstraints()
Gets the ReportConstraints for this report |
ReportDeviceList |
getReportDeviceList()
|
ReportEntry |
getReportEntry()
|
ReportFactory |
getReportFactory()
|
abstract ReportLayout |
getReportLayout()
|
long |
getReportLimit()
Returns the report limit constraint. |
java.lang.String |
getReportName()
|
ReportOption |
getReportOption()
|
java.lang.String |
getReportSubtitle()
|
java.lang.String |
getReportTitle()
|
java.lang.String |
getReportType()
|
RequestProperties |
getRequestProperties()
|
java.lang.String |
getRuleSelector()
Returns the 'rule' selector constraint |
long |
getSelectionLimit()
Returns the selection limit constraint. |
EventData.LimitType |
getSelectionLimitType()
Returns the selection limit type constraint |
int[] |
getStatusCodes()
Returns the status codes constraint |
boolean |
getSupportsGraphDisplay()
Returns true if this report supports displaying a graph |
boolean |
getSupportsKmlDisplay()
Returns true if this report supports displaying KML |
boolean |
getSupportsMapDisplay()
Returns true if this report supports displaying a map |
long |
getTimeEnd()
Returns the time end constraint |
long |
getTimeStart()
Returns the time start constraint |
java.util.TimeZone |
getTimeZone()
|
java.lang.String |
getTimeZoneString()
|
abstract DBDataIterator |
getTotalsDataIterator()
|
User |
getUser()
|
java.lang.String |
getUserID()
|
boolean |
getValidGPSRequired()
Returns the "valid GPS required" constraint |
java.lang.String |
getWhereSelector()
Returns the 'WHERE' selector constraint |
boolean |
hasReportColumn(java.lang.String name)
|
boolean |
hasReportOption()
|
boolean |
isSingleDeviceOnly()
Returns true if this report handles only a single device at a time |
boolean |
isSoapRequest()
|
void |
postInitialize()
This method is called after all other ReportConstraints have been set. |
void |
setAutoReportURL(URIArg autoReportURL)
|
void |
setGraphURL(URIArg graphURL)
|
void |
setKmlURL(URIArg kmlURL)
|
void |
setMapIconSelector(java.lang.String iconSel)
|
void |
setMapURL(URIArg mapURL)
|
void |
setPreferredFormat(java.lang.String format)
|
void |
setRefreshURL(URIArg refreshURL)
|
void |
setReportCallback(ReportCallback rptCB)
Sets the ReportCallback instance |
void |
setReportColumns(ReportColumn[] columns)
|
void |
setReportConstraints(ReportConstraints rc)
Sets the ReportConstraints for this report |
protected void |
setReportDeviceList(ReportDeviceList devList)
|
void |
setReportName(java.lang.String name)
|
void |
setReportOption(ReportOption rptOpt)
|
void |
setReportSubtitle(java.lang.String title)
|
void |
setReportTitle(java.lang.String title)
|
int |
writeReport(java.lang.String format,
OutputProvider out)
|
int |
writeReport(java.lang.String format,
OutputProvider out,
int indentLevel)
|
void |
writeReportStyle(java.lang.String format,
OutputProvider out)
|
| 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 FORMAT_MAP
public static final java.lang.String FORMAT_KML
public static final java.lang.String FORMAT_GRAPH
| Constructor Detail |
|---|
public ReportData(ReportFactory rptFact,
RequestProperties reqState,
Account acct,
User user,
ReportDeviceList devList)
throws ReportException
ReportException
public ReportData(ReportEntry rptEntry,
RequestProperties reqState,
ReportDeviceList devList)
throws ReportException
ReportException| Method Detail |
|---|
public ReportEntry getReportEntry()
public ReportFactory getReportFactory()
public RTProperties getProperties()
public void setReportName(java.lang.String name)
public java.lang.String getReportName()
public java.lang.String getReportType()
public void setReportTitle(java.lang.String title)
public java.lang.String getReportTitle()
public void setReportSubtitle(java.lang.String title)
public java.lang.String getReportSubtitle()
public java.lang.String expandHeaderText(java.lang.String text)
public RequestProperties getRequestProperties()
public boolean isSoapRequest()
public java.util.TimeZone getTimeZone()
public java.lang.String getTimeZoneString()
public PrivateLabel getPrivateLabel()
public java.util.Locale getLocale()
public void setMapIconSelector(java.lang.String iconSel)
public java.lang.String getMapIconSelector()
public Account getAccount()
public java.lang.String getAccountID()
public User getUser()
public java.lang.String getUserID()
public java.lang.String getPreferredFormat()
public void setPreferredFormat(java.lang.String format)
public boolean isSingleDeviceOnly()
protected void setReportDeviceList(ReportDeviceList devList)
throws ReportException
ReportExceptionpublic ReportDeviceList getReportDeviceList()
public int getDeviceCount()
public java.lang.String getFirstDeviceID()
public Device getDevice(java.lang.String deviceID)
throws DBException
DBExceptionpublic void setReportColumns(ReportColumn[] columns)
public ReportColumn[] getReportColumns()
public int getColumnCount()
public boolean hasReportColumn(java.lang.String name)
public boolean hasReportOption()
public ReportOption getReportOption()
public void setReportOption(ReportOption rptOpt)
public void setReportConstraints(ReportConstraints rc)
rc - The ReportConstraintspublic ReportConstraints getReportConstraints()
public java.lang.String getRuleSelector()
public java.lang.String getWhereSelector()
public EventData.LimitType getSelectionLimitType()
public long getSelectionLimit()
public long getReportLimit()
public long getTimeStart()
public long getTimeEnd()
public boolean getValidGPSRequired()
public int[] getStatusCodes()
public boolean getOrderAscending()
public ReportCallback getReportCallback()
public void setReportCallback(ReportCallback rptCB)
throws ReportException
rptCB - The ReportCallback instance
ReportExceptionprotected EventData[] getEventData(DBRecordHandler<EventData> rcdHandler)
rcdHandler - The callback DBRecordHandler. If specified, the returned EventData
array may be null.
protected EventData[] getEventData(Device deviceDB,
DBRecordHandler<EventData> rcdHandler)
deviceDB - The Device for which EventData records will be selectedrcdHandler - The callback DBRecordHandler. If specified, the returned EventData
array may be null.
protected EventData[] _getEventData(Device deviceDB,
DBRecordHandler<EventData> rcdHandler)
deviceDB - The Device for which EventData records will be selectedrcdHandler - The callback DBRecordHandler. If specified, the returned EventData
array may be null.
public long getMaximumEventDataCount()
protected long countEventData(Device deviceDB)
protected long _countEventData(Device deviceDB)
public void setAutoReportURL(URIArg autoReportURL)
public URIArg getAutoReportURL()
public boolean getSupportsGraphDisplay()
public void setGraphURL(URIArg graphURL)
public URIArg getGraphURL()
public java.lang.String getGraphLinkDescription()
public MapDimension getGraphWindowSize()
public boolean getSupportsMapDisplay()
public void setMapURL(URIArg mapURL)
public URIArg getMapURL()
public java.lang.String getMapLinkDescription()
public MapDimension getMapWindowSize()
public boolean getSupportsKmlDisplay()
public void setKmlURL(URIArg kmlURL)
public URIArg getKmlURL()
public java.lang.String getKmlLinkDescription()
public void setRefreshURL(URIArg refreshURL)
public URIArg getRefreshURL()
public void postInitialize()
public abstract ReportLayout getReportLayout()
public DataRowTemplate getDataRowTemplate()
public void writeReportStyle(java.lang.String format,
OutputProvider out)
throws ReportException
ReportException
public int writeReport(java.lang.String format,
OutputProvider out)
throws ReportException
ReportException
public int writeReport(java.lang.String format,
OutputProvider out,
int indentLevel)
throws ReportException
ReportExceptionpublic abstract DBDataIterator getBodyDataIterator()
public abstract DBDataIterator getTotalsDataIterator()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||