|
||||||||||
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.IsDirtyOperation
public class IsDirtyOperation
A service operation for finding out whether the view tied to a resource has uncommitted changes or not.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.BaseServiceOperation |
---|
BaseServiceOperation.FieldData, BaseServiceOperation.FieldNames |
Constructor Summary | |
---|---|
IsDirtyOperation(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)
Execute this service operation and then set the value for the response fields, if any. |
protected java.lang.String |
getOperationName()
Get the short name of this service operation, i.e. |
protected boolean |
isDirty(SDataRequest request)
Return the dirty status for the resource |
Methods inherited from class com.sage.orion.sdata.servlet.accpac.BaseService |
---|
getApplicationContext, getName, 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 |
---|
public IsDirtyOperation(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 |
---|
protected final java.util.List<ServiceField> createRequestFields(SDataRequest request)
Note that value for each field may not be initialized.
createRequestFields
in class BaseServiceOperation
request
- the SDataRequest, or null
protected final java.util.List<ServiceField> createResponseFields(SDataRequest request)
Note that value for each field may not be initialized.
createResponseFields
in class BaseServiceOperation
request
- the SDataRequest, or null
protected final java.util.List<ServiceField> createTemplateFields(SDataRequest request)
The list must be the same as (or a subset of) request fields and each field has been initialized with default value
createTemplateFields
in class BaseServiceOperation
request
- the SDataRequest
protected final 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
protected boolean isDirty(SDataRequest request)
request
- the SDataRequest
true
if the resource has uncommitted changes. otherwise
false
.protected final java.lang.String getOperationName()
getOperationName
in class BaseService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |