LocalPersistence : public class
Created: 02/18/07 12:55:00
Modified: 02/18/07 12:55:00
Project:
Advanced:
Provides an API which allows local persistence to be maintaining on the client via SharedObject
Attribute Details
protected String
  identifier
Notes: The name of the SharedObject instance used for local persistence
protected SharedObject
  lso
Notes: SharedObject instance which persists data locally on the client
private static const String
  SESSION
Initial: "SESSION"
Notes: Defines reserved read-only property name which is used by LocalPersistence for getting setting session identifiers
Operation Details
public
deletePersistedProperties():Boolean
Sequential
Notes: Deletes all properties from the persisted object <br />@return true if the properties have successfully been deleted
public
deletePersistedProperty(
propertyName: String,
):Boolean
Sequential
Notes: Deletes specified property from the persisted object <br />@param the name of the property to delete
public
destroy():void
Sequential
Notes: Destroys the current SharedObject from the clients local disk
public
getCurrentSessionId():Number
Sequential
Notes: Returns the current session date of persisted object <br />@return date object for the current session
public
getCurrentSessionTimestamp():String
Sequential
Notes: Retrieves the current session timestamp <br />@return the current session timestamp
public
getData():Object
Sequential
Notes: Returns the data object of the persisted object. The data object is property of SharedObject and is used to maintain persisted data either Locally or Remotely <br />@return An object which contains all properties values
public
getIdentifier():String
Sequential
Notes: Returns the name of the shared object. <br />@return The name of the shared object
public
getPersistedProperties():Array
Sequential
Notes: Returns an array of all properties in the persisted object <br />@return an array of all persisted properties
public
getPersistedProperty(
propertyName: String,
):var
Sequential
Notes: Returns the value of specified persisted property <br />@return the value of the property
public
getPreviousSessionId():Number
Sequential
Notes: Returns the previous session date of persisted object <br />@return date object for the previous session
public
getPreviousSessionTimestamp():String
Sequential
Notes: Retrieves the previous session timestamp <br />@return the current session timestamp
public
getSessions():Array
Sequential
Notes: Retrieves all session unique identifier <br />@return an Array of all session identifiers
public
getSessionTimestamps():Array
Sequential
Notes: Retrieves all session timestamps <br />@return an Array of all session identifiers
public
getSize():int
Sequential
Notes: Returns the size object of the persisted object. <br />@return the size of the LSO in kilobytes
public
LocalPersistence(
identifier: String,
minDiskSpace: int,
):var
Sequential
Notes: Creates reference to the persisted SharedObject available from the clients local-disk. If the SharedObject does not currently exsist, Flash Player will attempt to created it <br /><p> If the identifier contains any invalid charachters, they will be substituted with underscores<br /></p> <br />@param the name of the local shared object<br />@param the minimum amount of disc space required by the shared object<br />@return true if the write operation was successful, false if not
public
objectEncoding(
version: int,
):void
Sequential <<property set>>
Notes: Sets the current ObjectEncoding version of the persisted object <br />@param an integer of either or 3, representing AMF3 or AMF0
public
objectEncoding():int
Sequential <<property get>>
Notes: Returns the current ObjectEncoding of the persisted object <br />@return an integet of either or (AMF0, AMF3)
public
setPersistedProperty(
propertyName: String,
value: var,
):void
Sequential
Notes: Sets the value of specified persisted property <br />@param the name of the property to be persisted<br />@param the value of the property to be persisted
public
write(
minDiskSpace: int,
):Boolean
Sequential
Notes: Writes the persisted SharedObject to disk <br />@param the minimum amount of disc space required by the shared object<br />@return true if the write operation was successful, false if not
Element Source Role Target Role Details
GUIDNumber
Class  
Name:  
 
Name:  
 
 
SharedObjectIdValidator
Class  
Name:  
 
Name:  
 
 
UnsupportedObjectEncodingException
Class  
Name:  
 
Name:  
 
 
Object Type Connection Notes
«interface» IManagedPersistence Interface Realisation  
«interface» IFlexUISession Interface Realisation  
«interface» IAMFEncodable Interface Realisation