[Cosmo-dev] Preferences design proposal
Randy Letness
randy at osafoundation.org
Tue Jan 16 07:48:16 PST 2007
Brian Moseley wrote:
>> * Key value pairs stored in a new table
>> * Maximum length for preference key or value: 255 chars
>> * Maximum number of preferences: 255 per user
>
> can values be typed, or must they be Strings? can they be null?
> multivalued?
>
I would suggest just Strings. Think of these properties as a
server-side properties file for each user.
>> o User.getPreferences(Set keys)
>
> i assume this returns a Map?
Yes. There will be a User.getPreferences() that returns a Map<String,
String>. We can add any convenience methods that we need.
-Randy
More information about the cosmo-dev
mailing list