Packagecom.esri.bacore.domain
Classpublic class CookieStorage
InheritanceCookieStorage Inheritance Object
Implements IStorage

Since : Community Analyst API for Flex 2.2.

The CookieStorage class implements the IStorage interface using cookies.



Public Properties
 PropertyDefined By
  storageTag : String
Tag of the shared object to be used as the storage.
CookieStorage
Public Methods
 MethodDefined By
  
CookieStorage(tag:String = null)
Creates a new instance of the CookieStorage class.
CookieStorage
  
flush():void
Immediatelly writes the storage content to the persistent storage location.
CookieStorage
  
getData(key:String):*
Gets a data item from the storage.
CookieStorage
  
putData(key:String, value:*):Boolean
Puts a data item to the storage.
CookieStorage
Property Detail
storageTagproperty
storageTag:String

Tag of the shared object to be used as the storage.

The default value is "BACookieStorage".


Implementation
    public function get storageTag():String
    public function set storageTag(value:String):void
Constructor Detail
CookieStorage()Constructor
public function CookieStorage(tag:String = null)

Creates a new instance of the CookieStorage class. If tag parameter is missing, the storage will be created with the default tag.

Parameters
tag:String (default = null) — Tag of the shared object to be used as the storage.
Method Detail
flush()method
public function flush():void

Immediatelly writes the storage content to the persistent storage location.

getData()method 
public function getData(key:String):*

Gets a data item from the storage.

Parameters

key:String — Key identifying the item.

Returns
* — Required item or null.
putData()method 
public function putData(key:String, value:*):Boolean

Puts a data item to the storage.

Parameters

key:String — Key identifying the item.
 
value:* — Item to be stored.

Returns
Boolean — True if the item was successfully stored.