/** * Checks to see if two matchingRule match exactly. * * @param matchingRule0 the first matchingRule to compare * @param matchingRule1 the second matchingRule to compare * @return true if the matchingRules match exactly, false otherwise */ public static boolean matchingRulesMatch( MatchingRule matchingRule0, MatchingRule matchingRule1 ) { // compare all common description parameters if ( !descriptionsMatch( matchingRule0, matchingRule1 ) ) { return false; } // check that the syntaxes of the matchingRules match if ( !matchingRule0.getSyntaxOid().equals( matchingRule1.getSyntaxOid() ) ) { return false; } return true; }
/** * Checks to see if two matchingRule match exactly. * * @param matchingRule0 the first matchingRule to compare * @param matchingRule1 the second matchingRule to compare * @return true if the matchingRules match exactly, false otherwise */ public static boolean matchingRulesMatch( MatchingRule matchingRule0, MatchingRule matchingRule1 ) { // compare all common description parameters if ( !descriptionsMatch( matchingRule0, matchingRule1 ) ) { return false; } // check that the syntaxes of the matchingRules match if ( !matchingRule0.getSyntaxOid().equals( matchingRule1.getSyntaxOid() ) ) { return false; } return true; }
/** * Checks to see if two matchingRule match exactly. * * @param matchingRule0 the first matchingRule to compare * @param matchingRule1 the second matchingRule to compare * @return true if the matchingRules match exactly, false otherwise */ public static boolean matchingRulesMatch( MatchingRule matchingRule0, MatchingRule matchingRule1 ) { // compare all common description parameters if ( !descriptionsMatch( matchingRule0, matchingRule1 ) ) { return false; } // check that the syntaxes of the matchingRules match if ( !matchingRule0.getSyntaxOid().equals( matchingRule1.getSyntaxOid() ) ) { return false; } return true; }
buf.append( "SYNTAX " ).append( mr.getSyntaxOid() ); prettyPrintNewLine( buf );
buf.append( "SYNTAX " ).append( mr.getSyntaxOid() ); prettyPrintNewLine( buf );
buf.append( "SYNTAX " ).append( mr.getSyntaxOid() ); prettyPrintNewLine( buf );
/** * Converts a MatchingRule into an Entry * * @param matchingRule The MatchingRule to convert * @param schema The schema containing this ObjectClass * @param schemaManager The SchemaManager * @return The converted MatchingRule * @throws LdapException If the conversion failed */ public Entry convert( MatchingRule matchingRule, Schema schema, SchemaManager schemaManager ) throws LdapException { Entry entry = new DefaultEntry( schemaManager ); entry.put( SchemaConstants.OBJECT_CLASS_AT, SchemaConstants.TOP_OC, MetaSchemaConstants.META_MATCHING_RULE_OC ); entry.put( MetaSchemaConstants.M_SYNTAX_AT, matchingRule.getSyntaxOid() ); entry.put( SchemaConstants.CREATORS_NAME_AT, schema.getOwner() ); entry.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() ); injectCommon( matchingRule, entry, schemaManager ); return entry; }
/** * Converts a MatchingRule into an Entry * * @param matchingRule The MatchingRule to convert * @param schema The schema containing this ObjectClass * @param schemaManager The SchemaManager * @return The converted MatchingRule * @throws LdapException If the conversion failed */ public Entry convert( MatchingRule matchingRule, Schema schema, SchemaManager schemaManager ) throws LdapException { Entry entry = new DefaultEntry( schemaManager ); entry.put( SchemaConstants.OBJECT_CLASS_AT, SchemaConstants.TOP_OC, MetaSchemaConstants.META_MATCHING_RULE_OC ); entry.put( MetaSchemaConstants.M_SYNTAX_AT, matchingRule.getSyntaxOid() ); entry.put( SchemaConstants.CREATORS_NAME_AT, schema.getOwner() ); entry.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() ); injectCommon( matchingRule, entry, schemaManager ); return entry; }
/** * Converts a MatchingRule into an Entry * * @param matchingRule The MatchingRule to convert * @param schema The schema containing this ObjectClass * @param schemaManager The SchemaManager * @return The converted MatchingRule * @throws LdapException If the conversion failed */ public Entry convert( MatchingRule matchingRule, Schema schema, SchemaManager schemaManager ) throws LdapException { Entry entry = new DefaultEntry( schemaManager ); entry.put( SchemaConstants.OBJECT_CLASS_AT, SchemaConstants.TOP_OC, MetaSchemaConstants.META_MATCHING_RULE_OC ); entry.put( MetaSchemaConstants.M_SYNTAX_AT, matchingRule.getSyntaxOid() ); entry.put( SchemaConstants.CREATORS_NAME_AT, schema.getOwner() ); entry.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() ); injectCommon( matchingRule, entry, schemaManager ); return entry; }
if ( !schemaManager.getLdapSyntaxRegistry().contains( matchingRule.getSyntaxOid() ) ) I18n.err( I18n.ERR_425, matchingRule.getSyntaxOid() ) );
String syntaxOid = matchingRule.getSyntaxOid();
String syntaxOid = matchingRule.getSyntaxOid();
String syntaxOid = matchingRule.getSyntaxOid();