com.ca.jcs.jndi
Class VirtualFullNameHandler
java.lang.Object
com.ca.jcs.cfg.Vetoable
com.ca.jcs.converter.meta.ClassConverter
com.ca.jcs.jndi.VirtualFullNameHandler
- Direct Known Subclasses:
- VirtualUserNameHandler
public class VirtualFullNameHandler
- extends ClassConverter
Provides the value of the virtual "fullName" attribute made up of the
space separated joining of "givenName", "initials", "sn" connector-speak attributes.
$Id: VirtualFullNameHandler.java 47820 2010-03-16 21:43:52Z khaam03 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FULL_NAME_CONN_ATTR_ID
public static final String FULL_NAME_CONN_ATTR_ID
- See Also:
- Constant Field Values
JOIN_CONN_ATTR_IDS
public static String[] JOIN_CONN_ATTR_IDS
- Note that only one of sn/surname will be set, e.g. ApacheDS returns surname when asked for sn.
joinLdapAttrIds
protected String[] joinLdapAttrIds
fullNameLdapAttrId
protected String fullNameLdapAttrId
VirtualFullNameHandler
public VirtualFullNameHandler(MetaObjectClassMapping classMap)
convertToConnector
public void convertToConnector(Attributes attrs)
throws NamingException
- Description copied from class:
ClassConverter
- Create/add case.
- Specified by:
convertToConnector in class ClassConverter
- Throws:
NamingException
convertToConnector
public ModificationItem[] convertToConnector(ModificationItem[] modItems)
throws NamingException
- Description copied from class:
ClassConverter
- Update/modify case.
- Specified by:
convertToConnector in class ClassConverter
- Throws:
NamingException
isStructural
public boolean isStructural()
- Description copied from class:
ClassConverter
- Returns true if the converter performs a change to the structure of an attribute's values, rather then just transforming individual values themselves.
For instance changing Attributes representations into an alternative representation such as JSON is an example of a structural conversion.
- Specified by:
isStructural in class ClassConverter
convertFromConnector
public void convertFromConnector(Attributes attrs)
throws NamingException
- Specified by:
convertFromConnector in class ClassConverter
- Throws:
NamingException
getFullNameValue
protected String getFullNameValue(Attributes attrs)
throws NamingException
- Throws:
NamingException
Created 2011-07-14 13:27 EST