|
Expresso 5-5-0 | ||||||||||
| 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.UserDBObj
DefaultUserInfo,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
ACCOUNT_STATUS
Deprecated. |
static String |
CREATION_DATE
Deprecated. |
static String |
DESCRIPTION
Deprecated. |
static String |
EMAIL
Deprecated. |
static String |
EMAIL_VALIDATION_CODE
Deprecated. |
static String |
EXPUID
Deprecated. |
static String |
FIRSTNAME
Deprecated. |
static String |
LASTNAME
Deprecated. |
static String |
PASSWORD
Deprecated. |
static String |
USERNAME
Deprecated. |
| 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, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
anyFieldsDistinct, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, localConnection, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
currentStatus |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
UserDBObj()
Deprecated. |
|
UserDBObj(ControllerRequest request)
Deprecated. For using DBObjects within Controllers. |
|
UserDBObj(DBConnection dbConnection)
Deprecated. Constructor Creation date: (8/9/00 5:44:22 PM) |
|
UserDBObj(int uid)
Deprecated. Use over (String) constructor. |
|
| Method Summary | |
void |
add()
Deprecated. Encode the password before adding the record to the database |
void |
delete()
Deprecated. When a user entry is deleted, the corresponding entries in the group members table must also be deleted |
String |
getAccountStatus()
Deprecated. Retrieve the current account status. |
Vector |
getAllUsers()
Deprecated. to be deprecated soon. |
ArrayList |
getAllUsersList()
Deprecated. Returns a list of all users on the UserDBOBject table. |
String |
getCreateDate()
Deprecated. Returns the date that this UserInfo object was created |
String |
getEmail()
Deprecated. Returns the email address for this user |
String |
getEmailAuthCode()
Deprecated. Here we generate an authorization code that would be hard for someone to guess. |
String |
getEmailValCode()
Deprecated. Retrieve the validation code required for authorization by email |
Vector |
getGroups()
Deprecated. Return a vector of the group names that this user belongs to |
String |
getLoginName()
Deprecated. Returns the login name of this user |
String |
getPassword()
Deprecated. Returns the password for this user |
String |
getPrimaryGroup()
Deprecated. the primary group of this user is appropriate for unix-like purposes, such as setting the group for a file permission |
boolean |
getRegComplete()
Deprecated. Returns the status of whether extended registration has been completed or not Valid values are "Y" or "N" |
String |
getRegistrationDomain()
Deprecated. Returns the unique integer for the registration domain that this user belongs to |
int |
getUid()
Deprecated. Returns the user id for this user |
String |
getUpdateDate()
Deprecated. Returns the date that this UserInfo object was last modified |
String |
getUserName()
Deprecated. Returns the descriptive string for this user |
Vector |
getValidValues(String fieldName)
Deprecated. New method to replace getValues with a structure of valid values and descriptions. |
void |
notify(String subject,
String message)
Deprecated. Send this user a notification via e-mail. |
boolean |
passwordEquals(String tryPassword)
Deprecated. passwordEquals - feed it a password and it will tell you if the hash of it matches the one on file. |
void |
postLogin()
Deprecated. Called by the various objects that can log in a user to do post-login tasks |
String |
randomPassword()
Deprecated. Generate a Random Password |
void |
sendAuthEmail()
Deprecated. Sends an Authorization Email to a new User. |
void |
sendFileTo(String subject,
String message,
Vector fileNames)
Deprecated. Send this user an e-mail with file attachments. |
void |
sendFollowUpEmail()
Deprecated. Once a user has validated his email address through the email validation servlet, the user will receive this message giving previously requested username/password. |
void |
setAccountStatus(String accountStatus)
Deprecated. Sets the current status of the account - "A" (active), "D" (disabled), "I" (inactive) |
void |
setEmail(String email)
Deprecated. Sets the email address |
void |
setEmailValCode(String code)
Deprecated. Sets the code required for auth. via email |
void |
setLoginName(String loginName)
Deprecated. Sets the login name |
void |
setPassword(String password)
Deprecated. Sets the password |
void |
setPasswordField(String data)
Deprecated. Hash the password before writing it to the database |
void |
setRegComplete(boolean status)
Deprecated. Sets the extended registration complete flag - "Y" or "N" |
void |
setRegistrationDomain(String domain)
Deprecated. Sets the registration domain |
void |
setUid(int uid)
Deprecated. Sets the user UID |
void |
setupFields()
Deprecated. Method to set up the fields for this database object. |
void |
setUserName(String name)
Deprecated. Sets the user name |
void |
update()
Deprecated. Update the user in the repository with modified properties |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, deleteAll, find, getCharset, getDescription, getDescription, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, getUser, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, setUser |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
buildWhereClause, buildWhereClauseBuffer, checkZeroUpdate, constructNewMetaData, createAndExecuteSearch, getConnectionPool, getCustomStringFieldValue, getDef, getDistinctFieldArrayList, getExecutor, getFieldsToRetrieveIterator, getJDBCMetaData, getJDBCUtil, getMappedDataContext, getMetaData, getQueryInterface, getSerialForm, loadFromConnection, makeLimitationStub, quoteIfNeeded, selectFieldString, setCaseSensitiveQuery, setDBConnectionPool, setDBName, setMappedDataContext, setOriginalDBName |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
getStatus, setStatus |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jcorporate.expresso.core.security.UserInfo |
find, getDataContext, getDBName, getField, retrieve, setDBName |
| Methods inherited from interface com.jcorporate.expresso.core.dbobj.LookupInterface |
getValues |
| Field Detail |
public static final String EXPUID
public static final String USERNAME
public static final String DESCRIPTION
public static final String LASTNAME
public static final String FIRSTNAME
public static final String PASSWORD
public static final String EMAIL
public static final String ACCOUNT_STATUS
public static final String CREATION_DATE
public static final String EMAIL_VALIDATION_CODE
| Constructor Detail |
public UserDBObj()
throws DBException
DBExceptionSecuredDBObject.SecuredDBObject(java.lang.String, int)
public UserDBObj(DBConnection dbConnection)
throws DBException
dbConnection - com.jcorporate.expresso.core.db.DBConnection
DBException
public UserDBObj(int uid)
throws DBException
uid - the Uid of the user context
DBException - if there's an initialization problem
public UserDBObj(ControllerRequest request)
throws DBException
request - - The controller request handed to you by the framework.
DBException| Method Detail |
public void add()
throws DBException
add in interface UserInfoadd in class SecuredDBObjectDBException - If the add fails
public void delete()
throws DBException
delete in interface UserInfodelete in class SecuredDBObjectDBException - If the delete fails
public String getAccountStatus()
throws DBException
UserInfo
getAccountStatus in interface UserInfoDBException - If the find fails
public Vector getAllUsers()
throws DBException
getAllUsers in interface UserInfoDBException
public ArrayList getAllUsersList()
throws DBException
DBException
public String getCreateDate()
throws DBException
UserInfo
getCreateDate in interface UserInfoDBException - If there is an error during the retrieval
public String getEmail()
throws DBException
UserInfo
getEmail in interface UserInfoDBException - If there is an error during the retrieval
public String getEmailAuthCode()
throws DBException
getEmailAuthCode in interface UserInfoDBException
public String getEmailValCode()
throws DBException
UserInfo
getEmailValCode in interface UserInfoDBException - If the find fails
public Vector getGroups()
throws DBException
getGroups in interface UserInfoDBException - If an error occurs when the group info is read
public String getLoginName()
throws DBException
UserInfo
getLoginName in interface UserInfoDBException - If there is an error during the retrieval
public String getPassword()
throws DBException
UserInfo
getPassword in interface UserInfoDBException - If there is an error during the retrieval
public boolean getRegComplete()
throws DBException
UserInfo
getRegComplete in interface UserInfoDBException - If there is an error during the retrieval
public String getRegistrationDomain()
throws DBException
UserInfo
getRegistrationDomain in interface UserInfoDBException - If the underlying User implementation throws the same
public int getUid()
throws DBException
UserInfo
getUid in interface UserInfoDBException - If there is an error during the retrieval
public String getUpdateDate()
throws DBException
UserInfo
getUpdateDate in interface UserInfoDBException - If there is an error during the retrieval
public String getUserName()
throws DBException
UserInfo
getUserName in interface UserInfogetUserName in class SecuredDBObjectDBException - if the user name is invalid
public Vector getValidValues(String fieldName)
throws DBException
DBObject
getValidValues in class DBObjectfieldName - the name of the field to retrieve
DBException - The exception description.
public void notify(String subject,
String message)
throws DBException,
LogException
subject - Subject of the e-mailmessage - Message to send in body of e-mail
DBException - If the mail message cannot be sent
LogException
public boolean passwordEquals(String tryPassword)
throws DBException
passwordEquals in interface UserInfotryPassword - The value the user input for an attempted login.
DBException
public void postLogin()
throws DBException,
LogException
DBException
LogExceptionpublic String randomPassword()
public void sendAuthEmail()
throws DBException
sendAuthEmail in interface UserInfoDBException
public void sendFileTo(String subject,
String message,
Vector fileNames)
throws DBException,
LogException
subject - Subject of the e-mailmessage - Message to send in body of e-mailfileNames - of the files to attach
DBException - If the mail message cannot be sent
LogException
public void sendFollowUpEmail()
throws DBException
sendFollowUpEmail in interface UserInfoDBException - The exception description.
public void setAccountStatus(String accountStatus)
throws DBException
UserInfo
setAccountStatus in interface UserInfoaccountStatus - java.lang.String
DBException - If there is an error
public void setEmail(String email)
throws DBException
UserInfo
setEmail in interface UserInfoemail - java.lang.String
DBException - If there is an error
public void setEmailValCode(String code)
throws DBException
UserInfo
setEmailValCode in interface UserInfocode - java.lang.String
DBException - If there is an error
public void setLoginName(String loginName)
throws DBException
UserInfo
setLoginName in interface UserInfologinName - java.lang.String
DBException - If there is an error
public void setPassword(String password)
throws DBException
UserInfo
setPassword in interface UserInfopassword - java.lang.String
DBException - If there is an error
public void setPasswordField(String data)
throws DBException
data - The data to set for the password field
DBException
public void setRegComplete(boolean status)
throws DBException
UserInfo
setRegComplete in interface UserInfostatus - java.lang.String
DBException - If there is an error
public void setRegistrationDomain(String domain)
throws DBException
UserInfo
setRegistrationDomain in interface UserInfodomain - java.lang.String
DBException - If there is an errorRegistrationDomain
public void setUid(int uid)
throws DBException
UserInfo
setUid in interface UserInfouid - The uid of the user
DBException - If there is an error
public void setupFields()
throws DBException
DBObject
setupFields in class DBObjectDBExceptionDBObject.setupFields()
public void setUserName(String name)
throws DBException
UserInfo
setUserName in interface UserInfoname - java.lang.String
DBException - If there is an error
public void update()
throws DBException
UserInfo
update in interface UserInfoupdate in class SecuredDBObjectDBException
public String getPrimaryGroup()
throws DBException
UserInfo
getPrimaryGroup in interface UserInfoDBException
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||