| java.lang.Object org.sakaiproject.provider.user.SampleUserDirectoryProvider
Inner Class :protected class Info | |
m_courseStudents | protected int m_courseStudents(Code) | | how many students to recognize (1.. this).
|
SampleUserDirectoryProvider | public SampleUserDirectoryProvider()(Code) | | Construct.
|
authenticateUser | public boolean authenticateUser(String userId, UserEdit edit, String password)(Code) | | Authenticate a user / password. If the user edit exists it may be modified, and will be stored if...
Parameters: id - The user id. Parameters: edit - The UserEdit matching the id to be authenticated (and updated) if we have one. Parameters: password - The password. true if authenticated, false if not. |
authenticateWithProviderFirst | public boolean authenticateWithProviderFirst(String id)(Code) | | |
createUserRecord | public boolean createUserRecord(String id)(Code) | | |
destroy | public void destroy()(Code) | | Returns to uninitialized state. You can use this method to release resources thet your Service allocated when Turbine shuts down.
|
destroyAuthentication | public void destroyAuthentication()(Code) | | |
findUserByEmail | public boolean findUserByEmail(UserEdit edit, String email)(Code) | | Find a user object who has this email address. Update the object with the information found.
Note: this method won't be used, because we are a UsersShareEmailUPD.
This is the sort of method to provide if your external source has only a single user for any email address.
Parameters: email - The email address string. true if the user object was found and information updated, false if not. |
findUsersByEmail | public Collection findUsersByEmail(String email, UserFactory factory)(Code) | | Find all user objects which have this email address.
Parameters: email - The email address string. Parameters: factory - Use this factory's newUser() method to create all the UserEdit objects you populate and return in the return collection. Collection (UserEdit) of user objects that have this email address, or an empty Collection if there are none. |
getUser | public boolean getUser(UserEdit edit)(Code) | | Access a user object. Update the object with the information found.
Parameters: edit - The user object (id is set) to fill in. true if the user object was found and information updated, false if not. |
getUsers | public void getUsers(Collection users)(Code) | | Access a collection of UserEdit objects; if the user is found, update the information, otherwise remove the UserEdit object from the collection.
Parameters: users - The UserEdit objects (with id set) to fill in or remove. |
init | public void init()(Code) | | Final initialization, once all dependencies are set.
|
setCourseStudents | public void setCourseStudents(String count)(Code) | | Set how many students to recognize.
Parameters: count - How many students to recognize. |
updateUserAfterAuthentication | public boolean updateUserAfterAuthentication()(Code) | | Will this provider update user records on successfull authentication? If so, the UserDirectoryService will cause these updates to be stored.
true if the user record may be updated after successfull authentication, false if not. |
userExists | public boolean userExists(String userId)(Code) | | See if a user by this id exists.
Parameters: userId - The user id string. true if a user by this id exists, false if not. |
|
|