org.sakaiproject.service.legacy.user
Interface UsersShareEmailUDP

All Known Implementing Classes:
SampleUserDirectoryProvider

public interface UsersShareEmailUDP

UsersShareEmailUDP is an optional interface for a UserDirectoryProvider to indicate that they support user records that might share the same email address.

Author:
Sakai Software Development Team

Method Summary
 Collection findUsersByEmail(String email, UserFactory factory)
          Find all user objects which have this email address.
 

Method Detail

findUsersByEmail

public Collection findUsersByEmail(String email,
                                   UserFactory factory)
Find all user objects which have this email address.

Parameters:
email - The email address string.
factory - Use this factory's newUser() method to create all the UserEdit objects you populate and return in the return collection.
Returns:
Collection (UserEdit) of user objects that have this email address, or an empty Collection if there are none.