Class IMSEntUserDirectoryProvider
- java.lang.Object
-
- org.sakaiproject.component.imsent.user.IMSEntUserDirectoryProvider
-
- All Implemented Interfaces:
UserDirectoryProvider
public class IMSEntUserDirectoryProvider extends Object implements UserDirectoryProvider
IMSEntUserDirectoryProvider is a sample UserDirectoryProvider.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classIMSEntUserDirectoryProvider.SakaiIMSUserUserDirectoryProvider implementation
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_autoDdlConfiguration: to run the ddl on init or not.protected SqlServicem_sqlServiceDependency: SqlService
-
Constructor Summary
Constructors Constructor Description IMSEntUserDirectoryProvider()Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticateUser(String userId, UserEdit edit, String password)Authenticate a user / password.booleanauthenticateWithProviderFirst(String id)voiddestroy()Returns to uninitialized state.booleanfindUserByEmail(UserEdit edit, String email)Find a user object who has this email address.booleangetUser(UserEdit edit)Access a user object.voidgetUsers(Collection users)Access a collection of UserEdit objects; if the user is found, update the information, otherwise remove the UserEdit object from the collection.voidinit()Final initialization, once all dependencies are set.IMSEntUserDirectoryProvider.SakaiIMSUserretrieveUser(String userId, boolean isEmail)voidsetAutoDdl(String value)Configuration: to run the ddl on init or not.voidsetSqlService(SqlService service)Dependency: SqlService.
-
-
-
Field Detail
-
m_sqlService
protected SqlService m_sqlService
Dependency: SqlService
-
m_autoDdl
protected boolean m_autoDdl
Configuration: to run the ddl on init or not.
-
-
Method Detail
-
setSqlService
public void setSqlService(SqlService service)
Dependency: SqlService.- Parameters:
service- The SqlService.
-
setAutoDdl
public void setAutoDdl(String value)
Configuration: to run the ddl on init or not.- Parameters:
value- the auto ddl value.
-
init
public void init()
Final initialization, once all dependencies are set.
-
destroy
public void destroy()
Returns to uninitialized state. You can use this method to release resources thet your Service allocated when Turbine shuts down.
-
retrieveUser
public IMSEntUserDirectoryProvider.SakaiIMSUser retrieveUser(String userId, boolean isEmail)
-
getUser
public boolean getUser(UserEdit edit)
Access a user object. Update the object with the information found.- Specified by:
getUserin interfaceUserDirectoryProvider- Parameters:
edit- The user object (id is set) to fill in.- Returns:
- true if the user object was found and information updated, false if not.
-
getUsers
public 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.- Specified by:
getUsersin interfaceUserDirectoryProvider- Parameters:
users- The UserEdit objects (with id set) to fill in or remove.
-
findUserByEmail
public boolean findUserByEmail(UserEdit edit, String email)
Find a user object who has this email address. Update the object with the information found.- Specified by:
findUserByEmailin interfaceUserDirectoryProvider- Parameters:
email- The email address string.- Returns:
- true if the user object was found and information updated, false if not.
-
authenticateUser
public boolean authenticateUser(String userId, UserEdit edit, String password)
Authenticate a user / password. If the user edit exists it may be modified, and will be stored if...- Specified by:
authenticateUserin interfaceUserDirectoryProvider- Parameters:
id- The user id.edit- The UserEdit matching the id to be authenticated (and updated) if we have one.password- The password.- Returns:
- true if authenticated, false if not.
-
authenticateWithProviderFirst
public boolean authenticateWithProviderFirst(String id)
- Specified by:
authenticateWithProviderFirstin interfaceUserDirectoryProvider
-
-