Package org.sakaiproject.unboundid
Class EmptyStringUserTypeMapper
- java.lang.Object
-
- org.sakaiproject.unboundid.StringUserTypeMapper
-
- org.sakaiproject.unboundid.EmptyStringUserTypeMapper
-
- All Implemented Interfaces:
UserTypeMapper
public class EmptyStringUserTypeMapper extends StringUserTypeMapper
Essentially a null impl, which always returns an empty String fromStringUserTypeMapper.mapLdapEntryToSakaiUserType(LDAPEntry, LdapAttributeMapper).- Author:
- Dan McCallum, Unicon
-
-
Constructor Summary
Constructors Constructor Description EmptyStringUserTypeMapper()Initializes the cached user typeStringto an emptyString
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUserType(String userType)Overridden to log a warn message but otherwise do nothing.-
Methods inherited from class org.sakaiproject.unboundid.StringUserTypeMapper
getUserType, mapLdapEntryToSakaiUserType
-
-
-
-
Method Detail
-
setUserType
public void setUserType(String userType)
Overridden to log a warn message but otherwise do nothing. This class is intended to always return an emptyStringfrom any invocation ofStringUserTypeMapper.mapLdapEntryToSakaiUserType(LDAPEntry, LdapAttributeMapper). As such, reconfiguration is inappropriate.- Overrides:
setUserTypein classStringUserTypeMapper- Parameters:
userType- ignored
-
-