com.ca.jcs.jndi
Class VirtualFullNameHandler

java.lang.Object
  extended by com.ca.jcs.cfg.Vetoable
      extended by com.ca.jcs.converter.meta.ClassConverter
          extended by 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 $


Field Summary
static String FULL_NAME_CONN_ATTR_ID
           
protected  String fullNameLdapAttrId
           
static String[] JOIN_CONN_ATTR_IDS
          Note that only one of sn/surname will be set, e.g.
protected  String[] joinLdapAttrIds
           
 
Fields inherited from class com.ca.jcs.converter.meta.ClassConverter
classMap, converterConfig
 
Constructor Summary
VirtualFullNameHandler(MetaObjectClassMapping classMap)
           
 
Method Summary
 void convertFromConnector(Attributes attrs)
           
 void convertToConnector(Attributes attrs)
          Create/add case.
 ModificationItem[] convertToConnector(ModificationItem[] modItems)
          Update/modify case.
protected  String getFullNameValue(Attributes attrs)
           
 boolean isStructural()
          Returns true if the converter performs a change to the structure of an attribute's values, rather then just transforming individual values themselves.
 
Methods inherited from class com.ca.jcs.cfg.Vetoable
isVetoed, setVetoed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

VirtualFullNameHandler

public VirtualFullNameHandler(MetaObjectClassMapping classMap)
Method Detail

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