|
||||||||||
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
public abstract class BaseService
An abstract class that provides a base Sage 300 ERP service.
Each subclass must implement the following abstract methods:
BaseServiceOperation.createRequestFields(com.sage.orion.sdata.servlet.SDataRequest)
BaseServiceOperation.createResponseFields(com.sage.orion.sdata.servlet.SDataRequest)
BaseServiceOperation.createTemplateFields(com.sage.orion.sdata.servlet.SDataRequest)
BaseServiceOperation.execute(com.sage.orion.sdata.servlet.SDataResourceElement, com.sage.orion.sdata.servlet.SDataRequest, com.sage.orion.sdata.servlet.AsyncStatusListener)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.BaseServiceOperation |
---|
BaseServiceOperation.FieldData, BaseServiceOperation.FieldNames |
Constructor Summary | |
---|---|
BaseService(ApplicationContext applicationContext,
ResourceContextImpl resourceContext,
Resource resource,
Service service,
SDataViewSet viewSet)
Constructor |
Method Summary | |
---|---|
protected ApplicationContext |
getApplicationContext()
|
java.lang.String |
getName()
Get the full name of this service operation, i.e. |
protected java.lang.String |
getOperationName()
Get the short name of this service operation, i.e. |
protected java.lang.String |
getPath()
Get the URL to this service operation. |
protected Resource |
getResource()
|
protected ResourceContextImpl |
getResourceContext()
|
protected Service |
getService()
|
protected SDataViewSet |
getViewSet()
|
protected boolean |
isForMetaDataInquiry()
checks if this service operation has been created only for inquiring about the metadata. |
Methods inherited from class com.sage.orion.sdata.servlet.BaseServiceOperation |
---|
createRequestFields, createResponseFields, createTemplateFields, execute, 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 |
---|
public BaseService(ApplicationContext applicationContext, ResourceContextImpl resourceContext, Resource resource, Service service, SDataViewSet viewSet)
applicationContext
- the ApplicationContext
in which the service operation
will be runresourceContext
- the ResourceContextImpl
in which the service operation
will be runresource
- the Resource
on which the service operation will be
performedservice
- the Service
to be performed. Could be null
viewSet
- the SDataViewSet
associated with the resource. Could be
null
Method Detail |
---|
public java.lang.String getName()
ServiceOperation
String
containing the full name of the service
operationprotected java.lang.String getOperationName()
BaseServiceOperation
getOperationName
in class BaseServiceOperation
protected java.lang.String getPath()
BaseServiceOperation
getPath
in class BaseServiceOperation
protected ApplicationContext getApplicationContext()
ApplicationContext
. Never be null
protected ResourceContextImpl getResourceContext()
ResourceContextImpl
. Never be null
protected Resource getResource()
Resource
. Never be null
protected Service getService()
Service
. Could be null
protected SDataViewSet getViewSet()
SDataViewSet
associated with the resource. Could be
null
protected final boolean isForMetaDataInquiry()
When this is true the service operation should not execute.
This method is provided to allow the subclass to know not to make data manipulation calls to its underlying views that will throw an illegal state exception.
true
if the service operation is only for inquiring about
metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |