com.groiss.ldap
Class SchemaMapping

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

public class SchemaMapping
extends java.lang.Object

Maps an LDAP-Schema to a java object net and vice versa. Consists of a set of Class Mappings.


Constructor Summary
SchemaMapping()
           
 
Method Summary
 void add(ClassMapping cm)
          Add a class mapping to this schema mapping
 java.util.Collection<ClassMapping> getClassMap()
          Returns the class mappings of this schema mapping
 ClassMapping getClassMapByClass(java.lang.String className)
          Get a class mapping object by the name of the java class
 ClassMapping getClassMapByType(java.lang.String typeName)
          Get a class mapping object by the name of the most specific LDAP class
static SchemaMapping getSm()
          Returns the default schema mapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaMapping

public SchemaMapping()
Method Detail

getSm

public static SchemaMapping getSm()
Returns the default schema mapping

Returns:
the dafault schema mapping

getClassMap

public java.util.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(java.lang.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(java.lang.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


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.