com.ca.jcs.jndi
Class VirtualUserNameHandler

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
              extended by com.ca.jcs.jndi.VirtualUserNameHandler

public class VirtualUserNameHandler
extends VirtualFullNameHandler

Provides the value of the virtual "userName" attribute which is the value of the "uid" attribute if set and otherwise defaults to the same value as that for the "fullName" attribute. $Id: VirtualUserNameHandler.java 47813 2010-03-16 05:14:00Z khaam03 $


Field Summary
protected  String uidLdapAttrId
           
static String USER_NAME_CONN_ATTR_ID
           
protected  String userNameLdapAttrId
           
 
Fields inherited from class com.ca.jcs.jndi.VirtualFullNameHandler
FULL_NAME_CONN_ATTR_ID, fullNameLdapAttrId, JOIN_CONN_ATTR_IDS, joinLdapAttrIds
 
Fields inherited from class com.ca.jcs.converter.meta.ClassConverter
classMap, converterConfig
 
Constructor Summary
VirtualUserNameHandler(MetaObjectClassMapping classMap)
           
 
Method Summary
 void convertFromConnector(Attributes attrs)
           
 void convertToConnector(Attributes attrs)
          Create/add case.
 ModificationItem[] convertToConnector(ModificationItem[] modItems)
          Update/modify case.
 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.jndi.VirtualFullNameHandler
getFullNameValue
 
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

USER_NAME_CONN_ATTR_ID

public static final String USER_NAME_CONN_ATTR_ID
See Also:
Constant Field Values

uidLdapAttrId

protected String uidLdapAttrId

userNameLdapAttrId

protected String userNameLdapAttrId
Constructor Detail

VirtualUserNameHandler

public VirtualUserNameHandler(MetaObjectClassMapping classMap)
Method Detail

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.

Overrides:
isStructural in class VirtualFullNameHandler

convertToConnector

public void convertToConnector(Attributes attrs)
                        throws NamingException
Description copied from class: ClassConverter
Create/add case.

Overrides:
convertToConnector in class VirtualFullNameHandler
Throws:
NamingException

convertToConnector

public ModificationItem[] convertToConnector(ModificationItem[] modItems)
                                      throws NamingException
Description copied from class: ClassConverter
Update/modify case.

Overrides:
convertToConnector in class VirtualFullNameHandler
Throws:
NamingException

convertFromConnector

public void convertFromConnector(Attributes attrs)
                          throws NamingException
Overrides:
convertFromConnector in class VirtualFullNameHandler
Throws:
NamingException


Created 2011-07-14 13:27 EST