com.ca.jcs
Class ObjectClassMapping.AmbiguousPropInfo
java.lang.Object
com.ca.jcs.ObjectClassMapping.AmbiguousPropInfo
- Enclosing class:
- ObjectClassMapping
public static class ObjectClassMapping.AmbiguousPropInfo
- extends Object
Information stored for each property with ambiguous connector mappings.
ObjectClassMapping.AmbiguousPropInfo
public ObjectClassMapping.AmbiguousPropInfo(String[] connectorAttrIds)
getDefaultConnectorAttrId
public String getDefaultConnectorAttrId()
getConnectorAttrIds
public String[] getConnectorAttrIds()
isConnectorAttrId
public boolean isConnectorAttrId(String attrId)
- Returns:
- true if provided attrId appears in array of possible choices.
isConnectorAttrId
public boolean isConnectorAttrId(String attrId,
String objectClass)
- Returns:
- true if provided attrId is a valid connector speak attribute id given the objectclass
(for ambiguous mappings)
getLdapChoiceAttrId
public String getLdapChoiceAttrId()
setLdapChoiceAttrId
public void setLdapChoiceAttrId(String ldapChoiceAttrId)
- Attribute used to explicitly specify which ambiguous choice is desired
for an object instance, may be null when this can be determined via the
the connector objectclass or where assuming a simple default is acceptable.
- Parameters:
ldapChoiceAttrId - Attribute whose value explicitly states which ambiguous
choice should be used for an object instance being add()ed.
getObjectClassToAttrIdMap
public Map<String,Set<String>> getObjectClassToAttrIdMap()
incConnectorAmbiguousAttrIdCount
public void incConnectorAmbiguousAttrIdCount(int i)
- Keep a counter for each attrId choice, and keep connectorAttrIds
sorted so choices are ordered with most commonly used attributes first.
- Parameters:
i - Index of attribute choice which matched.
toString
public String toString()
- Overrides:
toString in class Object
toLongString
public String toLongString()
Created 2011-07-14 13:27 EST