Packageorg.granite.tide.impl
Classpublic class ContextManager
InheritanceContextManager Inheritance flash.events.EventDispatcher
ImplementsIContextManager

Tide is the base implementation of the Tide application manager singleton



Public Methods
 MethodDefined by
  
ContextManager(tide:Tide, contextClass:Class)
ContextManager
  
forEachChildContext(parentContext:BaseContext, callback:Function, token:Object = null):void
Execute a function for each conversation context
ContextManager
  
Returns the list of conversation contexts
ContextManager
  
getContext(contextId:String = null, parentContextId:String = null, create:Boolean = true):BaseContext
Return a context from its id
ContextManager
Constructor detail
ContextManager()constructor
public function ContextManager(tide:Tide, contextClass:Class)Parameters
tide:Tide
 
contextClass:Class
Method detail
forEachChildContext()method
public function forEachChildContext(parentContext:BaseContext, callback:Function, token:Object = null):void

Execute a function for each conversation context

Parameters
parentContext:BaseContext — parent context
 
callback:Function — callback function
 
token:Object (default = null) — token passed to the function
getAllContexts()method 
public function getAllContexts():Array

Returns the list of conversation contexts

Returns
Array — conversation contexts
getContext()method 
public function getContext(contextId:String = null, parentContextId:String = null, create:Boolean = true):BaseContext

Return a context from its id

Parameters
contextId:String (default = null) — context id
 
parentContextId:String (default = null) — should create when not existing
 
create:Boolean (default = true)

Returns
BaseContext — context