Packageorg.openPyro.core.storage
Interfacepublic interface IStorage extends flash.events.IEventDispatcher
ImplementorsSharedObjectStorage



Public Properties
 PropertyDefined by
  storeCreated : Boolean
[read-only] Function used to verify if the store was successfully created or not.
IStorage
Public Methods
 MethodDefined by
  
getStoredData():String
IStorage
  
save(object:ISerializable, overwrite:Boolean = true):void
Called to save the contents of the store to tje storage implementation.
IStorage
Events
 EventSummaryDefined by
   Dispatched when the store fails in persisting any object to the store IStorage
   Dispatched when the store succeeds in persisting any object to the store IStorage
Property detail
storeCreatedproperty
storeCreated:Boolean  [read-only]

Function used to verify if the store was successfully created or not. For example, users may have sharedObject turned off or may not allow filesystem access or may be offline for remote storage.

Implementation
    public function get storeCreated():Boolean
Method detail
getStoredData()method
public function getStoredData():String

Returns
String — The string stored by the IStorage implementation. If the store does not exist or could not be read, return null.
save()method 
public function save(object:ISerializable, overwrite:Boolean = true):void

Called to save the contents of the store to tje storage implementation. Since this may be an async process, success or failure is indicated by dispatching a storeSucceeded or storeFailed Event.

Parameters
object:ISerializable
 
overwrite:Boolean (default = true)

See also

net.comcast.pyro.storage.events.StorageEvent
Event detail
storageFailedevent 
Event object type: net.comcast.pyro.storage.events.StorageEvent

Dispatched when the store fails in persisting any object to the store

storeSucceededevent  
Event object type: net.comcast.pyro.storage.events.StorageEvent

Dispatched when the store succeeds in persisting any object to the store