Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The ManagedOperation class is used to represent a managed service operation
for an RPC service that uses client-side data management.
public var convertResults:Boolean = true
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Turns on/off conversion of result element types.
The default value is true.
dataManager:RPCDataManager
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Each ManagedOperation should be a child of an RPCDataManager tag. This
property stores a reference to the parent.
Implementation public function get dataManager():RPCDataManager
public function set dataManager(value:RPCDataManager):void
public var ignore:Boolean = false
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
It may be useful in some cases to ignore a particular managed operation. If so,
you can set this property to true
.
The default value is false.
public var name:String
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Name of the operation in the service which this is managing.
public var operation:AbstractOperation
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Stores the service's operation which we are using for this managed operation.
parameters:String
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
A usually optional metadata value which stores the comma separated list of parameter names
for this operation.
Implementation public function get parameters():String
public function set parameters(value:String):void
public var resultElementType:Class
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
For operations which return a multi-valued response, this specifies the type of the
elements of the Array or ArrayCollection.
public var resultType:Class
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The class of the return type for this operation.
public var type:String
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Represents the type of the managed operation.
Values are: 'create'
, 'update'
,
'delete'
, 'get'
, 'query'
, and 'findItem'
.
The default value is "".
public function ManagedOperation(nameParam:String = null, typeParam:String = null)
Creates a ManagedOperation object.
Both name and type are required parameters though
they are optional here so this class can be used as an MXML tag.
Parameters | nameParam:String (default = null ) — Name of the operation in the service which this is managing.
|
|
| typeParam:String (default = null ) — The type of the managed operation. Values are: 'create', 'update',
'delete', 'get', 'query', or 'findItem'
|
public function disableManagement():void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Disables data management for this operation. When management is disabled, the operation
is executed as it would be if it were unmanaged.
public function enableManagement():void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Enables data management for this operation if it has been disabled previously.
public function initialize():void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Initializes the managed operation throwing errors for any configuration problems that are
encountered along the way.
public function invokeService(args:Array):mx.rpc:AsyncToken
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Invokes the operation on the real service without any management.
Parameters
| args:Array — arguments for the invocation
|
Returns | mx.rpc:AsyncToken — AsyncToken token that may be used to register one or more callback
functions to receive result or fault events from this invocation.
|