/** * {@inheritDoc} */ public List<Entry> loadNameForms( Schema... schemas ) throws Exception { List<Entry> nameFormList = new ArrayList<Entry>(); if ( schemas == null ) { return nameFormList; } for ( Schema schema : schemas ) { File nameFormsDirectory = new File( getSchemaDirectory( schema ), SchemaConstants.NAME_FORMS_PATH ); if ( !nameFormsDirectory.exists() ) { return nameFormList; } File[] nameFormFiles = nameFormsDirectory.listFiles( ldifFilter ); for ( File ldifFile : nameFormFiles ) { LdifReader reader = new LdifReader( ldifFile ); LdifEntry entry = reader.next(); reader.close(); nameFormList.add( entry.getEntry() ); } } return nameFormList; }
/** * {@inheritDoc} */ public List<Entry> loadMatchingRules( Schema... schemas ) throws Exception { List<Entry> matchingRuleList = new ArrayList<Entry>(); if ( schemas == null ) { return matchingRuleList; } for ( Schema schema : schemas ) { File matchingRulesDirectory = new File( getSchemaDirectory( schema ), SchemaConstants.MATCHING_RULES_PATH ); if ( !matchingRulesDirectory.exists() ) { return matchingRuleList; } File[] matchingRuleFiles = matchingRulesDirectory.listFiles( ldifFilter ); for ( File ldifFile : matchingRuleFiles ) { LdifReader reader = new LdifReader( ldifFile ); LdifEntry entry = reader.next(); reader.close(); matchingRuleList.add( entry.getEntry() ); } } return matchingRuleList; }
/** * {@inheritDoc} */ public List<Entry> loadDitContentRules( Schema... schemas ) throws Exception { List<Entry> ditContentRuleList = new ArrayList<Entry>(); if ( schemas == null ) { return ditContentRuleList; } for ( Schema schema : schemas ) { File ditContentRulesDirectory = new File( getSchemaDirectory( schema ), SchemaConstants.DIT_CONTENT_RULES_PATH ); if ( !ditContentRulesDirectory.exists() ) { return ditContentRuleList; } File[] ditContentRuleFiles = ditContentRulesDirectory.listFiles( ldifFilter ); for ( File ldifFile : ditContentRuleFiles ) { LdifReader reader = new LdifReader( ldifFile ); LdifEntry entry = reader.next(); reader.close(); ditContentRuleList.add( entry.getEntry() ); } } return ditContentRuleList; }
/** * {@inheritDoc} */ public List<Entry> loadDitStructureRules( Schema... schemas ) throws Exception { List<Entry> ditStructureRuleList = new ArrayList<Entry>(); if ( schemas == null ) { return ditStructureRuleList; } for ( Schema schema : schemas ) { File ditStructureRulesDirectory = new File( getSchemaDirectory( schema ), SchemaConstants.DIT_STRUCTURE_RULES_PATH ); if ( !ditStructureRulesDirectory.exists() ) { return ditStructureRuleList; } File[] ditStructureRuleFiles = ditStructureRulesDirectory.listFiles( ldifFilter ); for ( File ldifFile : ditStructureRuleFiles ) { LdifReader reader = new LdifReader( ldifFile ); LdifEntry entry = reader.next(); reader.close(); ditStructureRuleList.add( entry.getEntry() ); } } return ditStructureRuleList; }
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close();
/** * {@inheritDoc} */ public List<Entry> loadComparators( Schema... schemas ) throws Exception { List<Entry> comparatorList = new ArrayList<Entry>(); if ( schemas == null ) { return comparatorList; } for ( Schema schema : schemas ) { File comparatorsDirectory = new File( getSchemaDirectory( schema ), SchemaConstants.COMPARATORS_PATH ); if ( !comparatorsDirectory.exists() ) { return comparatorList; } File[] comparators = comparatorsDirectory.listFiles( ldifFilter ); for ( File ldifFile : comparators ) { LdifReader reader = new LdifReader( ldifFile ); LdifEntry entry = reader.next(); reader.close(); comparatorList.add( entry.getEntry() ); } } return comparatorList; }
/** * {@inheritDoc} */ public List<Entry> loadSyntaxCheckers( Schema... schemas ) throws Exception { List<Entry> syntaxCheckerList = new ArrayList<Entry>(); if ( schemas == null ) { return syntaxCheckerList; } for ( Schema schema : schemas ) { File syntaxCheckersDirectory = new File( getSchemaDirectory( schema ), SchemaConstants.SYNTAX_CHECKERS_PATH ); if ( !syntaxCheckersDirectory.exists() ) { return syntaxCheckerList; } File[] syntaxCheckerFiles = syntaxCheckersDirectory.listFiles( ldifFilter ); for ( File ldifFile : syntaxCheckerFiles ) { LdifReader reader = new LdifReader( ldifFile ); LdifEntry entry = reader.next(); reader.close(); syntaxCheckerList.add( entry.getEntry() ); } } return syntaxCheckerList; }
/** * {@inheritDoc} */ public List<Entry> loadNormalizers( Schema... schemas ) throws Exception { List<Entry> normalizerList = new ArrayList<Entry>(); if ( schemas == null ) { return normalizerList; } for ( Schema schema : schemas ) { File normalizersDirectory = new File( getSchemaDirectory( schema ), SchemaConstants.NORMALIZERS_PATH ); if ( !normalizersDirectory.exists() ) { return normalizerList; } File[] normalizerFiles = normalizersDirectory.listFiles( ldifFilter ); for ( File ldifFile : normalizerFiles ) { LdifReader reader = new LdifReader( ldifFile ); LdifEntry entry = reader.next(); reader.close(); normalizerList.add( entry.getEntry() ); } } return normalizerList; }
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close();
/** * {@inheritDoc} */ public List<Entry> loadSyntaxes( Schema... schemas ) throws Exception { List<Entry> syntaxList = new ArrayList<Entry>(); if ( schemas == null ) { return syntaxList; } for ( Schema schema : schemas ) { File syntaxesDirectory = new File( getSchemaDirectory( schema ), SchemaConstants.SYNTAXES_PATH ); if ( !syntaxesDirectory.exists() ) { return syntaxList; } File[] syntaxFiles = syntaxesDirectory.listFiles( ldifFilter ); for ( File ldifFile : syntaxFiles ) { LdifReader reader = new LdifReader( ldifFile ); LdifEntry entry = reader.next(); reader.close(); syntaxList.add( entry.getEntry() ); } } return syntaxList; }
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close();
LdifEntry entry = reader.next(); reader.close(); Schema schema = getSchema( entry.getEntry() );