|
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.ext.ldap.UserLDAP
UserLDAP is an LDAP-aware implementation of the UserInfo object - this allows user information to be retrieved from an LDAP server, as opposed to simply retrieved from the database. In order for this implementation to work, the following properties must be set in the properties file for the specific db/context to be user with LDAP: ldapServer: the URL to the LDAP context via JNDI (e.g. ldap://localhost:389) ldapUser: The username to use to access the LDAP server (cn=Directory Manager) ldapPassword: The password to use when accessing the LDAP server (e.g. pass) ldapRoot: The root for the entries we look up (e.g. o=javacorp.com) Creation date: (9/18/00 1:55:15 PM)
| Constructor Summary | |
UserLDAP()
UserLDAP constructor comment. |
|
| Method Summary | |
void |
add()
Adds the current UserInfo object into the repository |
void |
delete()
Deletes the User (Not implemented) |
boolean |
find()
Find the LDAP user |
String |
getAccountStatus()
Retrieve the current account status. |
Vector |
getAllUsers()
Returns a Vector of all the UserInfo objects in the repository |
DirContext |
getContext()
Most often used for testing to peak into things. |
String |
getCreateDate()
Returns the date that this UserInfo object was created |
String |
getDataContext()
gets the DB context; can return null |
String |
getDBName()
Return the name of the context/database connection that this DB object is using. |
String |
getEmail()
Returns the email address for this user |
String |
getEmailAuthCode()
Here we generate an authorization code that would be hard for someone to guess. |
String |
getEmailValCode()
Retrieve the validation code required for authorization by email |
String |
getField(String fieldName)
getField method comment. |
Enumeration |
getFieldList()
|
Vector |
getGroups()
Get the groups associated with this User |
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 |
String |
getRoot()
|
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 |
Vector |
getValues()
Method to return a Vector of ValidValue This method may be implemented by objects that want to provide a list of valid values for other DB objects. |
void |
notify(String subject,
String message)
Send this user a notification via e-mail. |
boolean |
passwordEquals(String tryPassword)
Checks if the supplied password equals the one on file |
String |
randomPassword()
Generate a random password |
void |
retrieve()
retrieve method comment. |
void |
sendAuthEmail()
Sends an Authorization Email to a new User. |
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 name)
Sets the current status of the account - "A" (active), "D" (disabled), "I" (inactive) |
void |
setCreateDate(String name)
|
void |
setDBName(String newDBName)
Sets the data context for this user |
void |
setEmail(String name)
Sets the email address |
void |
setEmailAuthCode(String name)
|
void |
setEmailValCode(String code)
Sets the code required for auth. via email |
void |
setLoginName(String name)
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 |
setUpdateDate(String name)
|
void |
setUserName(String name)
Sets the user name |
void |
update()
update method comment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UserLDAP()
| Method Detail |
public void add()
throws DBException
UserInfo
add in interface UserInfoDBException
public void delete()
throws DBException
delete in interface UserInfoDBException
public boolean find()
throws DBException
find in interface UserInfoDBException
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 retrievalpublic DirContext getContext()
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 String getField(String fieldName)
throws DBException
getField in interface UserInfofieldName - The field name to retrieve
DBException
public Enumeration getFieldList()
throws DBException
DBException - upon Error
public Vector getGroups()
throws DBException
getGroups in interface UserInfoDBException
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 samepublic String getRoot()
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 UserInfoDBException - If there is an error during the retrieval
public void notify(String subject,
String message)
throws DBException
subject - Subject of the e-mailmessage - Message to send in body of e-mail
DBException - If the mail message cannot be sent
public boolean passwordEquals(String tryPassword)
throws DBException
passwordEquals in interface UserInfotryPassword - The password to check
DBExceptionpublic String randomPassword()
public void retrieve()
throws DBException
retrieve in interface UserInfoDBException
public void sendAuthEmail()
throws DBException
sendAuthEmail in interface UserInfoDBException
public void sendFollowUpEmail()
throws DBException
sendFollowUpEmail in interface UserInfoDBException - The exception description.
public void setAccountStatus(String name)
throws DBException
UserInfo
setAccountStatus in interface UserInfoname - java.lang.String
DBException - If there is an error
public void setCreateDate(String name)
throws DBException
DBException
public void setDBName(String newDBName)
throws DBException
setDBName in interface UserInfonewDBName - The new data context
DBException
public void setEmail(String name)
throws DBException
UserInfo
setEmail in interface UserInfoname - java.lang.String
DBException - If there is an error
public void setEmailAuthCode(String name)
throws DBException
DBException
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 name)
throws DBException
UserInfo
setLoginName in interface UserInfoname - 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 errorpublic void setRegistrationDomain(String domain)
UserInfo
setRegistrationDomain in interface UserInfodomain - java.lang.StringRegistrationDomain
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 setUpdateDate(String name)
throws DBException
DBException
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
update in interface UserInfoDBException
public Vector getValues()
throws DBException
getValues in interface LookupInterfaceDBExceptionpublic String getDBName()
getDBName in interface UserInfopublic String getDataContext()
getDataContext in interface UserInfo
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 | ||||||||||