|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.BaseDataObject
com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject
com.jcorporate.expresso.core.dbobj.DBObject
com.jcorporate.expresso.core.dbobj.SecuredDBObject
com.jcorporate.expresso.services.dbobj.SecurityDBObject
com.jcorporate.expresso.services.dbobj.UserPreference
A User Preference is a stored value or attribute that is related to a particular user. This value set a preference or customizes the behaviour of a particular application when used by this user.
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
CLASS_NAME
|
static String |
EXPUID
|
static String |
PREF_CODE
|
static String |
PREF_VALUE
|
| Fields inherited from class com.jcorporate.expresso.services.dbobj.SecurityDBObject |
SECURITY_CONTEXT, SECURITY_OBJECTS |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT, SYSTEM_ACCOUNT_NAME, UPDATE |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
anyFieldsDistinct, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
currentStatus, globalMask |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
UserPreference()
|
|
UserPreference(ControllerRequest request)
For using DBObjects within Controllers. |
|
UserPreference(int uid)
Use over (String) constructor. |
|
| Method Summary | |
void |
addedUser(User user)
This method is called just after a new user is added Creation date: (5/12/2001 2:26:17 PM) |
protected void |
checkAllRefs()
Extends the checkAllRefs method to check for valid UserGroup |
void |
deletedUser(User user)
This method is called just before a user is deleted Creation date: (5/12/2001 2:26:17 PM) |
String |
getField(String fieldName)
Get the string value of a field in this object as a string |
void |
loggedOffUser(User user)
This method is called just before a user is logged off Creation date: (5/12/2001 2:26:17 PM) |
void |
loggedOnUser(User user)
This method is called just after a user is logged on Creation date: (5/12/2001 2:26:17 PM) |
void |
modifiedUser(User user)
This method is called just after a user is modified Creation date: (5/12/2001 2:26:17 PM) |
void |
setupFields()
Method to set up the fields for this database object. |
| Methods inherited from class com.jcorporate.expresso.services.dbobj.SecurityDBObject |
overrideDataContext, setDataContext, setDBName |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
add, canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, deleteAll, find, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, update |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String PREF_CODE
public static final String PREF_VALUE
public static final String CLASS_NAME
public static final String EXPUID
| Constructor Detail |
public UserPreference()
throws DBException
SecuredDBObject.SecuredDBObject(java.lang.String, int)
public UserPreference(int uid)
throws DBException
uid - of the user context
DBException - if there's an initialization problem
public UserPreference(ControllerRequest request)
throws DBException
request - - The controller request handed to you by the framework.| Method Detail |
public void addedUser(User user)
throws DBException
UserListener
addedUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBException
protected void checkAllRefs()
throws DBException
checkAllRefs in class DBObjectDBException - If a referential integrity violation is found
public void deletedUser(User user)
throws DBException
UserListener
deletedUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBException
public void loggedOffUser(User user)
throws DBException
UserListener
loggedOffUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBException
public void loggedOnUser(User user)
throws DBException
UserListener
loggedOnUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBException
public void modifiedUser(User user)
throws DBException
UserListener
modifiedUser in interface UserListeneruser - com.jcorporate.expresso.core.security.User
DBException
public void setupFields()
throws DBException
DBObject
setupFields in class DBObjectDBException - If there is an error setting up the fields
as requested. For example, if a field allowing null is requested
as part of the keyNote that valid values for PREF_VALUE may be specified in UserPreferenceVal,
depending on the preference.
public String getField(String fieldName)
throws DBException
DBObject
getField in interface DataObjectgetField in class DBObjectfieldName - Name of the field to fetch
DBException - If there is no such field or it's value cannot be accessed
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||