com.sage.orion.sdata.servlet.accpac
Class AdvancedReportService
java.lang.Object
com.sage.orion.sdata.servlet.BaseServiceOperation
com.sage.orion.sdata.servlet.accpac.BaseService
com.sage.orion.sdata.servlet.accpac.ReportService
com.sage.orion.sdata.servlet.accpac.FormlessReportService
com.sage.orion.sdata.servlet.accpac.AdvancedReportService
- All Implemented Interfaces:
- ServiceOperation
public class AdvancedReportService
- extends FormlessReportService
This class is designed to handle the SData $service operation that generates
an Accpac report.
In addition, this service will populate the report file field with a list of
reports installed in the system for the application related to the report.
The service's request fields will be created from the report's input
parameters. Three fields, reportFile, reportName and reportOutput, will be
added to the list of request fields. These three fields are optional and, if
not provided by the client, the reportFile will be defaulted to the file
defined in the xxRpt.ini, the reportName will be defaulted to the section
name defined in the xxRpt.ini and the reportOutput will be defaulted to
"PREVIEW".
The service's response is an Atom entry containing an element responseURL
that tells the client where to get the report.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdvancedReportService
public AdvancedReportService(ApplicationContext applicationContext,
ResourceContextImpl resourceContext,
Resource resource,
Service service,
SDataViewSet viewSet)
- Constructor which uses the report object created from the report name
defined for this service operation
- Parameters:
applicationContext
- the application context in which the service operation will be
runresourceContext
- the resource context in which the service operation will be runresource
- the resource on which the service operation will be performedservice
- the service operation to be performedviewSet
- the SDataViewSet associated with the resource
getReportFileField
protected ServiceField getReportFileField()
- Create a service field for the report file.
This service field will be populated with a list of reports installed in
the system for the application related to the report. It's value will be
defaulted to the report file defined in the xxRpt.ini
- Overrides:
getReportFileField
in class ReportService
- Returns:
- the service field for the report file
Copyright © 2011 Sage Software, Inc. All rights reserved.