|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.user.dao.LDAPUserDAO
Field Summary | |
protected org.apache.log4j.Category |
cat
Log4J category |
protected static String |
KEY_LDAP_BASEDN
key for ldap server base dn |
protected static String |
KEY_LDAP_HOST
key for ldap hostname value |
protected static String |
KEY_LDAP_LOGINDN
key for ldap server login dn |
protected static String |
KEY_LDAP_PASSWD
key for ldap server password |
protected static String |
KEY_LDAP_PORT
key for ldap server port value |
protected static String |
KEY_LDAP_USER_EMAIL
key for the LDAP user email attribute |
protected static String |
KEY_LDAP_USER_FIRSTNAME
key for the LDAP user first name attribute |
protected static String |
KEY_LDAP_USER_ID
key for the LDAP user id attribute |
protected static String |
KEY_LDAP_USER_LASTNAME
key for the LDAP user last name attribute |
protected static String |
KEY_LDAP_USER_LOGIN
key for the LDAP user login attribute |
protected static String |
KEY_LDAP_USER_PASSWD
key for the LDAP user passwd attribute |
Method Summary | |
protected void |
closeConnection(com.novell.ldap.LDAPConnection con)
disconnect with the server |
void |
deleteUser(String id)
Delete the User having the input id from the database. |
protected com.novell.ldap.LDAPConnection |
getConnection()
Connect and bind with the LDAP server. |
String |
getProviderType()
Get the data provider type |
User |
getUser(String login,
String passwd)
Update the input User object with the user informations retrieved from the data provider. |
void |
getUser(User user)
Get the registered User identified by the input login and passwd properties. |
protected static LDAPUserDAO |
instance()
Get the unique instance of LDAPUserDAO class. |
boolean |
loginExists(String login)
Test if the input login property
already exists into the application database. |
boolean |
loginExists(User user)
Test if the input user login property
already exists into the application database. |
void |
setUser(User user)
Persist the user informations into the database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.log4j.Category cat
protected static final String KEY_LDAP_HOST
protected static final String KEY_LDAP_PORT
protected static final String KEY_LDAP_BASEDN
protected static final String KEY_LDAP_LOGINDN
protected static final String KEY_LDAP_PASSWD
protected static final String KEY_LDAP_USER_ID
protected static final String KEY_LDAP_USER_LOGIN
protected static final String KEY_LDAP_USER_PASSWD
protected static final String KEY_LDAP_USER_FIRSTNAME
protected static final String KEY_LDAP_USER_LASTNAME
protected static final String KEY_LDAP_USER_EMAIL
Method Detail |
protected static LDAPUserDAO instance()
public String getProviderType()
getProviderType
in interface UserDAO
public User getUser(String login, String passwd) throws Exception
login
and passwd
properties to execute the login procedure.
getUser
in interface UserDAO
login
- the user loginpasswd
- the user password
Exception
- if any error occurspublic void getUser(User user) throws Exception
login
and passwd
properties.
getUser
in interface UserDAO
user
- the user object with the login
and passwd
properties properly set.
Exception
- Description of the Exceptionpublic void setUser(User user) throws Exception
setUser
in interface UserDAO
user
- the user object to persist into the database
Exception
- if any error occurspublic void deleteUser(String id) throws Exception
deleteUser
in interface UserDAO
id
- the identifier of the user to remove from the database
Exception
- if any error occurspublic boolean loginExists(User user) throws Exception
login
property
already exists into the application database.
loginExists
in interface UserDAO
user
- the user object
Exception
- if any error occurspublic boolean loginExists(String login) throws Exception
login
property
already exists into the application database.
loginExists
in interface UserDAO
login
- the login string
Exception
- if any error occursprotected com.novell.ldap.LDAPConnection getConnection() throws Exception
Exception
protected void closeConnection(com.novell.ldap.LDAPConnection con) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |