public class StringUserTypeMapper extends Object implements UserTypeMapper
UserTypeMapper which generates the same
String value for any users. Technically, this
object could be reconfigured at any time.| Constructor and Description |
|---|
StringUserTypeMapper()
Leaves the cached user type
String initialized to null |
StringUserTypeMapper(String userType)
Sets the cached user type to the given
String. |
| Modifier and Type | Method and Description |
|---|---|
String |
getUserType()
Access the user type
String to be returned from
any invocation of mapLdapEntryToSakaiUserType(LDAPEntry, LdapAttributeMapper). |
String |
mapLdapEntryToSakaiUserType(com.novell.ldap.LDAPEntry ldapEntry,
LdapAttributeMapper mapper)
Always returns the value set by
setUserType(String). |
void |
setUserType(String userType)
Set the user type
String to be returned from
any invocation of mapLdapEntryToSakaiUserType(LDAPEntry, LdapAttributeMapper). |
public StringUserTypeMapper()
String initialized to nullpublic StringUserTypeMapper(String userType)
String.
Effectively the same as using the no-arg constructor,
then invoking setUserType(String). No guarantees
exist that this constructor will actually invoke that
method, though.userType - a user type String. null and
empty Strings OKpublic String mapLdapEntryToSakaiUserType(com.novell.ldap.LDAPEntry ldapEntry, LdapAttributeMapper mapper)
setUserType(String).
Default is nullmapLdapEntryToSakaiUserType in interface UserTypeMapperldapEntry - a user's LDAPEntry, should not
be nullmapper - encapsulates mapping configurationsetUserType(String).public String getUserType()
String to be returned from
any invocation of mapLdapEntryToSakaiUserType(LDAPEntry, LdapAttributeMapper).String. Might be
null or empty.public void setUserType(String userType)
String to be returned from
any invocation of mapLdapEntryToSakaiUserType(LDAPEntry, LdapAttributeMapper).userType - a user type String. null and
empty Strings OKCopyright © 2003–2022 Sakai Project. All rights reserved.