|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.ac.impl.AbstractItem
org.apache.lenya.ac.impl.AbstractGroupable
org.apache.lenya.ac.impl.AbstractUser
org.apache.lenya.ac.file.FileUser
org.apache.lenya.ac.ldap.LDAPUser
public class LDAPUser
LDAP user.
| Field Summary | |
|---|---|
static java.lang.String |
LDAP_ID
LDAP_ID The LDAP id |
| Fields inherited from class org.apache.lenya.ac.file.FileUser |
|---|
DOCUMENT_LOCALE, EMAIL, GROUP, GROUPS, ID, MENU_LOCALE, PASSWORD, PASSWORD_ATTRIBUTE |
| Constructor Summary | |
|---|---|
LDAPUser(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger)
Creates a new LDAPUser object. |
|
LDAPUser(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger,
java.lang.String id,
java.lang.String email,
java.lang.String _ldapId,
org.apache.avalon.framework.logger.Logger _logger)
Create an LDAPUser |
|
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String password)
Authenticate a user against the directory. |
boolean |
canChangePassword()
The LDAPUser doesn't change any passwords as they are handled by LDAP |
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
Create a new LDAPUser from a configuration |
protected org.apache.avalon.framework.configuration.Configuration |
createConfiguration()
|
boolean |
existsUser(java.lang.String _ldapId)
Checks if a user exists. |
java.lang.String |
getLdapId()
Get the ldap id |
java.lang.String |
getName()
|
protected void |
initialize()
Initializes this user. |
protected void |
setEncryptedPassword(java.lang.String encryptedPassword)
The LDAPUser doesn't store any passwords as they are handled by LDAP |
void |
setLdapId(java.lang.String string)
Set the ldap id |
void |
setName(java.lang.String string)
LDAP Users fetch their name information from the LDAP server, so we don't store it locally. |
void |
setPassword(java.lang.String plainTextPassword)
The LDAPUser doesn't store any passwords as they are handled by LDAP |
| Methods inherited from class org.apache.lenya.ac.file.FileUser |
|---|
delete, getConfigurationDirectory, getFile, save, setConfigurationDirectory |
| Methods inherited from class org.apache.lenya.ac.impl.AbstractUser |
|---|
getDefaultDocumentLocale, getDefaultMenuLocale, getEmail, getEncryptedPassword, setDefaultDocumentLocale, setDefaultMenuLocale, setEmail |
| Methods inherited from class org.apache.lenya.ac.impl.AbstractGroupable |
|---|
addedToGroup, getAccreditables, getGroups, removedFromGroup, removeFromAllGroups |
| Methods inherited from class org.apache.lenya.ac.impl.AbstractItem |
|---|
compareTo, equals, getAccreditableManager, getDescription, getId, getItemManager, hashCode, setDescription, setId, toString |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.lenya.ac.Item |
|---|
getDescription, getId, getItemManager, setDescription |
| Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
|---|
enableLogging |
| Methods inherited from interface org.apache.lenya.ac.User |
|---|
getAccreditableManager |
| Methods inherited from interface org.apache.lenya.ac.Accreditable |
|---|
getAccreditables |
| Methods inherited from interface org.apache.lenya.ac.Groupable |
|---|
addedToGroup, getGroups, removedFromGroup, removeFromAllGroups |
| Field Detail |
|---|
public static final java.lang.String LDAP_ID
LDAP_ID The LDAP id
| Constructor Detail |
|---|
public LDAPUser(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger)
itemManager - The item manager.logger - The logger.
public LDAPUser(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger,
java.lang.String id,
java.lang.String email,
java.lang.String _ldapId,
org.apache.avalon.framework.logger.Logger _logger)
throws org.apache.avalon.framework.configuration.ConfigurationException
itemManager - The item manager.logger - The logger.id - user id of LDAPUseremail - of LDAPUser_ldapId - of LDAPUser_logger - The logger.
org.apache.avalon.framework.configuration.ConfigurationException - if the properties could not be read| Method Detail |
|---|
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.lenya.ac.Itemconfigure in class org.apache.lenya.ac.file.FileUserconfig - the Configuration specifying the user
details
org.apache.avalon.framework.configuration.ConfigurationException - if the user could not be instantiated
public boolean existsUser(java.lang.String _ldapId)
throws org.apache.lenya.ac.AccessControlException
_ldapId - The LDAP id.
org.apache.lenya.ac.AccessControlException - when an error occurs.
protected void initialize()
throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException - when something went wrong.protected org.apache.avalon.framework.configuration.Configuration createConfiguration()
createConfiguration in class org.apache.lenya.ac.file.FileUserFileUser.createConfiguration()public java.lang.String getLdapId()
public void setLdapId(java.lang.String string)
string - the new ldap idpublic boolean authenticate(java.lang.String password)
authenticate in interface org.apache.lenya.ac.Userauthenticate in class org.apache.lenya.ac.impl.AbstractUserUser.authenticate(java.lang.String)public java.lang.String getName()
getName in interface org.apache.lenya.ac.ItemgetName in class org.apache.lenya.ac.impl.AbstractItemItem.getName()public void setName(java.lang.String string)
setName in interface org.apache.lenya.ac.ItemsetName in class org.apache.lenya.ac.impl.AbstractItemstring - is ignoredpublic void setPassword(java.lang.String plainTextPassword)
setPassword in interface org.apache.lenya.ac.UsersetPassword in class org.apache.lenya.ac.impl.AbstractUserplainTextPassword - is ignoredprotected void setEncryptedPassword(java.lang.String encryptedPassword)
setEncryptedPassword in class org.apache.lenya.ac.impl.AbstractUserencryptedPassword - is ignoredpublic boolean canChangePassword()
canChangePassword in interface org.apache.lenya.ac.UsercanChangePassword in class org.apache.lenya.ac.impl.AbstractUser
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||