public class RunReportScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements com.accela.aa.emse.dom.service.RunReportScriptService
Accela Automation File: RunReportScript Accela, Inc. Copyright (C): 2007-2014 Description: Provides the root of the object model exposed to scripts running on the scripting engine. Known to the script writer as the top level "aa" object. Notes: $Id: RunReportScript.java 270462 2014-04-28 10:05:58Z ..\rain.wang $ Revision History: 02/01/2007 Jason.Wang Initial
Constructor and Description |
---|
RunReportScript()
Instantiates a new run report script.
|
RunReportScript(java.lang.String serviceProviderCode,
java.lang.String auditId,
com.accela.aa.emse.dom.service.CachedService cachedService)
Instantiates a new run report script.
|
Modifier and Type | Method and Description |
---|---|
ScriptResult |
getReportDetailModel()
Gets the report detail model.
|
ScriptResult |
getReportInfoModelByName(java.lang.String reportName)
Get the report model by report name.
|
ScriptResult |
getReportModelByName(java.lang.String reportName)
Get the report model by report name.
|
ScriptResult |
getReportResult(ReportInfoScriptModel reportInfoModel)
get the report result.
|
ScriptResult |
getReportScriptModel(com.accela.v360.reports.ReportDetailModel reportDetailModel)
Gets the report script model.
|
ScriptResult |
hasPermission(java.lang.String reportName,
java.lang.String userID)
Check if the user has the permission on the report.
|
ScriptResult |
runReport(java.util.HashMap paremters,
ReportScriptModel reportScriptModel)
Constuct the Report URI String that used to open a report window.
|
ScriptResult |
sendReportInEmail(ReportInfoScriptModel reportInfoModel,
ReportResultScriptModel reportResult)
get the report result.
|
ScriptResult |
storeReportToDisk(ReportResultScriptModel reportResult)
store report to disk.
|
public RunReportScript(java.lang.String serviceProviderCode, java.lang.String auditId, com.accela.aa.emse.dom.service.CachedService cachedService) throws com.accela.aa.exception.AAException
serviceProviderCode
- the service provider codeauditId
- the audit idcom.accela.aa.exception.AAException
- The AA exceptionpublic RunReportScript() throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException
- The AA exceptionpublic ScriptResult hasPermission(java.lang.String reportName, java.lang.String userID)
com.accela.aa.emse.dom.service.RunReportScriptService
hasPermission
in interface com.accela.aa.emse.dom.service.RunReportScriptService
reportName
- the report nameuserID
- the user idpublic ScriptResult getReportModelByName(java.lang.String reportName)
com.accela.aa.emse.dom.service.RunReportScriptService
getReportModelByName
in interface com.accela.aa.emse.dom.service.RunReportScriptService
reportName
- the report namepublic ScriptResult getReportInfoModelByName(java.lang.String reportName)
com.accela.aa.emse.dom.service.RunReportScriptService
getReportInfoModelByName
in interface com.accela.aa.emse.dom.service.RunReportScriptService
reportName
- the report namepublic ScriptResult runReport(java.util.HashMap paremters, ReportScriptModel reportScriptModel)
com.accela.aa.emse.dom.service.RunReportScriptService
runReport
in interface com.accela.aa.emse.dom.service.RunReportScriptService
paremters
- A HashMap that used to run the report.reportScriptModel
- the report script modelpublic ScriptResult getReportScriptModel(com.accela.v360.reports.ReportDetailModel reportDetailModel)
reportDetailModel
- the report detail modelpublic ScriptResult getReportDetailModel()
public ScriptResult getReportResult(ReportInfoScriptModel reportInfoModel)
com.accela.aa.emse.dom.service.RunReportScriptService
getReportResult
in interface com.accela.aa.emse.dom.service.RunReportScriptService
reportInfoModel
- the report info modelpublic ScriptResult sendReportInEmail(ReportInfoScriptModel reportInfoModel, ReportResultScriptModel reportResult)
com.accela.aa.emse.dom.service.RunReportScriptService
sendReportInEmail
in interface com.accela.aa.emse.dom.service.RunReportScriptService
reportInfoModel
- the report info modelreportResult
- the report resultpublic ScriptResult storeReportToDisk(ReportResultScriptModel reportResult)
com.accela.aa.emse.dom.service.RunReportScriptService
storeReportToDisk
in interface com.accela.aa.emse.dom.service.RunReportScriptService
reportResult
- the report result