|
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.ext.dbobj.SingleDBUserInfo
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
FULL_NAME
Field name for full name. |
| 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 | |
SingleDBUserInfo()
|
|
SingleDBUserInfo(ControllerRequest request)
For using DBObjects within Controllers. |
|
SingleDBUserInfo(int uid)
Use over (String) constructor. |
|
| Method Summary | |
void |
add()
Adds the current UserInfo object into the repository |
protected void |
checkAllRefs()
Extends the checkAllRefs method to check for valid Registration Domain Id |
void |
delete()
Deletes the current UserInfo object from the repository |
String |
getAccountStatus()
Retrieve the current account status. |
Vector |
getAllUsers()
Returns a Vector of all the UserInfo objects in the repository |
String |
getCreateDate()
Returns the date that this UserInfo object was created |
String |
getDataContext()
gets the DB context; can return null |
String |
getEmail()
Returns the email address for this user |
String |
getEmailAuthCode()
Returns the email auth code previously set for this user |
String |
getEmailValCode()
Retrieve the validation code required for authorization by email |
String |
getFullName()
get descriptive, full name |
Vector |
getGroups()
Return a vector of the group names that this user belongs to |
String |
getLoginName()
Returns the login name of this user |
String |
getPassword()
Returns the password for this user |
String |
getPrimaryGroup()
the primary group of this user is appropriate for unix-like purposes, such as setting the group for a file permission |
boolean |
getRegComplete()
Returns the status of whether extended registration has been completed or not Valid values are "Y" or "N" |
String |
getRegistrationDomain()
Returns the unique integer for the registration domain that this user belongs to |
int |
getUid()
Returns the user id for this user |
String |
getUpdateDate()
Returns the date that this UserInfo object was last modified |
String |
getUserName()
Deprecated. Since Expresso 5.5; use getFullName() instead to avoid confusion with login name |
Vector |
getValidValues(String fieldName)
New method to replace getValues with a structure of valid values and descriptions. |
void |
notify(String subject,
String message)
Send this user a notification via e-mail. |
boolean |
passwordEquals(String tryPassword)
passwordEquals - feed it a password and it will tell you if the hash of it matches the one on file. |
void |
postLogin()
Called by the various objects that can log in a user to do post-login tasks |
String |
randomPassword()
|
void |
retrieve()
Retrieves the current user from the repository |
void |
sendAuthEmail()
Sends an Authorization Email to a new User. |
void |
sendFileTo(String subject,
String message,
Vector fileNames)
Send this user an e-mail with file attachments. |
void |
sendFollowUpEmail()
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)
Sets the current status of the account - "A" (active), "D" (disabled), "I" (inactive) |
void |
setDBName()
|
void |
setEmail(String email)
Sets the email address |
void |
setEmailValCode(String code)
Sets the code required for auth. via email |
void |
setLoginName(String loginName)
Sets the login name |
void |
setPassword(String password)
Sets the password |
void |
setRegComplete(boolean status)
Sets the extended registration complete flag - "Y" or "N" |
void |
setRegistrationDomain(String domain)
Sets the registration domain |
void |
setUid(int uid)
Sets the user UID |
void |
setUid(String uid)
|
void |
setupFields()
Method to set up the fields for this database object. |
void |
setUserName(String name)
Sets the user name |
void |
update()
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, 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, getDBName, getField, setDBName |
| Methods inherited from interface com.jcorporate.expresso.core.dbobj.LookupInterface |
getValues |
| Field Detail |
public static final String FULL_NAME
| Constructor Detail |
public SingleDBUserInfo()
throws DBException
public SingleDBUserInfo(int uid)
throws DBException
uid - the Uid of the user context
DBException - if there's an initialization problem
public SingleDBUserInfo(ControllerRequest request)
throws DBException
request - - The controller request handed to you by the framework.
DBException| Method Detail |
public void setUid(String uid)
throws DBException
DBException
public void setUid(int uid)
throws DBException
UserInfo
setUid in interface UserInfouid - The uid of the user
DBException - If there is an errorpublic void setDBName()
public String getDataContext()
UserInfo
getDataContext in interface UserInfogetDataContext in class DBObject
public void add()
throws DBException
UserInfo
add in interface UserInfoadd in class SecuredDBObjectDBException - If the user is not permitted to add
or if the add fails
protected void checkAllRefs()
throws DBException
checkAllRefs in class DBObjectDBException - If a referential integrity violation is found
public void delete()
throws DBException
UserInfo
delete in interface UserInfodelete in class SecuredDBObjectDBException - if delete is not allowed for the current user
public String getAccountStatus()
throws DBException
UserInfo
getAccountStatus in interface UserInfoDBException - If the find fails
public Vector getAllUsers()
throws DBException
UserInfo
getAllUsers in interface UserInfoDBException - If there is an error during the retrieval
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
UserInfo
getEmailAuthCode in interface UserInfoDBException - If there is an error during the retrieval
public String getEmailValCode()
throws DBException
UserInfo
getEmailValCode in interface UserInfoDBException - If the find fails
public Vector getGroups()
throws DBException
UserInfo
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
getUserName in interface UserInfogetUserName in class SecuredDBObjectDBException - if the user name is invalid
public String getFullName()
throws DBException
DBException
public Vector getValidValues(String fieldName)
throws DBException
DBObject
getValidValues in class DBObjectfieldName - The name of the field to get the valid values for
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 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 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 void retrieve()
throws DBException
UserInfo
retrieve in interface UserInforetrieve in class SecuredDBObjectDBException - if search is not allowed or if no record is found
public String getPrimaryGroup()
throws DBException
getPrimaryGroup in interface UserInfoDBException
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||