org.jboss.portal.core.identity.cache
Class CachedLDAPUserModuleWrapper
java.lang.Object
org.jboss.portal.identity.service.IdentityModuleService
org.jboss.portal.identity.service.UserModuleService
org.jboss.portal.identity.ldap.LDAPUserModule
org.jboss.portal.core.identity.cache.CachedLDAPUserModuleWrapper
- All Implemented Interfaces:
- org.jboss.portal.identity.UserModule
public class CachedLDAPUserModuleWrapper
- extends org.jboss.portal.identity.ldap.LDAPUserModule
- implements org.jboss.portal.identity.UserModule
- Version:
- : 0.1 $
- Author:
- Boleslaw Dawidowicz
| Fields inherited from class org.jboss.portal.identity.service.IdentityModuleService |
moduleType |
|
Method Summary |
org.jboss.portal.identity.User |
createUser(java.lang.String userName,
java.lang.String password)
|
org.jboss.portal.identity.ldap.LDAPUserImpl |
createUserInstance(javax.naming.directory.Attributes attrs,
java.lang.String dn)
|
org.jboss.portal.identity.User |
findUserByDN(java.lang.String dn)
|
org.jboss.portal.identity.User |
findUserById(java.lang.Object id)
|
org.jboss.portal.identity.User |
findUserById(java.lang.String id)
|
org.jboss.portal.identity.User |
findUserByUserName(java.lang.String userName)
|
java.util.Set |
findUsers(int offset,
int limit)
|
java.util.Set |
findUsersFilteredByUserName(java.lang.String filter,
int offset,
int limit)
|
int |
getUserCount()
|
void |
removeUser(java.lang.Object id)
|
java.util.List |
searchUsers(java.lang.String filter,
java.lang.Object[] filterArgs)
|
void |
updatePassword(org.jboss.portal.identity.ldap.LDAPUserImpl ldapu,
java.lang.String password)
|
boolean |
validatePassword(org.jboss.portal.identity.ldap.LDAPUserImpl ldapu,
java.lang.String password)
|
| Methods inherited from class org.jboss.portal.identity.ldap.LDAPUserModule |
getAttributesToAdd, getConnectionContext, getContainerDN, getPasswordAttributeId, getPrincipalPreffix, getPrincipalSuffix, getSearchScope, getSearchTimeLimit, getUidAttributeID, getUserProfileModule, getUserSearchCtxDN, getUserSearchFilter, isAllowEmptyPasswords, isUserNameToLowerCase, setConnectionContext, start |
| Methods inherited from class org.jboss.portal.identity.service.UserModuleService |
fireUserCreatedEvent, fireUserDestroyedEvent |
| Methods inherited from class org.jboss.portal.identity.service.IdentityModuleService |
getConnectionJNDIName, getIdentityConfiguration, getIdentityContext, getIdentityEventBroadcaster, getInitOptions, getJndiBinder, getJNDIName, getModuleType, setConnectionJNDIName, setIdentityContext, setInitOptions, setJndiBinder, setJNDIName, setModuleType, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachedLDAPUserModuleWrapper
public CachedLDAPUserModuleWrapper(org.jboss.portal.identity.ldap.LDAPUserModule userModule,
IdentityCacheService cacheService)
findUserByUserName
public org.jboss.portal.identity.User findUserByUserName(java.lang.String userName)
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException,
org.jboss.portal.identity.NoSuchUserException
- Specified by:
findUserByUserName in interface org.jboss.portal.identity.UserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
org.jboss.portal.identity.NoSuchUserException
findUserById
public org.jboss.portal.identity.User findUserById(java.lang.Object id)
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException,
org.jboss.portal.identity.NoSuchUserException
- Specified by:
findUserById in interface org.jboss.portal.identity.UserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
org.jboss.portal.identity.NoSuchUserException
findUserById
public org.jboss.portal.identity.User findUserById(java.lang.String id)
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException,
org.jboss.portal.identity.NoSuchUserException
- Specified by:
findUserById in interface org.jboss.portal.identity.UserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
org.jboss.portal.identity.NoSuchUserException
createUser
public org.jboss.portal.identity.User createUser(java.lang.String userName,
java.lang.String password)
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException
- Specified by:
createUser in interface org.jboss.portal.identity.UserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
removeUser
public void removeUser(java.lang.Object id)
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException
- Specified by:
removeUser in interface org.jboss.portal.identity.UserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
findUsers
public java.util.Set findUsers(int offset,
int limit)
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException
- Specified by:
findUsers in interface org.jboss.portal.identity.UserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
findUsersFilteredByUserName
public java.util.Set findUsersFilteredByUserName(java.lang.String filter,
int offset,
int limit)
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException
- Specified by:
findUsersFilteredByUserName in interface org.jboss.portal.identity.UserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
getUserCount
public int getUserCount()
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException
- Specified by:
getUserCount in interface org.jboss.portal.identity.UserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
searchUsers
public java.util.List searchUsers(java.lang.String filter,
java.lang.Object[] filterArgs)
throws javax.naming.NamingException,
org.jboss.portal.identity.IdentityException
- Specified by:
searchUsers in class org.jboss.portal.identity.ldap.LDAPUserModule
- Throws:
javax.naming.NamingException
org.jboss.portal.identity.IdentityException
updatePassword
public void updatePassword(org.jboss.portal.identity.ldap.LDAPUserImpl ldapu,
java.lang.String password)
throws org.jboss.portal.identity.IdentityException
- Overrides:
updatePassword in class org.jboss.portal.identity.ldap.LDAPUserModule
- Throws:
org.jboss.portal.identity.IdentityException
validatePassword
public boolean validatePassword(org.jboss.portal.identity.ldap.LDAPUserImpl ldapu,
java.lang.String password)
throws org.jboss.portal.identity.IdentityException
- Overrides:
validatePassword in class org.jboss.portal.identity.ldap.LDAPUserModule
- Throws:
org.jboss.portal.identity.IdentityException
createUserInstance
public org.jboss.portal.identity.ldap.LDAPUserImpl createUserInstance(javax.naming.directory.Attributes attrs,
java.lang.String dn)
throws org.jboss.portal.identity.IdentityException
- Overrides:
createUserInstance in class org.jboss.portal.identity.ldap.LDAPUserModule
- Throws:
org.jboss.portal.identity.IdentityException
findUserByDN
public org.jboss.portal.identity.User findUserByDN(java.lang.String dn)
throws org.jboss.portal.identity.IdentityException,
java.lang.IllegalArgumentException,
org.jboss.portal.identity.NoSuchUserException
- Overrides:
findUserByDN in class org.jboss.portal.identity.ldap.LDAPUserModule
- Throws:
org.jboss.portal.identity.IdentityException
java.lang.IllegalArgumentException
org.jboss.portal.identity.NoSuchUserException