Class DefaultDnFactory
java.lang.Object
org.apache.directory.api.ldap.model.name.DefaultDnFactory
- All Implemented Interfaces:
DnFactory
The default Dn factory implementation.
- Author:
- Apache Directory Project
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDnFactory(SchemaManager schemaManager, int cacheSize) Instantiates a new default Dn factory. -
Method Summary
-
Constructor Details
-
DefaultDnFactory
Instantiates a new default Dn factory.- Parameters:
schemaManager- The SchemaManager instancecacheSize- The cache size used to store DNs
-
-
Method Details
-
create
Creates a Dn form a user provided Dn.- Specified by:
createin interfaceDnFactory- Parameters:
dn- the user provided Dn- Returns:
- the created Dn
- Throws:
LdapInvalidDnException- if the string isn't a valid Dn
-
create
Creates a Dn from user provided RDNs.- Specified by:
createin interfaceDnFactory- Parameters:
upRdns- the user provided RDNs- Returns:
- the created Dn
- Throws:
LdapInvalidDnException- if one of the strings isn't a valid Rdn
-