com.sage.orion.sdata.servlet.accpac
Class FormlessReportService

java.lang.Object
  extended by com.sage.orion.sdata.servlet.BaseServiceOperation
      extended by com.sage.orion.sdata.servlet.accpac.BaseService
          extended by com.sage.orion.sdata.servlet.accpac.ReportService
              extended by com.sage.orion.sdata.servlet.accpac.FormlessReportService
All Implemented Interfaces:
ServiceOperation
Direct Known Subclasses:
AdvancedReportService

public class FormlessReportService
extends ReportService

FormlessReportService overrides createTemplateFields of report service to hide name override functionality from Sdata consumer. Only services that map to this report service will be able to override report name


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.accpac.ReportService
ReportService.ReportParamValues
 
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.BaseServiceOperation
BaseServiceOperation.FieldData, BaseServiceOperation.FieldNames
 
Constructor Summary
FormlessReportService(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
 
Method Summary
protected  java.util.List<ServiceField> createTemplateFields(SDataRequest request)
          Create a list of fields for Template.
 
Methods inherited from class com.sage.orion.sdata.servlet.accpac.ReportService
createRequestFields, createResponseFields, execute, getReport, getReportFileField, getReportPayload
 
Methods inherited from class com.sage.orion.sdata.servlet.accpac.BaseService
getApplicationContext, getName, getOperationName, getPath, getResource, getResourceContext, getService, getViewSet, isForMetaDataInquiry
 
Methods inherited from class com.sage.orion.sdata.servlet.BaseServiceOperation
getDescription, getResponseFields, getSchema, handleRequest, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormlessReportService

public FormlessReportService(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 run
resourceContext - the resource context in which the service operation will be run
resource - the resource on which the service operation will be performed
service - the service operation to be performed
viewSet - the SDataViewSet associated with the resource
Method Detail

createTemplateFields

protected java.util.List<ServiceField> createTemplateFields(SDataRequest request)
Create a list of fields for Template.

The list must be the same as (or a subset of) request fields and each field has been initialized with default value

Overrides:
createTemplateFields in class ReportService
Parameters:
request - the SDataRequest
Returns:
a list of service fields for Template, or return null or an empty list if there are no such fields.


Copyright © 2011 Sage Software, Inc. All rights reserved.