org.opengts.extra.war.report.field
Class UnassignedDevicesReport

java.lang.Object
  extended by org.opengts.war.report.ReportData
      extended by org.opengts.extra.war.report.field.UnassignedDevicesReport
All Implemented Interfaces:
DBRecordHandler<UnassignedDevices>

public class UnassignedDevicesReport
extends ReportData
implements DBRecordHandler<UnassignedDevices>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opengts.war.report.ReportData
ReportData.ArrayDataIterator, ReportData.ListDataIterator
 
Field Summary
 
Fields inherited from class org.opengts.war.report.ReportData
CheckinAgeColorRangeDefault, CreationAgeColorRangeDefault, FORMAT_GRAPH, FORMAT_KML, FORMAT_MAP, FORMAT_PDF, GpsAgeColorRangeDefault, LoginAgeColorRangeDefault
 
Fields inherited from interface org.opengts.dbtools.DBRecordHandler
DBRH_SAVE, DBRH_SAVE_LAST, DBRH_SAVE_LAST_STOP, DBRH_SAVE_STOP, DBRH_SKIP, DBRH_STOP
 
Constructor Summary
UnassignedDevicesReport(ReportEntry rptEntry, RequestProperties reqState, ReportDeviceList devList)
          Motion Report Constructor
 
Method Summary
 DBDataIterator getBodyDataIterator()
          Creates and returns an iterator for the row data displayed in the body of this report.
protected  EventData[] getEventData(Device device, DBRecordHandler rcdHandler)
          Override 'getEventData' to reset selected status codes
 ReportLayout getReportLayout()
          Gets the bound ReportLayout singleton instance for this report
static ReportLayout GetReportLayout()
          Gets the bound ReportLayout singleton instance for this report
 boolean getSupportsMapDisplay()
          Returns true if this report supports displaying a map
 DBDataIterator getTotalsDataIterator()
          Creates and returns an iterator for the row data displayed in the total rows of this report.
 int handleDBRecord(UnassignedDevices rcd)
          Custom DBRecord callback handler class
 void postInitialize()
          Post report initialization
 
Methods inherited from class org.opengts.war.report.ReportData
_countEventData, _getEventData, _getEventData, countEventData, countEventData, expandHeaderText, getAccount, getAccountID, getAutoReportURL, getCheckinAgeColorRange, getCheckinAgeColorRangeArray, getColumnCount, getCreationAgeColorRange, getCreationAgeColorRangeArray, getDataRowTemplate, getDevice, getDeviceCount, getEventData, getEventData, getEventDataCount, getEventDataIterator, getEventMatchCount, getFirstDeviceID, getGpsAgeColorRange, getGpsAgeColorRangeArray, getGraphImageURL, getGraphLinkDescription, getGraphWindowSize, getKmlLinkDescription, getKmlURL, getLocale, getLoginAgeColorRange, getLoginAgeColorRangeArray, getMapIconSelector, getMapLinkDescription, getMapURL, getMapWindowSize, getMaximumEventDataCount, getOrderAscending, getPreferredFormat, getPrivateLabel, getProperties, getRefreshURL, getReportCallback, getReportColumns, getReportConstraints, getReportDataFieldsEnabled, getReportDeviceList, getReportEntry, getReportFactory, getReportHeaderGroup, getReportHeaderGroups, getReportIsPartial, getReportJob, getReportLimit, getReportName, getReportOption, getReportRecordCount, getReportSubtitle, getReportTitle, getReportType, getRequestProperties, getRuleSelector, getSelectionLimit, getSelectionLimitType, getStatusCodes, getSupportsGraphDisplay, getSupportsKmlDisplay, getTimeEnd, getTimeStart, getTimeZone, getTimeZoneString, getUser, getUserID, getValidGPSRequired, getWhereSelector, hasReportColumn, hasReportJob, hasReportOption, isEventDataMatch, isSingleDeviceOnly, isSoapRequest, setAutoReportURL, setGraphImageURL, setKmlURL, setMapIconSelector, setMapURL, setPreferredFormat, setRefreshURL, setReportCallback, setReportColumns, setReportConstraints, setReportDeviceList, setReportHeaderGroups, setReportJob, setReportName, setReportOption, setReportRecordCount, setReportSubtitle, setReportTitle, showMapRouteLine, writeHtmlBody, writeJavaScript, writeReport, writeReport, writeReportStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnassignedDevicesReport

public UnassignedDevicesReport(ReportEntry rptEntry,
                               RequestProperties reqState,
                               ReportDeviceList devList)
                        throws ReportException
Motion Report Constructor

Parameters:
rptEntry - The ReportEntry that generated this report
reqState - The session RequestProperties instance
devList - The list of devices
Throws:
ReportException
Method Detail

postInitialize

public void postInitialize()
Post report initialization

Overrides:
postInitialize in class ReportData

getEventData

protected EventData[] getEventData(Device device,
                                   DBRecordHandler rcdHandler)
Override 'getEventData' to reset selected status codes

Overrides:
getEventData in class ReportData
Parameters:
device - The Device for which EventData records will be selected
rcdHandler - The DBRecordHandler
Returns:
An array of EventData records for the device

getSupportsMapDisplay

public boolean getSupportsMapDisplay()
Returns true if this report supports displaying a map

Overrides:
getSupportsMapDisplay in class ReportData
Returns:
True if this report supports displaying a map, false otherwise

GetReportLayout

public static ReportLayout GetReportLayout()
Gets the bound ReportLayout singleton instance for this report

Returns:
The bound ReportLayout

getReportLayout

public ReportLayout getReportLayout()
Gets the bound ReportLayout singleton instance for this report

Specified by:
getReportLayout in class ReportData
Returns:
The bound ReportLayout

getBodyDataIterator

public DBDataIterator getBodyDataIterator()
Creates and returns an iterator for the row data displayed in the body of this report.

Specified by:
getBodyDataIterator in class ReportData
Returns:
The body row data iterator

getTotalsDataIterator

public DBDataIterator getTotalsDataIterator()
Creates and returns an iterator for the row data displayed in the total rows of this report.

Specified by:
getTotalsDataIterator in class ReportData
Returns:
The total row data iterator

handleDBRecord

public int handleDBRecord(UnassignedDevices rcd)
                   throws DBException
Custom DBRecord callback handler class

Specified by:
handleDBRecord in interface DBRecordHandler<UnassignedDevices>
Parameters:
rcd - The EventData record
Returns:
The returned status indicating whether to continue, or stop
Throws:
DBException