| Package | org.granite.tide.ejb |
| Class | public dynamic class Context |
| Inheritance | Context BaseContext mx.utils.ObjectProxy |
| Method | Defined by | ||
|---|---|---|---|
| Context | |||
![]() |
addContextEventListener(type:String, handler:Function, remote:Boolean = false):void
Registers a tide context event listener (should be done with [Observer])
| BaseContext | |
![]() |
allByType(serviceClass:Class, create:Boolean = false):Array
Returns all component instances in this context implementing the specified class/interface
| BaseContext | |
![]() |
bindIn(componentName:String, component:Object, propName:Object, create:Boolean = true, contextPropName:Object = null):void
Binds a component property from a context variable (should be done with [In])
| BaseContext | |
![]() |
bindOut(componentName:String, component:Object, propName:Object, contextPropName:Object = null):void
Binds a component property to a context variable (should be done with [Out])
| BaseContext | |
![]() |
bindProperty(site:Object, prop:Object, host:Object, chain:Object, commitOnly:Boolean = false):ChangeWatcher
[static]
| BaseContext | |
![]() |
byType(serviceClass:Class, create:Boolean = false):Object
Returns the current component instance implementation in this context for the specified class/interface
| BaseContext | |
![]() |
dispatchEvent(event:Event):Boolean
Dispatches a context event
| BaseContext | |
![]() |
injectByType(type:Class, component:Object, componentName:String, propName:Object, create:Boolean = true):void
Binds a component property from a context variable (should be done with [In])
| BaseContext | |
![]() |
meta_clearDirtyState(dispatch:Boolean = true):void
Clear the current dirty state context
| BaseContext | |
![]() |
meta_continue(merge:Boolean = true):void
Continues the current context: restart a new conversation with the same context content when the server has ended the current conversation
Only applicable to conversation contexts
| BaseContext | |
![]() |
meta_deepDirty(entity:IEntity):Boolean
| BaseContext | |
![]() |
meta_destroy(name:String, force:Boolean = false):void
Destroys/reset a component
| BaseContext | |
![]() |
meta_end(merge:Boolean = true):void
Ends the current context
Only applicable to conversation contexts
| BaseContext | |
![]() |
meta_getContext(name:*, component:Object):BaseContext
Returns the context where the component instance is stored
| BaseContext | |
![]() |
meta_getInstance(name:*, create:Boolean = false, forceNoCreate:Boolean = false, noProxy:Boolean = false):*
Returns the component instance in this context
| BaseContext | |
![]() |
meta_getInstanceNoProxy(name:*):*
Returns the component instance in this context but never creates proxies
| BaseContext | |
![]() |
meta_getOwnerEntities(object:Object):Array
| BaseContext | |
![]() |
meta_getRefs(object:Object):Array
| BaseContext | |
![]() |
meta_getSavedProperties():Dictionary
Return the current set of dirty properties
| BaseContext | |
![]() |
meta_isEntityChanged(entity:IEntity, propName:String = null, value:* = null):Boolean
Check if entity has changed since last save point
| BaseContext | |
![]() |
meta_isEntityPropertyChanged(entity:IEntity, propertyName:String, value:Object):Boolean
Check if entity property has been changed since last remote call
| BaseContext | |
![]() |
meta_isGlobal():Boolean
| BaseContext | |
![]() |
meta_isObjectInitialized(object:Object):Boolean
Indicates if an object is initialized
For non managed objects, always return true
| BaseContext | |
![]() |
meta_mergeExternalData(obj:Object, prev:Object = null, sourceSessionId:String = null, removals:Array = null, persists:Array = null):Object
Merge an object coming from the server in the context
| BaseContext | |
![]() |
meta_mergeInGlobalContext():void
Merge conversation context variables in global context
Only applicable to conversation contexts
| BaseContext | |
![]() |
meta_mergeInParentContext():void
Merge conversation context variables in parent context
Only applicable to conversation contexts
| BaseContext | |
![]() |
meta_objectEquals(obj1:Object, obj2:Object):Boolean
Equality for objects, using uid property when possible
| BaseContext | |
|
meta_prepareCall(operation:AbstractOperation, withContext:Boolean = true):IInvocationCall
| Context | ||
![]() |
meta_resetAllEntities():void
Discard changes of all cached entities from last version received from the server
| BaseContext | |
![]() |
meta_resetEntity(entity:IEntity):void
Discard changes of entity from last version received from the server
| BaseContext | |
|
meta_result(componentName:String, operation:String, ires:IInvocationResult, result:Object, mergeWith:Object = null):void
| Context | ||
![]() |
meta_resync(resultHandler:Function = null, faultHandler:Function = null):AsyncToken
Resync current context with server (similar to invoke with no operation)
| BaseContext | |
![]() | BaseContext | ||
![]() |
raiseEvent(type:String, ... params):void
Dispatches a context event (possibly in a subcontext)
| BaseContext | |
![]() |
raiseGlobalEvent(type:String, ... params):void
Dispatches a context event (always in the global context)
| BaseContext | |
![]() |
toString(object:Object):String
[static]
Convenient toString implementation which avoids triggering collection initialization
| BaseContext | |
![]() |
unbindIns(componentName:String):void
Unbinds all [In] component properties
| BaseContext | |
![]() |
unbindOuts(componentName:String):void
Unbinds all [Out] component properties
| BaseContext | |
| Context | () | constructor |
public function Context(tide:Ejb, parentContext:BaseContext = null)Parameters
tide:Ejb |
|
parentContext:BaseContext (default = null) |
| meta_prepareCall | () | method |
public override function meta_prepareCall(operation:AbstractOperation, withContext:Boolean = true):IInvocationCallParameters
operation:AbstractOperation |
|
withContext:Boolean (default = true) |
IInvocationCall |
| meta_result | () | method |
public override function meta_result(componentName:String, operation:String, ires:IInvocationResult, result:Object, mergeWith:Object = null):voidParameters
componentName:String |
|
operation:String |
|
ires:IInvocationResult |
|
result:Object |
|
mergeWith:Object (default = null) |