Package | mx.data |
Class | public class RPCDataServiceAdapter |
Inheritance | RPCDataServiceAdapter ![]() ![]() |
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The trickiest thing about how this service works is that we want to take over the existing service's invocation so that user code is minimally impacted by the addition of data management. The service call works the same way, same events and tokens are fired only the result must be managed. To make this work, the RPCDataServiceAdapter associated a ManagedOperation with a regular RPC service operation. The operation's "operationManager" property is set and during initialization time and the end-user's call is redirected to a proxy method in this class (e.g. queryProxy). This generates the corresponding data management call and returns the managed token to the end user so they get the result of the managed operation.
order is: user calls service method calls service delegates to operationManager - ManagedOpertion.xxProxy methods calls managerOperation kicks off DMS op --> DataManager.xx calls DMS op calls adapter to do the op --> DataServiceAdapter.invoke calls: RPCDataServiceAdapter invokes the service operation and sets the "raw" lastResult returns: adapter's result comes back in and is converted to DMS Result Message - RPCDataServiceResult.xxResult returns: data manager processes result - updates managed object --> DataListRequestResponder/CommitResponder returns: service is updated to lastResult from the operation returns: user's result event is called
Property | Defined By | ||
---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | |
dataManagerRegistry : Object [static]
Static map from destination name to data manager for that destination. | RPCDataServiceAdapter | ||
destination : String
Name of destination for this data service adapter. | RPCDataServiceAdapter |
Method | Defined By | ||
---|---|---|---|
[override]
| RPCDataServiceAdapter | ||
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
Simulate an event from the server that corresponds to an item delete. | RPCDataServiceAdapter | ||
postItemUpdate(dataManager:RPCDataManager, item:Object, origItem:Object = null, changes:Array = null):void
Simulate an event from the server that corresponds to an item update or creation. | RPCDataServiceAdapter | ||
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object |
Method | Defined By |
---|
dataManagerRegistry | property |
public static var dataManagerRegistry:Object
Static map from destination name to data manager for that destination.
destination | property |
public var destination:String
Name of destination for this data service adapter.
getDataManager | () | method |
override public function getDataManager(destination:String):DataManager
Parameters
destination:String |
DataManager |
postItemDeletion | () | method |
public function postItemDeletion(dataManager:RPCDataManager, identity:Object):void
Simulate an event from the server that corresponds to an item delete. This is useful to notify LCDS that something has been deleted on the server.
Parameters
dataManager:RPCDataManager | |
identity:Object |
postItemUpdate | () | method |
public function postItemUpdate(dataManager:RPCDataManager, item:Object, origItem:Object = null, changes:Array = null):void
Simulate an event from the server that corresponds to an item update or creation. This is useful to notify LCDS that something has changed on the server.
Parameters
dataManager:RPCDataManager | |
item:Object | |
origItem:Object (default = null )
| |
changes:Array (default = null )
|
Wed Nov 21 2018, 06:34 AM -08:00