/** * {@inheritDoc} */ @Override public void loadSchemaRelaxed() throws LdapException { loadSchema( new DefaultSchemaLoader( this, true ) ); }
loadAttributeTypes( attributeTypes ); loadComparators( comparators ); loadDitContentRules( ditContentRules ); loadDitStructureRules( ditStructureRules ); loadLdapSyntaxes( ldapSytaxes ); loadMatchingRules( matchingRules ); loadMatchingRuleUses( matchingRuleUse ); loadNormalizers( normalizers ); loadNameForms( nameForms ); loadObjectClasses( objectClasses ); loadSyntaxCheckers( syntaxCheckers );
setRelaxed( relaxed ); setQuirksMode( relaxed ); if ( isApacheDs( rootDse ) ) subschemaSubentryAttribute.getString() ); loadSchemas(); subschemaSubentryAttribute.getString() ); loadSchemas();
/** * {@inheritDoc} */ @Override public List<Entry> loadNormalizers( Schema... schemas ) throws LdapException, IOException { List<Entry> normalizerEntries = new ArrayList<>(); if ( schemas == null ) { return normalizerEntries; } for ( Schema schema : schemas ) { Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent(); for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers ) { SchemaObject schemaObject = schemaObjectWrapper.get(); if ( schemaObject instanceof NormalizerDescription ) { NormalizerDescription normalizerDescription = ( NormalizerDescription ) schemaObject; Entry normalizerEntry = getEntry( normalizerDescription ); normalizerEntries.add( normalizerEntry ); } } } return normalizerEntries; }
loadAttributeTypes( attributeTypes ); loadComparators( comparators ); loadDitContentRules( ditContentRules ); loadDitStructureRules( ditStructureRules ); loadLdapSyntaxes( ldapSytaxes ); loadMatchingRules( matchingRules ); loadMatchingRuleUses( matchingRuleUse ); loadNormalizers( normalizers ); loadNameForms( nameForms ); loadObjectClasses( objectClasses ); loadSyntaxCheckers( syntaxCheckers );
setRelaxed( relaxed ); setQuirksMode( relaxed ); if ( isApacheDs( rootDse ) ) subschemaSubentryAttribute.getString() ); loadSchemas(); subschemaSubentryAttribute.getString() ); loadSchemas();
/** * {@inheritDoc} */ @Override public List<Entry> loadComparators( Schema... schemas ) throws LdapException, IOException { List<Entry> comparatorEntries = new ArrayList<>(); if ( schemas == null ) { return comparatorEntries; } for ( Schema schema : schemas ) { Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent(); for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers ) { SchemaObject schemaObject = schemaObjectWrapper.get(); if ( schemaObject instanceof LdapComparatorDescription ) { LdapComparatorDescription ldapComparatorDescription = ( LdapComparatorDescription ) schemaObject; Entry lcEntry = getEntry( ldapComparatorDescription ); comparatorEntries.add( lcEntry ); } } } return comparatorEntries; }
loadAttributeTypes( attributeTypes ); loadComparators( comparators ); loadDitContentRules( ditContentRules ); loadDitStructureRules( ditStructureRules ); loadLdapSyntaxes( ldapSytaxes ); loadMatchingRules( matchingRules ); loadMatchingRuleUses( matchingRuleUse ); loadNormalizers( normalizers ); loadNameForms( nameForms ); loadObjectClasses( objectClasses ); loadSyntaxCheckers( syntaxCheckers );
setRelaxed( relaxed ); setQuirksMode( relaxed ); if ( isApacheDs( rootDse ) ) subschemaSubentryAttribute.getString() ); loadSchemas(); subschemaSubentryAttribute.getString() ); loadSchemas();
/** * {@inheritDoc} */ @Override public void loadSchemaRelaxed() throws LdapException { loadSchema( new DefaultSchemaLoader( this, true ) ); }
/** * {@inheritDoc} */ @Override public List<Entry> loadComparators( Schema... schemas ) throws LdapException, IOException { List<Entry> comparatorEntries = new ArrayList<>(); if ( schemas == null ) { return comparatorEntries; } for ( Schema schema : schemas ) { Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent(); for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers ) { SchemaObject schemaObject = schemaObjectWrapper.get(); if ( schemaObject instanceof LdapComparatorDescription ) { LdapComparatorDescription ldapComparatorDescription = ( LdapComparatorDescription ) schemaObject; Entry lcEntry = getEntry( ldapComparatorDescription ); comparatorEntries.add( lcEntry ); } } } return comparatorEntries; }
/** * {@inheritDoc} */ @Override public void loadSchema() throws LdapException { loadSchema( new DefaultSchemaLoader( this ) ); }
/** * {@inheritDoc} */ @Override public List<Entry> loadNormalizers( Schema... schemas ) throws LdapException, IOException { List<Entry> normalizerEntries = new ArrayList<>(); if ( schemas == null ) { return normalizerEntries; } for ( Schema schema : schemas ) { Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent(); for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers ) { SchemaObject schemaObject = schemaObjectWrapper.get(); if ( schemaObject instanceof NormalizerDescription ) { NormalizerDescription normalizerDescription = ( NormalizerDescription ) schemaObject; Entry normalizerEntry = getEntry( normalizerDescription ); normalizerEntries.add( normalizerEntry ); } } } return normalizerEntries; }
/** * {@inheritDoc} */ @Override public void loadSchema() throws LdapException { loadSchema( new DefaultSchemaLoader( this ) ); }
/** * {@inheritDoc} */ @Override public List<Entry> loadNormalizers( Schema... schemas ) throws LdapException, IOException { List<Entry> normalizerEntries = new ArrayList<>(); if ( schemas == null ) { return normalizerEntries; } for ( Schema schema : schemas ) { Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent(); for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers ) { SchemaObject schemaObject = schemaObjectWrapper.get(); if ( schemaObject instanceof NormalizerDescription ) { NormalizerDescription normalizerDescription = ( NormalizerDescription ) schemaObject; Entry normalizerEntry = getEntry( normalizerDescription ); normalizerEntries.add( normalizerEntry ); } } } return normalizerEntries; }
/** * {@inheritDoc} */ @Override public void loadSchema() throws LdapException { loadSchema( new DefaultSchemaLoader( this ) ); }
/** * {@inheritDoc} */ @Override public List<Entry> loadComparators( Schema... schemas ) throws LdapException, IOException { List<Entry> comparatorEntries = new ArrayList<>(); if ( schemas == null ) { return comparatorEntries; } for ( Schema schema : schemas ) { Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent(); for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers ) { SchemaObject schemaObject = schemaObjectWrapper.get(); if ( schemaObject instanceof LdapComparatorDescription ) { LdapComparatorDescription ldapComparatorDescription = ( LdapComparatorDescription ) schemaObject; Entry lcEntry = getEntry( ldapComparatorDescription ); comparatorEntries.add( lcEntry ); } } } return comparatorEntries; }
/** * {@inheritDoc} */ @Override public void loadSchemaRelaxed() throws LdapException { loadSchema( new DefaultSchemaLoader( this, true ) ); }
/** * {@inheritDoc} */ @Override public List<Entry> loadSyntaxCheckers( Schema... schemas ) throws LdapException, IOException { List<Entry> syntaxCheckerEntries = new ArrayList<>(); if ( schemas == null ) { return syntaxCheckerEntries; } for ( Schema schema : schemas ) { Set<SchemaObjectWrapper> schemaObjectWrappers = schema.getContent(); for ( SchemaObjectWrapper schemaObjectWrapper : schemaObjectWrappers ) { SchemaObject schemaObject = schemaObjectWrapper.get(); if ( schemaObject instanceof SyntaxCheckerDescription ) { SyntaxCheckerDescription syntaxCheckerDescription = ( SyntaxCheckerDescription ) schemaObject; Entry syntaxCheckerEntry = getEntry( syntaxCheckerDescription ); syntaxCheckerEntries.add( syntaxCheckerEntry ); } } } return syntaxCheckerEntries; }
/** * Opens the dao's connection. Dn and credentials are used for authentication. Throws an {@link LdapDaoException} in * case of IO error or invalid dn. * */ public void connect(String dn, String credentials) { BindRequest bindRequest = new BindRequestImpl(); bindRequest.setCredentials(credentials); try { bindRequest.setDn(new Dn(dn)); connection.connect(); connection.bind(bindRequest); ((LdapNetworkConnection) connection).loadSchema(new DefaultSchemaLoader(connection)); } catch (Exception e) { throw new LdapDaoException(e); } }