|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.identity.service.IdentityModuleService
org.jboss.portal.identity.service.UserModuleService
org.jboss.portal.identity.ldap.LDAPUserModule
org.jboss.portal.core.identity.cache.CachedLDAPUserModuleWrapper
public class CachedLDAPUserModuleWrapper
Field Summary |
---|
Fields inherited from class org.jboss.portal.identity.service.IdentityModuleService |
---|
moduleType |
Constructor Summary | |
---|---|
CachedLDAPUserModuleWrapper(LDAPUserModule userModule,
IdentityCacheService cacheService)
|
Method Summary | |
---|---|
User |
createUser(java.lang.String userName,
java.lang.String password)
Creates a new user with the specified name. |
LDAPUserImpl |
createUserInstance(javax.naming.directory.Attributes attrs,
java.lang.String dn)
|
User |
findUserByDN(java.lang.String dn)
method not belonging to UserModule interface - ldap specific. |
User |
findUserById(java.lang.Object id)
Retrieve a user by its id. |
User |
findUserById(java.lang.String id)
Retrieve a user by its id. |
User |
findUserByUserName(java.lang.String userName)
Retrieve a user by its name. |
java.util.Set |
findUsers(int offset,
int limit)
Get a range of users. |
java.util.Set |
findUsersFilteredByUserName(java.lang.String filter,
int offset,
int limit)
Get a range of users. |
int |
getUserCount()
Returns the number of users. |
void |
removeUser(java.lang.Object id)
Remove a user. |
java.util.List |
searchUsers(java.lang.String filter,
java.lang.Object[] filterArgs)
This method should be used by over modules to perform searches. |
void |
updatePassword(LDAPUserImpl ldapu,
java.lang.String password)
|
boolean |
validatePassword(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 |
Constructor Detail |
---|
public CachedLDAPUserModuleWrapper(LDAPUserModule userModule, IdentityCacheService cacheService)
Method Detail |
---|
public User findUserByUserName(java.lang.String userName) throws IdentityException, java.lang.IllegalArgumentException, NoSuchUserException
UserModule
findUserByUserName
in interface UserModule
userName
- the user name
IdentityException
java.lang.IllegalArgumentException
NoSuchUserException
public User findUserById(java.lang.Object id) throws IdentityException, java.lang.IllegalArgumentException, NoSuchUserException
UserModule
findUserById
in interface UserModule
id
- the user id
java.lang.IllegalArgumentException
- if the id is null
IdentityException
NoSuchUserException
public User findUserById(java.lang.String id) throws IdentityException, java.lang.IllegalArgumentException, NoSuchUserException
UserModule
findUserById
in interface UserModule
id
- the user id
java.lang.IllegalArgumentException
- if the id is null or not in the good format
IdentityException
NoSuchUserException
public User createUser(java.lang.String userName, java.lang.String password) throws IdentityException, java.lang.IllegalArgumentException
UserModule
createUser
in interface UserModule
IdentityException
java.lang.IllegalArgumentException
public void removeUser(java.lang.Object id) throws IdentityException, java.lang.IllegalArgumentException
UserModule
removeUser
in interface UserModule
id
- the user id
IdentityException
java.lang.IllegalArgumentException
public java.util.Set findUsers(int offset, int limit) throws IdentityException, java.lang.IllegalArgumentException
UserModule
findUsers
in interface UserModule
offset
- the offset of the first result to retrievelimit
- the maximum number of users to retrieve
IdentityException
java.lang.IllegalArgumentException
public java.util.Set findUsersFilteredByUserName(java.lang.String filter, int offset, int limit) throws IdentityException, java.lang.IllegalArgumentException
UserModule
findUsersFilteredByUserName
in interface UserModule
filter
- a string filter applied to the user name.offset
- the offset of the frist result to retrievelimit
- the maximum number of users to retrieve
IdentityException
java.lang.IllegalArgumentException
public int getUserCount() throws IdentityException, java.lang.IllegalArgumentException
UserModule
getUserCount
in interface UserModule
IdentityException
java.lang.IllegalArgumentException
public java.util.List searchUsers(java.lang.String filter, java.lang.Object[] filterArgs) throws javax.naming.NamingException, IdentityException
LDAPUserModule
searchUsers
in class LDAPUserModule
filter
- that will be concatenated with proper user search filter from the module
javax.naming.NamingException
IdentityException
public void updatePassword(LDAPUserImpl ldapu, java.lang.String password) throws IdentityException
updatePassword
in class LDAPUserModule
IdentityException
public boolean validatePassword(LDAPUserImpl ldapu, java.lang.String password) throws IdentityException
validatePassword
in class LDAPUserModule
IdentityException
public LDAPUserImpl createUserInstance(javax.naming.directory.Attributes attrs, java.lang.String dn) throws IdentityException
createUserInstance
in class LDAPUserModule
IdentityException
public User findUserByDN(java.lang.String dn) throws IdentityException, java.lang.IllegalArgumentException, NoSuchUserException
LDAPUserModule
findUserByDN
in class LDAPUserModule
IdentityException
java.lang.IllegalArgumentException
NoSuchUserException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |