|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--portlets.compoze.groupware.pref.AbstractPreferences
This abstract class provides the base for holder user preferences.
For changes to be committed, the update
method must be called.
Constructor Summary | |
protected |
AbstractPreferences(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
PreferenceKey[] keys,
java.lang.String sInstanceLabel)
Constructor. |
Method Summary | |
java.lang.String |
getInstanceLabel()
Gets the instance label. |
protected java.lang.String |
getPreference(PreferenceKey key)
Gets the preference. |
protected void |
setPreference(PreferenceKey key,
boolean bValue)
Sets the preference. |
protected void |
setPreference(PreferenceKey key,
int iValue)
Sets the preference. |
protected void |
setPreference(PreferenceKey key,
java.lang.String sValue)
Sets the preference. |
void |
update(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
Updates and commits the preferences. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractPreferences(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper, PreferenceKey[] keys, java.lang.String sInstanceLabel) throws GroupwareException
userProfileWrapper
- the user profile (may not be null
)Method Detail |
protected void setPreference(PreferenceKey key, java.lang.String sValue)
key
- the preference keysValue
- the preference value or null
to remove preferenceprotected void setPreference(PreferenceKey key, int iValue)
key
- the preference keyiValue
- the preference valueprotected void setPreference(PreferenceKey key, boolean bValue)
key
- the preference keybValue
- the preference valueprotected java.lang.String getPreference(PreferenceKey key)
key
- the preference key (may not be null
)null
if not setpublic void update(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper) throws GroupwareException
userProfileWrapper
- the user profile (may not be null
)public java.lang.String getInstanceLabel()
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |