Checkpoint commit for OPENDJ-1308 Migrate schema support
* Replace EqualityMatchingRule class by MatchingRule interface
(there are still few occurences of EqualityMatchingRule to address later)
* Add replacements for matching rules, syntaxes and attribute types
in replace.rb script
| | |
| | | |
| | | # All directories that contains java code |
| | | JAVA_DIRS = ["src/server", "src/quicksetup", "src/ads", "src/guitools", "tests/unit-tests-testng/src"] |
| | | TOOLS_DIR = ["src/server/org/opends/server/tools", "src/quicksetup", "src/ads", "src/guitools", |
| | | "tests/unit-tests-testng/src/server/org/opends/server/tools" ] |
| | | SNMP_DIR = ["src/snmp/src"] |
| | | DSML_DIR = ["src/dsml/org"] |
| | | |
| | | # Replacement for new config framework |
| | | CONFIG_EXC = { |
| | | # Replacement for matching rules |
| | | MRULES = { |
| | | :dirs => JAVA_DIRS + SNMP_DIR, |
| | | :extensions => ["java"], |
| | | :stopwords => ["MatchingRule"], |
| | | :replacements => |
| | | [ |
| | | |
| | | /import org.opends.server.api.EqualityMatchingRule;/, |
| | | 'import org.opends.server.api.MatchingRule;', |
| | | |
| | | /\bEqualityMatchingRule\b/, |
| | | "MatchingRule", |
| | | |
| | | ] |
| | | } |
| | | |
| | | # Replacement for syntaxes |
| | | SYNTAX = { |
| | | :dirs => JAVA_DIRS + SNMP_DIR, |
| | | :extensions => ["java"], |
| | | :stopwords => ["Syntax"], |
| | | :replacements => |
| | | [ |
| | | |
| | | /import org.opends.server.api.AttributeSyntax;/, |
| | | 'import org.forgerock.opendj.ldap.schema.Syntax;', |
| | | |
| | | /package org.opends.server.api;/, |
| | | "package org.opends.server.api;\n\nimport org.forgerock.opendj.ldap.schema.Syntax;", |
| | | |
| | | /import org.opends.server.api.\*;/, |
| | | "import org.forgerock.opendj.ldap.schema.Syntax;\nimport org.opends.server.api.*;", |
| | | |
| | | /\bAttributeSyntax\b<[^>]+>/, |
| | | 'Syntax', |
| | | |
| | | /\bAttributeSyntax\b/, |
| | | 'Syntax' |
| | | ] |
| | | } |
| | | |
| | | # Replacement for attribute type |
| | | ATTRTYPE = { |
| | | :dirs => JAVA_DIRS + SNMP_DIR, |
| | | :extensions => ["java"], |
| | | :stopwords => [], |
| | | :replacements => |
| | | [ |
| | | /import org.opends.server.config.ConfigException;/, |
| | | 'import org.forgerock.opendj.config.server.ConfigException;', |
| | | |
| | | /import org.opends.server.types.AttributeType;/, |
| | | 'import org.forgerock.opendj.ldap.schema.AttributeType;', |
| | | |
| | | /package org.opends.server.types;/, |
| | | "package org.opends.server.types;\n\nimport org.forgerock.opendj.ldap.schema.AttributeType;", |
| | | |
| | | /import org.opends.server.types.\*;/, |
| | | "import org.forgerock.opendj.ldap.schema.AttributeType;\nimport org.opends.server.types.*;", |
| | | |
| | | ] |
| | | } |
| | | |
| | | |
| | | # Replacement for new config framework |
| | | NEW_CONFIG = { |
| | | :dirs => JAVA_DIRS + SNMP_DIR, |
| | |
| | | } |
| | | |
| | | # List of replacements to run |
| | | REPLACEMENTS = [ CONFIG_EXC ] |
| | | REPLACEMENTS = [ MRULES ] |
| | | |
| | | |
| | | ################################### Processing methods ######################################## |
| | |
| | | import org.forgerock.i18n.LocalizableMessageBuilder; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | |
| | | { |
| | | approximateElements.add(matchingRule); |
| | | } |
| | | else if (matchingRule instanceof EqualityMatchingRule) |
| | | else if (matchingRule instanceof MatchingRule) |
| | | { |
| | | equalityElements.add(matchingRule); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | private EqualityMatchingRule getEqualityMatchingRule() |
| | | private MatchingRule getEqualityMatchingRule() |
| | | { |
| | | if (equality.getSelectedIndex() == 0) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | return (EqualityMatchingRule)equality.getSelectedItem(); |
| | | return (MatchingRule)equality.getSelectedItem(); |
| | | } |
| | | } |
| | | |
| | |
| | | static LocalizableMessage getTypeValue(MatchingRule matchingRule) |
| | | { |
| | | LocalizableMessage text; |
| | | if (matchingRule instanceof EqualityMatchingRule) |
| | | String matchingRuleName = matchingRule.getClass().getSimpleName().toLowerCase(); |
| | | if (matchingRuleName.contains("equality")) |
| | | { |
| | | text = INFO_CTRL_PANEL_INDEX_EQUALITY.get(); |
| | | } |
| | | else if (matchingRule instanceof OrderingMatchingRule) |
| | | else if (matchingRuleName.contains("ordering")) |
| | | { |
| | | text = INFO_CTRL_PANEL_INDEX_ORDERING.get(); |
| | | } |
| | | else if (matchingRule instanceof SubstringMatchingRule) |
| | | else if (matchingRuleName.contains("substring")) |
| | | { |
| | | text = INFO_CTRL_PANEL_INDEX_SUBSTRING.get(); |
| | | } |
| | | else if (matchingRule instanceof ApproximateMatchingRule) |
| | | else if (matchingRuleName.contains("approximate")) |
| | | { |
| | | text = INFO_CTRL_PANEL_INDEX_APPROXIMATE.get(); |
| | | } |
| | |
| | | { |
| | | approximateElements.add(matchingRule); |
| | | } |
| | | else if (matchingRule instanceof EqualityMatchingRule) |
| | | else if (matchingRule instanceof MatchingRule) |
| | | { |
| | | equalityElements.add(matchingRule); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | private EqualityMatchingRule getEqualityMatchingRule() |
| | | private MatchingRule getEqualityMatchingRule() |
| | | { |
| | | if (equality.getSelectedIndex() == 0) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | return (EqualityMatchingRule)equality.getSelectedItem(); |
| | | return (MatchingRule)equality.getSelectedItem(); |
| | | } |
| | | } |
| | | |
| | |
| | | * attributes with this syntax, or {@code null} if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public abstract EqualityMatchingRule getEqualityMatchingRule(); |
| | | public abstract MatchingRule getEqualityMatchingRule(); |
| | | |
| | | |
| | | |
| | |
| | | final AttributeValue v = a.iterator().next(); |
| | | try |
| | | { |
| | | EqualityMatchingRule rule = attributeType.getEqualityMatchingRule(); |
| | | MatchingRule rule = attributeType.getEqualityMatchingRule(); |
| | | ByteString normValue = rule.normalizeAttributeValue(v.getValue()); |
| | | timeValue = GeneralizedTimeSyntax.decodeGeneralizedTimeValue(normValue); |
| | | } |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.*; |
| | | |
| | |
| | | if (pattern.size() == 1) |
| | | { |
| | | // Handle this just like an equality filter. |
| | | EqualityMatchingRule rule = type.getEqualityMatchingRule(); |
| | | MatchingRule rule = type.getEqualityMatchingRule(); |
| | | ByteString thatNormValue = rule.normalizeAttributeValue(value.getValue()); |
| | | return rule.getAssertion(pattern.get(0)).matches(thatNormValue).toBoolean(); |
| | | } |
| | |
| | | try |
| | | { |
| | | // Make a key from the normalized assertion value. |
| | | EqualityMatchingRule equalityRule = equalityFilter.getAttributeType(). |
| | | MatchingRule equalityRule = equalityFilter.getAttributeType(). |
| | | getEqualityMatchingRule(); |
| | | byte[] keyBytes = equalityRule.normalizeAssertionValue(equalityFilter. |
| | | getAssertionValue().getValue()).toByteArray(); |
| | |
| | | * 1. There is no matching rule provided |
| | | * 2. The matching rule specified is actually the default equality. |
| | | */ |
| | | EqualityMatchingRule eqRule = |
| | | MatchingRule eqRule = |
| | | indexConfig.getAttribute().getEqualityMatchingRule(); |
| | | if (nOID == null |
| | | || nOID.equals(eqRule.getOID()) |
| | |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.opendj.ldap.schema.Schema; |
| | | import org.forgerock.opendj.ldap.spi.IndexingOptions; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.ExtensibleIndexer; |
| | | import org.opends.server.types.AttributeType; |
| | | |
| | |
| | | * The attribute type equality matching rule which is also the |
| | | * comparator for the index keys generated by this class. |
| | | */ |
| | | private EqualityMatchingRule equalityRule; |
| | | private MatchingRule equalityRule; |
| | | |
| | | /** |
| | | * Create a new attribute equality indexer for the given index configuration. |
| | |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.*; |
| | |
| | | } |
| | | |
| | | EntryIDSet entryIDList; |
| | | |
| | | try |
| | | { |
| | | JebFormat.entryIDListFromDatabase(data.getData()); |
| | | entryIDList = new EntryIDSet(key.getData(), data.getData()); |
| | | } |
| | | catch (Exception e) |
| | |
| | | EntryIDSet entryIDList; |
| | | try |
| | | { |
| | | JebFormat.entryIDListFromDatabase(data.getData()); |
| | | entryIDList = new EntryIDSet(key.getData(), data.getData()); |
| | | } |
| | | catch (Exception e) |
| | |
| | | EntryIDSet entryIDList; |
| | | try |
| | | { |
| | | JebFormat.entryIDListFromDatabase(data.getData()); |
| | | entryIDList = new EntryIDSet(key.getData(), data.getData()); |
| | | } |
| | | catch (Exception e) |
| | |
| | | for (Attribute attr : attrList) |
| | | { |
| | | final AttributeType attrType = attr.getAttributeType(); |
| | | EqualityMatchingRule equalityRule = attrType.getEqualityMatchingRule(); |
| | | MatchingRule equalityRule = attrType.getEqualityMatchingRule(); |
| | | for (AttributeValue value : attr) |
| | | { |
| | | final ByteString bsValue = value.getValue(); |
| | |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.util.Reject; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | |
| | | private final byte matchType; |
| | | |
| | | // The equality matching rule for this matched values filter. |
| | | private EqualityMatchingRule equalityMatchingRule; |
| | | private MatchingRule equalityMatchingRule; |
| | | |
| | | // The set of normalized subAny values for this matched values filter. |
| | | private List<ByteString> normalizedSubAny; |
| | |
| | | * @return The equality matching rule that should be used for this matched |
| | | * values filter, or <CODE>null</CODE> if there is none. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | if (equalityMatchingRule == null) |
| | | { |
| | |
| | | import org.opends.server.api.ConnectionHandler; |
| | | import org.opends.server.api.DirectoryServerMBean; |
| | | import org.opends.server.api.EntryCache; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.ExportTaskListener; |
| | | import org.opends.server.api.ExtendedOperationHandler; |
| | | import org.opends.server.api.ExtensibleMatchingRule; |
| | |
| | | * @return The set of equality matching rules registered with the Directory |
| | | * Server. |
| | | */ |
| | | public static ConcurrentMap<String, EqualityMatchingRule> |
| | | public static ConcurrentMap<String, MatchingRule> |
| | | getEqualityMatchingRules() |
| | | { |
| | | return directoryServer.schema.getEqualityMatchingRules(); |
| | |
| | | * @return The requested equality matching rule, or <CODE>null</CODE> if no |
| | | * such matching rule has been defined in the server. |
| | | */ |
| | | public static EqualityMatchingRule getEqualityMatchingRule(String lowerName) |
| | | public static MatchingRule getEqualityMatchingRule(String lowerName) |
| | | { |
| | | return directoryServer.schema.getEqualityMatchingRule(lowerName); |
| | | } |
| | |
| | | * <CODE>overwriteExisting</CODE> flag is set to |
| | | * <CODE>false</CODE> |
| | | */ |
| | | public static void registerEqualityMatchingRule(EqualityMatchingRule |
| | | public static void registerEqualityMatchingRule(MatchingRule |
| | | matchingRule, |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | |
| | | * |
| | | * @param matchingRule The matching rule to deregister with the server. |
| | | */ |
| | | public static void deregisterEqualityMatchingRule(EqualityMatchingRule |
| | | public static void deregisterEqualityMatchingRule(MatchingRule |
| | | matchingRule) |
| | | { |
| | | directoryServer.schema.deregisterEqualityMatchingRule(matchingRule); |
| | |
| | | import org.opends.server.admin.server.ServerManagementContext; |
| | | import org.opends.server.admin.std.meta.MatchingRuleCfgDefn; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.MatchingRuleFactory; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | |
| | | continue; |
| | | } |
| | | |
| | | EqualityMatchingRule emr = at.getEqualityMatchingRule(); |
| | | MatchingRule emr = at.getEqualityMatchingRule(); |
| | | if ((emr != null) && oid.equals(emr.getOID())) |
| | | { |
| | | LocalizableMessage message = |
| | |
| | | continue; |
| | | } |
| | | |
| | | EqualityMatchingRule emr = at.getEqualityMatchingRule(); |
| | | MatchingRule emr = at.getEqualityMatchingRule(); |
| | | if ((emr != null) && oid.equals(emr.getOID())) |
| | | { |
| | | LocalizableMessage message = |
| | |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.admin.std.server.NumSubordinatesVirtualAttributeCfg; |
| | | import org.opends.server.api.Backend; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.VirtualAttributeProvider; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.SearchOperation; |
| | |
| | | AttributeValue value) |
| | | { |
| | | Backend backend = DirectoryServer.getBackend(entry.getName()); |
| | | EqualityMatchingRule eqRule = rule.getAttributeType().getEqualityMatchingRule(); |
| | | MatchingRule eqRule = rule.getAttributeType().getEqualityMatchingRule(); |
| | | |
| | | try |
| | | { |
| | |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.std.server.GroupImplementationCfg; |
| | | import org.opends.server.admin.std.server.StaticGroupImplementationCfg; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.Group; |
| | | import org.opends.server.core.ModifyOperationBasis; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | { |
| | | for (Attribute a : memberAttrList) |
| | | { |
| | | EqualityMatchingRule eqRule = |
| | | MatchingRule eqRule = |
| | | a.getAttributeType().getEqualityMatchingRule(); |
| | | for (AttributeValue v : a) |
| | | { |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default substring matching rule for this syntax. |
| | | private SubstringMatchingRule defaultSubstringMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | AttributeType superiorType = null; |
| | | AttributeSyntax<?> syntax = DirectoryServer.getDefaultAttributeSyntax(); |
| | | ApproximateMatchingRule approximateMatchingRule = null; |
| | | EqualityMatchingRule equalityMatchingRule = null; |
| | | MatchingRule equalityMatchingRule = null; |
| | | OrderingMatchingRule orderingMatchingRule = null; |
| | | SubstringMatchingRule substringMatchingRule = null; |
| | | AttributeUsage attributeUsage = AttributeUsage.USER_APPLICATIONS; |
| | |
| | | // for this attribute type. |
| | | StringBuilder woidBuffer = new StringBuilder(); |
| | | pos = readWOID(lowerStr, woidBuffer, pos); |
| | | EqualityMatchingRule emr = |
| | | schema.getEqualityMatchingRule(woidBuffer.toString()); |
| | | MatchingRule emr = |
| | | schema.getMatchingRule(woidBuffer.toString()); |
| | | if (emr == null) |
| | | { |
| | | // This is bad because we have no idea what the equality matching |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | |
| | | |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | |
| | | |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | |
| | | |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.CertificateAttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.CountryStringAttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private ApproximateMatchingRule defaultApproximateMatchingRule; |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private ApproximateMatchingRule defaultApproximateMatchingRule; |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.DirectoryStringAttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | private DirectoryStringAttributeSyntaxCfg currentConfig; |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default substring matching rule for this syntax. |
| | | private SubstringMatchingRule defaultSubstringMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private ApproximateMatchingRule defaultApproximateMatchingRule; |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.JPEGAttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return subSyntax.getEqualityMatchingRule(); |
| | | } |
| | |
| | | private String definition; |
| | | |
| | | //The equality matching rule. |
| | | private EqualityMatchingRule equalityMatchingRule; |
| | | private MatchingRule equalityMatchingRule; |
| | | |
| | | //The substring matching rule. |
| | | private SubstringMatchingRule substringMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | if(equalityMatchingRule == null) |
| | | { |
| | |
| | | private String oid; |
| | | |
| | | //The equality matching rule. |
| | | private EqualityMatchingRule equalityMatchingRule; |
| | | private MatchingRule equalityMatchingRule; |
| | | |
| | | //The substring matching rule. |
| | | private SubstringMatchingRule substringMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | if(equalityMatchingRule == null) |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | import java.util.concurrent.CopyOnWriteArrayList; |
| | | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | |
| | | |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.ByteSequence; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | |
| | | import static org.opends.messages.SchemaMessages.*; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessageBuilder; |
| | | |
| | | import static org.opends.server.schema.SchemaConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default substring matching rule for this syntax. |
| | | private SubstringMatchingRule defaultSubstringMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default substring matching rule for this syntax. |
| | | private SubstringMatchingRule defaultSubstringMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default substring matching rule for this syntax. |
| | | private SubstringMatchingRule defaultSubstringMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default substring matching rule for this syntax. |
| | | private SubstringMatchingRule defaultSubstringMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private ApproximateMatchingRule defaultApproximateMatchingRule; |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private ApproximateMatchingRule defaultApproximateMatchingRule; |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private ApproximateMatchingRule defaultApproximateMatchingRule; |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * default. |
| | | */ |
| | | @Override |
| | | public EqualityMatchingRule getEqualityMatchingRule() { |
| | | public MatchingRule getEqualityMatchingRule() { |
| | | |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.TelephoneNumberAttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private boolean strictMode; |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default substring matching rule for this syntax. |
| | | private SubstringMatchingRule defaultSubstringMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | // The default ordering matching rule for this syntax. |
| | | private OrderingMatchingRule defaultOrderingMatchingRule; |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.opends.server.admin.std.server.AttributeSyntaxCfg; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | // The default equality matching rule for this syntax. |
| | | private EqualityMatchingRule defaultEqualityMatchingRule; |
| | | private MatchingRule defaultEqualityMatchingRule; |
| | | |
| | | /** |
| | | * Creates a new instance of this syntax. Note that the only thing that |
| | |
| | | * attributes with this syntax, or <CODE>null</CODE> if equality |
| | | * matches will not be allowed for this type by default. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.opendj.ldap.schema.AttributeUsage; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | private boolean mayHaveSubordinateTypes; |
| | | |
| | | // The equality matching rule for this attribute type. |
| | | private final EqualityMatchingRule equalityMatchingRule; |
| | | private final MatchingRule equalityMatchingRule; |
| | | |
| | | // The ordering matching rule for this attribute type. |
| | | private final OrderingMatchingRule orderingMatchingRule; |
| | |
| | | AttributeSyntax<?> syntax, |
| | | ApproximateMatchingRule |
| | | approximateMatchingRule, |
| | | EqualityMatchingRule equalityMatchingRule, |
| | | MatchingRule equalityMatchingRule, |
| | | OrderingMatchingRule orderingMatchingRule, |
| | | SubstringMatchingRule substringMatchingRule, |
| | | AttributeUsage attributeUsage, |
| | |
| | | * @return The matching rule that should be used for equality |
| | | * matching with this attribute type. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | public MatchingRule getEqualityMatchingRule() |
| | | { |
| | | return equalityMatchingRule; |
| | | } |
| | |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | |
| | | import static org.opends.messages.CoreMessages.*; |
| | | |
| | |
| | | { |
| | | if (normalizedValue == null) |
| | | { |
| | | EqualityMatchingRule equalityMatchingRule = attributeType |
| | | MatchingRule equalityMatchingRule = attributeType |
| | | .getEqualityMatchingRule(); |
| | | if (equalityMatchingRule == null) |
| | | { |
| | |
| | | @Override |
| | | public int hashCode() |
| | | { |
| | | EqualityMatchingRule equalityMatchingRule = attributeType |
| | | .getEqualityMatchingRule(); |
| | | EqualityMatchingRule equalityMatchingRule = |
| | | (EqualityMatchingRule) attributeType.getEqualityMatchingRule(); |
| | | |
| | | ByteString valueToHash; |
| | | try |
| | |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.ChangeNotificationListener; |
| | | import org.opends.server.api.ConfigHandler; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.ExtendedOperationHandler; |
| | | import org.opends.server.api.InvokableComponent; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SASLMechanismHandler; |
| | | import org.opends.server.api.ServerShutdownListener; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | * <CODE>null</CODE> if no such matching rule has been |
| | | * defined in the server. |
| | | */ |
| | | public static EqualityMatchingRule |
| | | public static MatchingRule |
| | | getEqualityMatchingRule(String lowerName) |
| | | { |
| | | return DirectoryServer.getEqualityMatchingRule(lowerName); |
| | |
| | | import org.forgerock.opendj.ldap.ByteStringBuilder; |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | AttributeType type) |
| | | { |
| | | final OrderingMatchingRule omr = type.getOrderingMatchingRule(); |
| | | final EqualityMatchingRule emr = type.getEqualityMatchingRule(); |
| | | final MatchingRule emr = type.getEqualityMatchingRule(); |
| | | |
| | | ByteString val1; |
| | | ByteString val2; |
| | |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.ExtensibleMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.ExtensibleMatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | * The set of equality matching rules for this schema, mapped between the |
| | | * lowercase names and OID for the definition and the matching rule itself. |
| | | */ |
| | | private ConcurrentHashMap<String,EqualityMatchingRule> |
| | | private ConcurrentHashMap<String,MatchingRule> |
| | | equalityMatchingRules; |
| | | |
| | | /** |
| | |
| | | approximateMatchingRules = |
| | | new ConcurrentHashMap<String,ApproximateMatchingRule>(); |
| | | equalityMatchingRules = |
| | | new ConcurrentHashMap<String,EqualityMatchingRule>(); |
| | | new ConcurrentHashMap<String,MatchingRule>(); |
| | | orderingMatchingRules = |
| | | new ConcurrentHashMap<String,OrderingMatchingRule>(); |
| | | substringMatchingRules = |
| | |
| | | else if (matchingRule instanceof EqualityMatchingRule) |
| | | { |
| | | registerEqualityMatchingRule( |
| | | (EqualityMatchingRule) matchingRule, overwriteExisting); |
| | | matchingRule, overwriteExisting); |
| | | } |
| | | else if (matchingRule instanceof OrderingMatchingRule) |
| | | { |
| | |
| | | deregisterApproximateMatchingRule( |
| | | (ApproximateMatchingRule) matchingRule); |
| | | } |
| | | else if (matchingRule instanceof EqualityMatchingRule) |
| | | else if (matchingRule instanceof MatchingRule) |
| | | { |
| | | deregisterEqualityMatchingRule( |
| | | (EqualityMatchingRule) matchingRule); |
| | | matchingRule); |
| | | } |
| | | else if (matchingRule instanceof OrderingMatchingRule) |
| | | { |
| | |
| | | * |
| | | * @return The equality matching rule definitions for this schema. |
| | | */ |
| | | public ConcurrentHashMap<String,EqualityMatchingRule> |
| | | public ConcurrentHashMap<String,MatchingRule> |
| | | getEqualityMatchingRules() |
| | | { |
| | | return equalityMatchingRules; |
| | |
| | | * equality matching rule is registered with the provided |
| | | * name or OID. |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule( |
| | | public MatchingRule getEqualityMatchingRule( |
| | | String lowerName) |
| | | { |
| | | return equalityMatchingRules.get(lowerName); |
| | |
| | | * <CODE>overwriteExisting</CODE> flag |
| | | * is set to <CODE>false</CODE> |
| | | */ |
| | | public void registerEqualityMatchingRule( |
| | | EqualityMatchingRule matchingRule, |
| | | boolean overwriteExisting) |
| | | public void registerEqualityMatchingRule(MatchingRule matchingRule, boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | synchronized (matchingRules) |
| | |
| | | * with this schema. |
| | | */ |
| | | public void deregisterEqualityMatchingRule( |
| | | EqualityMatchingRule matchingRule) |
| | | MatchingRule matchingRule) |
| | | { |
| | | synchronized (matchingRules) |
| | | { |
| | |
| | | { |
| | | final AttributeType attrType = attr.getAttributeType(); |
| | | Reject.ifFalse(attrType.isObjectClass()); |
| | | final EqualityMatchingRule eqRule = attrType.getEqualityMatchingRule(); |
| | | final MatchingRule eqRule = attrType.getEqualityMatchingRule(); |
| | | |
| | | for (AttributeValue v : attr) |
| | | { |
| | |
| | | ERR_MODIFY_INCREMENT_REQUIRES_SINGLE_VALUE.get(entryDN, attr.getName())); |
| | | } |
| | | |
| | | EqualityMatchingRule eqRule = attr.getAttributeType().getEqualityMatchingRule(); |
| | | MatchingRule eqRule = attr.getAttributeType().getEqualityMatchingRule(); |
| | | AttributeValue v = attr.iterator().next(); |
| | | |
| | | long incrementValue; |
| | |
| | | import org.opends.server.admin.server.AdminTestCaseUtils; |
| | | import org.opends.server.admin.std.meta.SaltedMD5PasswordStorageSchemeCfgDefn; |
| | | import org.opends.server.admin.std.server.SaltedMD5PasswordStorageSchemeCfg; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.extensions.SaltedMD5PasswordStorageScheme; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new AuthPasswordEqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new BitStringEqualityMatchingRule(); |
| | | } |
| | |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.schema.BooleanEqualityMatchingRuleTest; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new BooleanEqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new CaseExactEqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new CaseExactIA5EqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new CaseIgnoreEqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new CaseIgnoreIA5EqualityMatchingRule(); |
| | | } |
| | |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.forgerock.opendj.ldap.Assertion; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.opends.server.util.Base64; |
| | | import org.testng.annotations.DataProvider; |
| | |
| | | { |
| | | CertificateExactMatchingRule rule = getRule(); |
| | | |
| | | // normalize the 2 provided values and check that they are equals |
| | | ByteString normalizedAttributeValue = |
| | | rule.normalizeAttributeValue(attributeValue); |
| | | ByteString normalizedAssertionValue = |
| | | rule.normalizeAssertionValue(assertionValue); |
| | | Assertion assertion = rule.getAssertion(assertionValue); |
| | | ConditionResult condResult = assertion.matches(rule.normalizeAttributeValue(attributeValue)); |
| | | |
| | | Boolean liveResult = rule.areEqual(normalizedAttributeValue, |
| | | normalizedAssertionValue); |
| | | assertEquals(result, liveResult); |
| | | assertEquals(condResult, ConditionResult.valueOf(result)); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new DirectoryStringFirstComponentEqualityMatchingRule(); |
| | | } |
| | |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new DistinguishedNameEqualityMatchingRule(); |
| | | } |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.AcceptRejectWarn; |
| | | import org.testng.annotations.DataProvider; |
| | |
| | | * |
| | | * @return An instance of the matching rule to test. |
| | | */ |
| | | protected abstract EqualityMatchingRule getRule(); |
| | | |
| | | /** |
| | | * Test the normalization and the comparison of valid values. |
| | | */ |
| | | @Test(dataProvider= "equalitymatchingrules") |
| | | public void equalityMatchingRules(String value1, |
| | | String value2, Boolean result) throws Exception |
| | | { |
| | | EqualityMatchingRule rule = getRule(); |
| | | |
| | | // normalize the 2 provided values and check that they are equals |
| | | ByteString normalizedValue1 = |
| | | rule.normalizeAttributeValue(ByteString.valueOf(value1)); |
| | | ByteString normalizedValue2 = |
| | | rule.normalizeAttributeValue(ByteString.valueOf(value2)); |
| | | |
| | | Boolean liveResult = rule.areEqual(normalizedValue1, normalizedValue2); |
| | | assertEquals(result, liveResult); |
| | | } |
| | | |
| | | protected abstract MatchingRule getRule(); |
| | | |
| | | /** |
| | | * Generate data for the EqualityMatching Rule test in warn mode. |
| | |
| | | DirectoryServer.setSyntaxEnforcementPolicy(AcceptRejectWarn.WARN); |
| | | try |
| | | { |
| | | equalityMatchingRules(value1, value2, result); |
| | | testValuesMatch(value1, value2, result); |
| | | } |
| | | finally |
| | | { |
| | |
| | | public void equalityMatchingRulesInvalidValues(String value) throws Exception |
| | | { |
| | | // Get the instance of the rule to be tested. |
| | | EqualityMatchingRule rule = getRule(); |
| | | MatchingRule rule = getRule(); |
| | | |
| | | // normalize the 2 provided values |
| | | try |
| | |
| | | public void testValuesMatch(String value1, |
| | | String value2, Boolean result) throws Exception |
| | | { |
| | | EqualityMatchingRule rule = getRule(); |
| | | MatchingRule rule = getRule(); |
| | | |
| | | // normalize the 2 provided values and check that they are equals |
| | | ByteString normalizedValue1 = |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new GeneralizedTimeEqualityMatchingRule(); |
| | | } |
| | |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new IntegerEqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new NumericStringEqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new PresentationAddressEqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new ProtocolInformationEqualityMatchingRule(); |
| | | } |
| | |
| | | |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | |
| | | import static org.testng.Assert.*; |
| | | |
| | | import java.util.List; |
| | |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.protocols.ldap.LDAPFilter; |
| | | import org.forgerock.opendj.ldap.Assertion; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.types.SearchResultEntry; |
| | |
| | | String value2, Boolean result) throws Exception |
| | | { |
| | | //Take any caseExact matching rule. |
| | | EqualityMatchingRule rule = new CaseExactIA5EqualityMatchingRule(); |
| | | ByteString normalizedValue1 = |
| | | rule.normalizeAttributeValue(ByteString.valueOf(value1)); |
| | | ByteString normalizedValue2 = |
| | | rule.normalizeAttributeValue(ByteString.valueOf(value2)); |
| | | MatchingRule rule = new CaseExactIA5EqualityMatchingRule(); |
| | | |
| | | Boolean liveResult = rule.areEqual(normalizedValue1, normalizedValue2); |
| | | assertEquals(result, liveResult); |
| | | Assertion assertion = rule.getAssertion(ByteString.valueOf(value2)); |
| | | ConditionResult condResult = assertion.matches(rule.normalizeAttributeValue(ByteString.valueOf(value1))); |
| | | |
| | | assertEquals(condResult, ConditionResult.valueOf(result)); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | String value2, Boolean result) throws Exception |
| | | { |
| | | //Take any caseExact matching rule. |
| | | EqualityMatchingRule rule = new CaseIgnoreEqualityMatchingRule(); |
| | | ByteString normalizedValue1 = |
| | | rule.normalizeAttributeValue(ByteString.valueOf(value1)); |
| | | ByteString normalizedValue2 = |
| | | rule.normalizeAttributeValue(ByteString.valueOf(value2)); |
| | | MatchingRule rule = new CaseIgnoreEqualityMatchingRule(); |
| | | |
| | | Boolean liveResult = rule.areEqual(normalizedValue1, normalizedValue2); |
| | | assertEquals(result, liveResult); |
| | | Assertion assertion = rule.getAssertion(ByteString.valueOf(value2)); |
| | | ConditionResult condResult = assertion.matches(rule.normalizeAttributeValue(ByteString.valueOf(value1))); |
| | | |
| | | assertEquals(condResult, ConditionResult.valueOf(result)); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new UUIDEqualityMatchingRule(); |
| | | } |
| | |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new UniqueMemberEqualityMatchingRule(); |
| | | } |
| | |
| | | import org.opends.server.admin.server.AdminTestCaseUtils; |
| | | import org.opends.server.admin.std.meta.SaltedMD5PasswordStorageSchemeCfgDefn; |
| | | import org.opends.server.admin.std.server.SaltedMD5PasswordStorageSchemeCfg; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.extensions.SaltedMD5PasswordStorageScheme; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new UserPasswordEqualityMatchingRule(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.testng.annotations.DataProvider; |
| | | |
| | | /** |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected EqualityMatchingRule getRule() |
| | | protected MatchingRule getRule() |
| | | { |
| | | return new WordEqualityMatchingRule(); |
| | | } |
| | |
| | | import org.forgerock.util.Utils; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | private ApproximateMatchingRule approximateMatchingRule; |
| | | |
| | | // The equality matching rule for this attribute type. |
| | | private EqualityMatchingRule equalityMatchingRule; |
| | | private MatchingRule equalityMatchingRule; |
| | | |
| | | // The ordering matching rule for this attribute type. |
| | | private OrderingMatchingRule orderingMatchingRule; |
| | |
| | | * The equalityMatchingRule. |
| | | */ |
| | | public void setEqualityMatchingRule( |
| | | EqualityMatchingRule equalityMatchingRule) { |
| | | MatchingRule equalityMatchingRule) { |
| | | this.equalityMatchingRule = equalityMatchingRule; |
| | | } |
| | | |