Modifier and Type | Field and Description |
---|---|
private static String |
ATTRIBUTE_TYPES_ATTR_NAME
Attribute types attribute name on the subschema entry.
|
private static String |
DIT_CONTENT_RULES_ATTR_NAME
DIT content rules attribute name on the subschema entry.
|
private static String |
DIT_STRUCTURE_RULES_ATTR_NAME
DIT structure rules attribute name on the subschema entry.
|
private static String |
LDAP_SYNTAXES_ATTR_NAME
LDAP syntaxes attribute name on the subschema entry.
|
private static String |
MATCHING_RULE_USE_ATTR_NAME
Matching rule use attribute name on the subschema entry.
|
private static String |
MATCHING_RULES_ATTR_NAME
Matching rules attribute name on the subschema entry.
|
private static String |
NAME_FORMS_ATTR_NAME
Name forms attribute name on the subschema entry.
|
private static String |
OBJECT_CLASS_ATTR_NAME
Object classes attribute name on the subschema entry.
|
private static String |
SUBSCHEMA_SUBENTRY_ATTR_NAME
Attribute on the root DSE indicating the location of the subschema entry.
|
Modifier | Constructor and Description |
---|---|
private |
SchemaFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static Schema |
createSchema(ConnectionFactory factory)
Creates a new schema.
|
static Schema |
createSchema(ConnectionFactory factory,
String entryDn)
Creates a new schema.
|
static Schema |
createSchema(InputStream is)
Creates a new schema.
|
static Schema |
createSchema(LdapEntry schemaEntry)
Creates a new schema.
|
protected static LdapEntry |
getLdapEntry(ConnectionFactory factory,
String dn,
String filter,
String[] retAttrs)
Searches for the supplied dn and returns its ldap entry.
|
private static final String SUBSCHEMA_SUBENTRY_ATTR_NAME
private static final String ATTRIBUTE_TYPES_ATTR_NAME
private static final String DIT_CONTENT_RULES_ATTR_NAME
private static final String DIT_STRUCTURE_RULES_ATTR_NAME
private static final String LDAP_SYNTAXES_ATTR_NAME
private static final String MATCHING_RULES_ATTR_NAME
private static final String MATCHING_RULE_USE_ATTR_NAME
private static final String NAME_FORMS_ATTR_NAME
private static final String OBJECT_CLASS_ATTR_NAME
public static Schema createSchema(InputStream is) throws IOException
is
- containing the schema ldifIOException
- if an error occurs reading the input streampublic static Schema createSchema(ConnectionFactory factory) throws LdapException
factory
- to obtain an LDAP connection fromLdapException
- if the search failspublic static Schema createSchema(ConnectionFactory factory, String entryDn) throws LdapException
factory
- to obtain an LDAP connection fromentryDn
- the subschema entryLdapException
- if the search failspublic static Schema createSchema(LdapEntry schemaEntry)
schemaEntry
- containing the schemaprotected static LdapEntry getLdapEntry(ConnectionFactory factory, String dn, String filter, String[] retAttrs) throws LdapException
factory
- to obtain an LDAP connection fromdn
- to search forfilter
- search filterretAttrs
- attributes to returnLdapException
- if the search failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.