Package com.groiss.ldap
Class SchemaMapping
java.lang.Object
com.groiss.ldap.SchemaMapping
Maps an LDAP-Schema to a java object net and vice versa.
Consists of a set of Class Mappings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ClassMapping cm) Add a class mapping to this schema mappingReturns the class mappings of this schema mappinggetClassMapByClass
(String className) Get a class mapping object by the name of the java classgetClassMapByType
(String typeName) Get a class mapping object by the name of the most specific LDAP classstatic SchemaMapping
getSm()
Returns the default schema mapping
-
Constructor Details
-
SchemaMapping
public SchemaMapping()
-
-
Method Details
-
getSm
Returns the default schema mapping- Returns:
- the dafault schema mapping
-
getClassMap
Returns the class mappings of this schema mapping- Returns:
- a collection of ClassMapping instances
-
add
Add a class mapping to this schema mapping- Parameters:
cm
- the class mapping to add
-
getClassMapByClass
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
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
-