public class PPMUserService
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.log4j.Logger | loggerLogger. | 
| private flex.messaging.FlexSession | mySessionCurrent user's session. | 
| private MySQLIf | mysqlIfConnection to the database. | 
| Constructor and Description | 
|---|
| PPMUserService()Constructor gets session and DB connection/. | 
| Modifier and Type | Method and Description | 
|---|---|
| SQLResult | attemptAutoLogin()Attempts to retrieves the user's distinguished name off the session and
 searches the databse for a matching one. | 
| SQLResult | changePassword(java.lang.String loginID,
              java.lang.String password,
              java.lang.String newPassword)change password for specified user. | 
| private SQLResult | getUser(java.lang.String loginId,
       java.lang.String password)Gets the user. | 
| private SQLResult | getUserByDN(java.lang.String userDN)Gets the user by dn. | 
| private java.lang.String | getUserDNfromSession()Retrieves the user's DN from the session. | 
| SQLResult | login(java.lang.String loginID,
     java.lang.String password)Queries the database for the username and password combination, returns
 the result. | 
| static void | main(java.lang.String[] args)The main method. | 
| private SQLResult | setUserDN(java.lang.String loginID,
         java.lang.String userDN)Updates the user_DN entry in the database. | 
protected org.apache.log4j.Logger logger
private flex.messaging.FlexSession mySession
private MySQLIf mysqlIf
public PPMUserService()
public SQLResult attemptAutoLogin()
public SQLResult login(java.lang.String loginID, java.lang.String password)
loginID - the login idpassword - the passwordpublic SQLResult changePassword(java.lang.String loginID, java.lang.String password, java.lang.String newPassword)
loginID - the login idpassword - the passwordnewPassword - the new passwordprivate SQLResult getUser(java.lang.String loginId, java.lang.String password)
loginId - the login idpassword - the passwordprivate SQLResult getUserByDN(java.lang.String userDN)
userDN - the user dnprivate java.lang.String getUserDNfromSession()
private SQLResult setUserDN(java.lang.String loginID, java.lang.String userDN)
loginID - the login iduserDN - the user dnpublic static void main(java.lang.String[] args)
args - the arguments