Class SchemaMapping

java.lang.Object
com.groiss.ldap.SchemaMapping

public class SchemaMapping extends Object
Maps an LDAP-Schema to a java object net and vice versa. Consists of a set of Class Mappings.
  • Constructor Details

    • SchemaMapping

      public SchemaMapping()
  • Method Details

    • getSm

      public static SchemaMapping getSm()
      Returns the default schema mapping
      Returns:
      the dafault schema mapping
    • getClassMap

      public Collection<ClassMapping> getClassMap()
      Returns the class mappings of this schema mapping
      Returns:
      a collection of ClassMapping instances
    • add

      public void add(ClassMapping cm)
      Add a class mapping to this schema mapping
      Parameters:
      cm - the class mapping to add
    • getClassMapByClass

      public ClassMapping getClassMapByClass(String className)
      Get a class mapping object by the name of the java class
      Parameters:
      className - the name of the java class to retrieve the classmapping for
      Returns:
      if found, a classmapping for the specified class, null otherwise
    • getClassMapByType

      public ClassMapping getClassMapByType(String typeName)
      Get a class mapping object by the name of the most specific LDAP class
      Parameters:
      typeName - the name of the LDAP class to retrieve the classmapping for
      Returns:
      if found, a classmapping for the specified class, null otherwise