public class Report extends ItemPropertiesData
| Modifier and Type | Class and Description |
|---|---|
static class |
Report.columnFlag
Report column flags constants, TODO: fill later...
|
static class |
Report.events |
static class |
Report.intervalFlag
Report interval flags constants
|
static class |
Report.ReportInterval |
static class |
Report.tableFlag
Report table flags constants, TODO: fill later...
|
item| Constructor and Description |
|---|
Report(java.util.Map<java.lang.String,java.lang.String> data,
java.lang.String propName,
Item item,
java.lang.String ajaxPath,
java.lang.String extAjaxPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupResult(ResponseHandler callback)
Cleanup report execution result.
|
void |
execReport(long reportId,
long reportObjectId,
long reportObjectSecId,
Report.ReportInterval interval,
ResponseHandler callback)
Generate report and load it into session, require ACL wialon.core.Item.accessFlag.execReports to report object.
|
getPropertyDatacreateProperty, deleteProperty, getProperties, getProperty, updateProperty, updatePropertypublic Report(java.util.Map<java.lang.String,java.lang.String> data,
java.lang.String propName,
Item item,
java.lang.String ajaxPath,
java.lang.String extAjaxPath)
public void execReport(long reportId,
long reportObjectId,
long reportObjectSecId,
Report.ReportInterval interval,
ResponseHandler callback)
reportId - report, compact or fullreportObjectId - report object IDreportObjectSecId - secondary report object ID, e.g. driver id for driver reportsinterval - report interval specificationcallback - callback that will receive information about new layer additionpublic void cleanupResult(ResponseHandler callback)
callback - {Function} callback that will receive information about new layer addition: callback(code, reportResult), zero code is success