|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
UserInfo defines the interface to an object that provides information about a user this object may get it's information from LDAP, Database, or any other source
| Method Summary | |
void |
add()
Adds the current UserInfo object into the repository |
void |
delete()
Deletes the current UserInfo object from the repository |
boolean |
find()
Find a UserInfo object in the repository that matches the non-empty properties filled in the current UserInfo object |
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 |
getDBName()
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 |
getField(String fieldName)
Deprecated. Use the direct getLoginName, getEmail, getPassword, etc. methods instead |
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()
Returns the descriptive string for this user |
boolean |
passwordEquals(String testPassword)
Checks if the given password equals what we have on file. |
void |
retrieve()
Retrieves the current user from the repository |
void |
sendAuthEmail()
|
void |
sendFollowUpEmail()
|
void |
setAccountStatus(String accountStatus)
Sets the current status of the account - "A" (active), "D" (disabled), "I" (inactive) |
void |
setDBName(String newDBName)
Sets the DB context |
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 id)
Sets the registration domain |
void |
setUid(int uid)
Sets the user UID |
void |
setUserName(String name)
Sets the user name |
void |
update()
Update the user in the repository with modified properties |
| Methods inherited from interface com.jcorporate.expresso.core.dbobj.LookupInterface |
getValues |
| Method Detail |
public void add()
throws DBException
DBException - If the add fails
public void delete()
throws DBException
DBException - If the delete fails
public boolean find()
throws DBException
DBException - If the find fails
public String getAccountStatus()
throws DBException
DBException - If the find fails
public Vector getAllUsers()
throws DBException
DBException - If there is an error during the retrieval
public String getCreateDate()
throws DBException
DBException - If there is an error during the retrieval
public String getEmail()
throws DBException
DBException - If there is an error during the retrieval
public String getEmailAuthCode()
throws DBException
DBException - If there is an error during the retrieval
public String getEmailValCode()
throws DBException
DBException - If the find fails
public String getField(String fieldName)
throws DBException
fieldName - The field to retrieve
DBException - If an error occurs when the group info is read
public Vector getGroups()
throws DBException
DBException - If an error occurs when the group info is read
public String getLoginName()
throws DBException
DBException - If there is an error during the retrieval
public String getPassword()
throws DBException
DBException - If there is an error during the retrieval
public boolean getRegComplete()
throws DBException
DBException - If there is an error during the retrieval
public String getRegistrationDomain()
throws DBException
DBException - If the underlying User implementation throws the same
public int getUid()
throws DBException
DBException - If there is an error during the retrieval
public String getUpdateDate()
throws DBException
DBException - If there is an error during the retrieval
public String getUserName()
throws DBException
DBException - If there is an error during the retrieval
public boolean passwordEquals(String testPassword)
throws DBException
testPassword - The string to test if it's a correct password
DBException - If an error occurs when the group info is read
public void retrieve()
throws DBException
DBException - If the add fails
public void sendAuthEmail()
throws DBException
DBException
public void sendFollowUpEmail()
throws DBException
DBException
public void setAccountStatus(String accountStatus)
throws DBException
accountStatus - java.lang.String
DBException - If there is an error
public void setDBName(String newDBName)
throws DBException
newDBName - java.lang.String
DBException - If there is an errorpublic String getDBName()
public String getDataContext()
public void setEmail(String email)
throws DBException
email - java.lang.String
DBException - If there is an error
public void setEmailValCode(String code)
throws DBException
code - java.lang.String
DBException - If there is an error
public void setLoginName(String loginName)
throws DBException
loginName - java.lang.String
DBException - If there is an error
public void setPassword(String password)
throws DBException
password - java.lang.String
DBException - If there is an error
public void setRegComplete(boolean status)
throws DBException
status - java.lang.String
DBException - If there is an error
public void setRegistrationDomain(String id)
throws DBException
id - java.lang.String
DBException - If there is an errorRegistrationDomain
public void setUid(int uid)
throws DBException
uid - The uid of the user
DBException - If there is an error
public void setUserName(String name)
throws DBException
name - java.lang.String
DBException - If there is an error
public void update()
throws DBException
DBException - If the add fails
public String getPrimaryGroup()
throws DBException
DBException
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||