|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.BaseServiceOperation
com.sage.orion.sdata.servlet.accpac.BaseService
com.sage.orion.sdata.servlet.accpac.ViewProcessService
public class ViewProcessService
This class implements the process operation of an Accpac view. It expects at least one view to be specified, either in the service's definition or in the resource's definition. If there are views defined for both the service and the resource, the view defined for the service will be used.
The service's request fields will include all the view's fields except those read-only and calculated fields.
The service's response fields will include all the fields of the view.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.BaseServiceOperation |
---|
BaseServiceOperation.FieldData, BaseServiceOperation.FieldNames |
Field Summary | |
---|---|
protected SDataView |
view
Deprecated. use getView() instead |
Constructor Summary | |
---|---|
ViewProcessService(ApplicationContext applicationContext,
ResourceContextImpl resourceContext,
Resource resource,
Service service,
SDataViewSet viewSet)
Constructor |
Method Summary | |
---|---|
protected java.util.List<ServiceField> |
createRequestFields(SDataRequest request)
Create a list of input fields for Request. |
protected java.util.List<ServiceField> |
createResponseFields(SDataRequest request)
Create a list of output fields for Response. |
protected java.util.List<ServiceField> |
createTemplateFields(SDataRequest request)
Create a list of fields for Template. |
protected java.util.List<ServiceField> |
execute(SDataResourceElement payload,
SDataRequest request,
AsyncStatusListener listener)
process the view and then set the value for each response field. |
protected SDataView |
getView()
Get the SDataView on which the service is backed |
void |
shutdown()
Release any resources allocated for this service operation. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated protected final SDataView view
Constructor Detail |
---|
public ViewProcessService(ApplicationContext applicationContext, ResourceContextImpl resourceContext, Resource resource, Service service, SDataViewSet viewSet)
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 resourceMethod Detail |
---|
protected SDataView getView()
SDataView
on which the service is backed
SDataView
protected java.util.List<ServiceField> createRequestFields(SDataRequest request)
The list of request fields will include all the view's fields except those read-only and calculated fields.
If the request is not stateful each field is also initialized with corresponding viewField's value.
createRequestFields
in class BaseServiceOperation
request
- the SDataRequest, which may be null
protected java.util.List<ServiceField> createResponseFields(SDataRequest request)
The list of response fields will include all the fields of the view. And each field has been initialized with corresponding viewField's value
createResponseFields
in class BaseServiceOperation
request
- the SDataRequest, which may be null
protected java.util.List<ServiceField> createTemplateFields(SDataRequest request)
The list of template fields will include all the view's fields except those read-only and calculated fields. And each field has been initialized with corresponding viewField's default value.
createTemplateFields
in class BaseServiceOperation
request
- the SDataRequest
protected java.util.List<ServiceField> execute(SDataResourceElement payload, SDataRequest request, AsyncStatusListener listener)
execute
in class BaseServiceOperation
payload
- the request (input) portion of the payload from the original
SData requestrequest
- the SDataRequestlistener
- the AsyncStatusListener
public void shutdown()
ServiceOperation
shutdown
in interface ServiceOperation
shutdown
in class BaseServiceOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |