| Package | org.restfulx.controllers |
| Class | public class CacheController |
| Inheritance | CacheController flash.events.EventDispatcher |
ModelsController
or other controller actions. It also dispatches relevant CacheUpdateEvent
events.
Models are stored in ModelsCollections keyed on model fully qualified class name.
data['com.foobar.models::Project'] = ModelsCollection
| Property | Defined by | ||
|---|---|---|---|
| data : Dictionary model data store
| CacheController | ||
| Method | Defined by | ||
|---|---|---|---|
|
CacheController(state:ModelsMetadata)
| CacheController | ||
|
Cache version of the
create call. | CacheController | ||
|
Cache version of the
destroy call. | CacheController | ||
|
index(models:Object, serviceProvider:IServiceProvider, opts:Object = null):void
Cache version of the
index call. | CacheController | ||
|
Cache version of the
show call. | CacheController | ||
|
Cache version of the
update call. | CacheController | ||
| data | property |
public var data:Dictionarymodel data store
| CacheController | () | constructor |
public function CacheController(state:ModelsMetadata)Parameters
state:ModelsMetadata — computed model metadata
|
| create | () | method |
public function create(model:RxModel, serviceProvider:IServiceProvider, opts:Object = null):void
Cache version of the create call. This dispatches
create update event.
model:RxModel — unmarshalled model
|
|
serviceProvider:IServiceProvider — the provider that is this operation was perfomed by
|
|
opts:Object (default = null) — for extra processing
|
| destroy | () | method |
public function destroy(model:RxModel, serviceProvider:IServiceProvider, opts:Object = null):void
Cache version of the destroy call. This dispatches
destroy update event and cleans up any other model references.
model:RxModel — unmarshalled model
|
|
serviceProvider:IServiceProvider — the provider that is this operation was perfomed by
|
|
opts:Object (default = null) — for extra processing
|
| index | () | method |
public function index(models:Object, serviceProvider:IServiceProvider, opts:Object = null):void
Cache version of the index call. This dispatches
index update event.
models:Object — unmarshalled models
|
|
serviceProvider:IServiceProvider — the provider that is this operation was perfomed by
|
|
opts:Object (default = null) — for extra processing
|
| show | () | method |
public function show(model:RxModel, serviceProvider:IServiceProvider, opts:Object = null):void
Cache version of the show call. This dispatches
show update event.
model:RxModel — unmarshalled model
|
|
serviceProvider:IServiceProvider — the provider that is this operation was perfomed by
|
|
opts:Object (default = null) — for extra processing
|
| update | () | method |
public function update(model:RxModel, serviceProvider:IServiceProvider, opts:Object = null):void
Cache version of the update call. This dispatches
update update event.
model:RxModel — unmarshalled model
|
|
serviceProvider:IServiceProvider — the provider that is this operation was perfomed by
|
|
opts:Object (default = null) — for extra processing
|