public class JarLdifSchemaLoader
extends org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_DEBUG
Speedup for DEBUG mode
|
private static String |
LDIF_EXT
ldif file extension used
|
private static org.slf4j.Logger |
LOG
static class logger
|
private static Map<String,Boolean> |
RESOURCE_MAP
a map of all the resources in this jar
|
private static String |
SEPARATOR_PATTERN
Filesystem path separator pattern, either forward slash or backslash.
|
| Constructor and Description |
|---|
JarLdifSchemaLoader()
Creates a new LDIF based SchemaLoader.
|
| Modifier and Type | Method and Description |
|---|---|
private URL |
getResource(String resource,
String msg) |
private String |
getSchemaDirectoryString(org.apache.directory.api.ldap.model.schema.registries.Schema schema)
Utility method to get a regex.Pattern fragment for the path for a schema directory.
|
private void |
initializeSchemas()
Scans for LDIF files just describing the various schema contained in
the schema repository.
|
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadAttributeTypes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadComparators(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadDitContentRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadDitStructureRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadMatchingRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadMatchingRuleUses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadNameForms(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadNormalizers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadObjectClasses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadSyntaxCheckers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
List<org.apache.directory.api.ldap.model.entry.Entry> |
loadSyntaxes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) |
addSchema, getAllEnabled, getAllSchemas, getSchema, getSchema, isRelaxed, isStrict, loadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxes, removeSchema, setRelaxedprivate static final String SEPARATOR_PATTERN
private static final String LDIF_EXT
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
public JarLdifSchemaLoader()
throws IOException,
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException - if the base directory does not exist or does not
a valid schema.ldif fileIOException - If we can't load the schemaprivate URL getResource(String resource, String msg) throws IOException
IOExceptionprivate void initializeSchemas()
throws IOException,
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionprivate String getSchemaDirectoryString(org.apache.directory.api.ldap.model.schema.registries.Schema schema)
schema - the schema to get the path forpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadComparators(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadSyntaxCheckers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadNormalizers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadMatchingRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadSyntaxes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadAttributeTypes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadMatchingRuleUses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadNameForms(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadDitContentRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadDitStructureRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionpublic List<org.apache.directory.api.ldap.model.entry.Entry> loadObjectClasses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas) throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapExceptionIOExceptionCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.