com.ca.jcs
Class ObjectClassMapping.AmbiguousClassInfo

java.lang.Object
  extended by com.ca.jcs.ObjectClassMapping.AmbiguousClassInfo
All Implemented Interfaces:
Comparator<String>
Enclosing class:
ObjectClassMapping

public static class ObjectClassMapping.AmbiguousClassInfo
extends Object
implements Comparator<String>

Information stored for each class with ambiguous connector mappings.


Constructor Summary
ObjectClassMapping.AmbiguousClassInfo(String[] connectorClassNames, String[] connectorAuxiliaryClassNames, Map<String,String[]> connectorDerivedClassNames)
           
 
Method Summary
 int compare(String classNameA, String classNameB)
           
 String[] getConnectorAuxiliaryClassNames()
           
 String[] getConnectorClassNames()
           
 String[] getConnectorClassNamesAll()
          Get combined list of class names corresponding to structural and auxiliary classes known
 String[] getConnectorClassNamesAll(boolean allKnown)
           
 Map<String,String[]> getConnectorDerivedClassInfo()
           
 String[] getConnectorDerivedClassNames()
           
 String[] getConnectorStructuralClassNames()
           
 String getDefaultConnectorClassName()
           
 String getDefaultConnectorClassSelectionCriteria()
           
 String[] getDerivedObjectClasses(String baseObjClass)
          Constructs a sorted list of all derived classes for a given base, base class included
 String[] getDerivesFrom(String className)
           
 String getFilter()
           
 String getLdapChoiceAttrId()
           
 String getLeastDerivedClassName(String[] classNames)
           
 String getMostDerivedClassName(String[] classNames)
          Return name of the native objectClass which is the most specialized descendant in the hierarchy of objectClasses.
 boolean isAuxiliaryClassName(String objectClass)
          Test if a given objectclass value corresponds to one the auxiliary mapped classes.
 boolean isConnectorClassName(String connClass)
           
 boolean isStructuralClassName(String objectClass)
          Check if a given class name corresponds to a structural objectClass according to the metadata
 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.
 String[] sortDerivedClassNames(String[] classNames, boolean mostDerived)
           
 String[] splitConnectorAuxiliaryClassNames(String[] classNames)
          Split given object class names into those corresponding to auxiliary classes
 String[] splitConnectorStructuralClassNames(String[] classNames)
          Split given object class names into those corresponding to structural classes
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ObjectClassMapping.AmbiguousClassInfo

public ObjectClassMapping.AmbiguousClassInfo(String[] connectorClassNames,
                                             String[] connectorAuxiliaryClassNames,
                                             Map<String,String[]> connectorDerivedClassNames)
Method Detail

splitConnectorAuxiliaryClassNames

public String[] splitConnectorAuxiliaryClassNames(String[] classNames)
Split given object class names into those corresponding to auxiliary classes


splitConnectorStructuralClassNames

public String[] splitConnectorStructuralClassNames(String[] classNames)
Split given object class names into those corresponding to structural classes


getDefaultConnectorClassName

public String getDefaultConnectorClassName()

getConnectorClassNames

public String[] getConnectorClassNames()

isConnectorClassName

public boolean isConnectorClassName(String connClass)
Returns:
true if provided connClass appears in array of possible choices.

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.

getFilter

public String getFilter()

toString

public String toString()
Overrides:
toString in class Object

getConnectorAuxiliaryClassNames

public String[] getConnectorAuxiliaryClassNames()

isAuxiliaryClassName

public boolean isAuxiliaryClassName(String objectClass)
Test if a given objectclass value corresponds to one the auxiliary mapped classes.

Parameters:
objectClass -
Returns:
true if the objectclass is mapped as an auxiliary class, false otherwise

getConnectorDerivedClassInfo

public Map<String,String[]> getConnectorDerivedClassInfo()

getConnectorDerivedClassNames

public String[] getConnectorDerivedClassNames()

getConnectorStructuralClassNames

public String[] getConnectorStructuralClassNames()
Returns:
A string array corresponding to all the structural classes found in the metadata.

isStructuralClassName

public boolean isStructuralClassName(String objectClass)
Check if a given class name corresponds to a structural objectClass according to the metadata

Parameters:
objectClass -
Returns:
true if the class is structural, false otherwise.

getMostDerivedClassName

public String getMostDerivedClassName(String[] classNames)
Return name of the native objectClass which is the most specialized descendant in the hierarchy of objectClasses.

Parameters:
classNames - Array of class names which the most derived class should be picked from
Returns:
The value of the most specialized descendant class.

getLeastDerivedClassName

public String getLeastDerivedClassName(String[] classNames)

compare

public int compare(String classNameA,
                   String classNameB)
Specified by:
compare in interface Comparator<String>

sortDerivedClassNames

public String[] sortDerivedClassNames(String[] classNames,
                                      boolean mostDerived)

getDefaultConnectorClassSelectionCriteria

public String getDefaultConnectorClassSelectionCriteria()

getDerivesFrom

public String[] getDerivesFrom(String className)

getConnectorClassNamesAll

public String[] getConnectorClassNamesAll()
Get combined list of class names corresponding to structural and auxiliary classes known

Returns:

getConnectorClassNamesAll

public String[] getConnectorClassNamesAll(boolean allKnown)

getDerivedObjectClasses

public String[] getDerivedObjectClasses(String baseObjClass)
Constructs a sorted list of all derived classes for a given base, base class included



Created 2011-07-14 13:27 EST