public class IMSEntUserDirectoryProvider extends Object implements UserDirectoryProvider
IMSEntUserDirectoryProvider is a sample UserDirectoryProvider.
| Modifier and Type | Class and Description |
|---|---|
class |
IMSEntUserDirectoryProvider.SakaiIMSUser
UserDirectoryProvider implementation
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_autoDdl
Configuration: to run the ddl on init or not.
|
protected SqlService |
m_sqlService
Dependency: SqlService
|
| Constructor and Description |
|---|
IMSEntUserDirectoryProvider()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticateUser(String userId,
UserEdit edit,
String password)
Authenticate a user / password.
|
boolean |
authenticateWithProviderFirst(String id) |
void |
destroy()
Returns to uninitialized state.
|
boolean |
findUserByEmail(UserEdit edit,
String email)
Find a user object who has this email address.
|
boolean |
getUser(UserEdit edit)
Access a user object.
|
void |
getUsers(Collection users)
Access a collection of UserEdit objects; if the user is found, update the information, otherwise remove the UserEdit object from the collection.
|
void |
init()
Final initialization, once all dependencies are set.
|
IMSEntUserDirectoryProvider.SakaiIMSUser |
retrieveUser(String userId,
boolean isEmail) |
void |
setAutoDdl(String value)
Configuration: to run the ddl on init or not.
|
void |
setSqlService(SqlService service)
Dependency: SqlService.
|
protected SqlService m_sqlService
protected boolean m_autoDdl
public void setSqlService(SqlService service)
service - The SqlService.public void setAutoDdl(String value)
value - the auto ddl value.public void init()
public void destroy()
public IMSEntUserDirectoryProvider.SakaiIMSUser retrieveUser(String userId, boolean isEmail)
public boolean getUser(UserEdit edit)
getUser in interface UserDirectoryProvideredit - The user object (id is set) to fill in.public void getUsers(Collection users)
getUsers in interface UserDirectoryProviderusers - The UserEdit objects (with id set) to fill in or remove.public boolean findUserByEmail(UserEdit edit, String email)
findUserByEmail in interface UserDirectoryProvideremail - The email address string.public boolean authenticateUser(String userId, UserEdit edit, String password)
authenticateUser in interface UserDirectoryProviderid - The user id.edit - The UserEdit matching the id to be authenticated (and updated) if we have one.password - The password.public boolean authenticateWithProviderFirst(String id)
authenticateWithProviderFirst in interface UserDirectoryProviderCopyright © 2005–2016 University of Michigan. All rights reserved.