|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseUserPreference
org.tigris.scarab.om.UserPreference
This class is the home of where we store user preferences right now the design is based on adding columns to the database for each thing you want to store. Eventually, we will want to come up with a real system for dealing with this.
| Field Summary |
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
| Constructor Summary | |
UserPreference()
|
|
| Method Summary | |
void |
save()
Makes sure only non-anonymous users will upgrade their configuration. |
void |
setLocale(java.lang.String locale)
This method truncates the preference length at 255 characters, as the database column is onl 255 characters. |
| Methods inherited from class org.tigris.scarab.om.BaseUserPreference |
copy, copyInto, getByName, getByPeerName, getByPosition, getEnterIssueRedirect, getFieldNames, getHomePage, getLocale, getPasswordExpire, getPeer, getPrimaryKey, getQueryKey, getScarabUser, getScarabUser, getUserId, isCacheOnSave, save, save, setEnterIssueRedirect, setHomePage, setPasswordExpire, setPrimaryKey, setPrimaryKey, setQueryKey, setScarabUser, setScarabUserKey, setUserId, toString |
| Methods inherited from class org.apache.torque.om.BaseObject |
equals, equals, getLog, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UserPreference()
| Method Detail |
public void setLocale(java.lang.String locale)
Accept-Language
header parser generally only needs the first few characters.
setLocale in class BaseUserPreferencelocale - The Locale information.
public void save()
throws org.apache.torque.TorqueException
save in interface org.apache.torque.om.Persistentsave in class BaseUserPreferenceorg.apache.torque.TorqueException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||