Package org.sakaiproject.unboundid
Interface EidDerivedEmailAddressHandler
-
- All Known Implementing Classes:
EmailAddressDerivingLdapAttributeMapper
public interface EidDerivedEmailAddressHandlerMixin interface for objects capable of calculating a user EID from an email address. Commonly added toLdapAttributeMappers deployed against LDAP hosts which do not actually define email attributes on user entries.- Author:
- dmccallum
- See Also:
EmailAddressDerivingLdapAttributeMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringunpackEidFromAddress(String email)Extract a user EID from the given email address.
-
-
-
Method Detail
-
unpackEidFromAddress
String unpackEidFromAddress(String email) throws InvalidEmailAddressException
Extract a user EID from the given email address.- Parameters:
email- and email address. Not necessarily guaranteed to be non-null or even contain valid email syntax- Returns:
- an EID derived from the
emailargument - Throws:
InvalidEmailAddressException- ifemailcannot be processed for any reason. Implementation should raise this exception in any situation where it might otherwise returnnull
-
-