ERCoreUserPreferences Class Reference

Inherits com::webobjects::foundation::NSKeyValueCoding.

Collaboration diagram for ERCoreUserPreferences:

Collaboration graph
[legend]

List of all members.

Classes

class  _UserPreferenceHandler

Public Member Functions

boolean booleanValueForKey (String key)
boolean booleanValueForKeyWithDefault (String key, boolean def)
void registerHandlers ()
void takeValueForKey (Object value, String key)
Object valueForKey (String key)

Static Public Member Functions

static ERCoreUserPreferences userPreferences ()

Static Public Attributes

static final Logger log = Logger.getLogger(ERCoreUserPreferences.class)
static final String PreferenceDidChangeNotification = "PreferenceChangedNotification"

Protected Member Functions

Object decodedValue (String encodedValue)
String encodedValue (Object value)
EOEnterpriseObject preferenceRecordForKey (String key, EOEditingContext ec)
NSArray preferences (EOEditingContext ec)

Static Private Attributes

static ERCoreUserPreferences _userPreferences
static final String VALUE = "_V"


Member Function Documentation

boolean booleanValueForKey ( String  key  ) 

boolean booleanValueForKeyWithDefault ( String  key,
boolean  def 
)

Object decodedValue ( String  encodedValue  )  [protected]

String encodedValue ( Object  value  )  [protected]

EOEnterpriseObject preferenceRecordForKey ( String  key,
EOEditingContext  ec 
) [protected]

NSArray preferences ( EOEditingContext  ec  )  [protected]

void registerHandlers (  ) 

Registers notification handlers for user preference notifications. These are mainly used within the context of D2W pages.

void takeValueForKey ( Object  value,
String  key 
)

static ERCoreUserPreferences userPreferences (  )  [static]

Gets the singleton instance for interacting with the user preference system.

Returns:
single instance of the user preferences

Object valueForKey ( String  key  ) 


Member Data Documentation

caches the singleton user preference object

final Logger log = Logger.getLogger(ERCoreUserPreferences.class) [static]

Logging support

final String PreferenceDidChangeNotification = "PreferenceChangedNotification" [static]

Notification that is posted when preferences change

final String VALUE = "_V" [static, private]

EOEncoding key


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:47 2012 for Project Wonder by  doxygen 1.5.8