| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2012 ForgeRock AS. |
| | | * Portions copyright 2012-2013 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.forgerock.opendj.ldap; |
| | |
| | | } else { |
| | | try { |
| | | ruleUse = schema.getMatchingRuleUse(rule); |
| | | if (!ruleUse.hasAttribute(ad.getAttributeType())) { |
| | | if (DEBUG_LOG.isLoggable(Level.WARNING)) { |
| | | DEBUG_LOG.warning("The matching rule " + matchingRule |
| | | + " is not valid for attribute type " |
| | | + attributeDescription); |
| | | } |
| | | return UNDEFINED; |
| | | } |
| | | } catch (final UnknownSchemaElementException e) { |
| | | if (DEBUG_LOG.isLoggable(Level.WARNING)) { |
| | | DEBUG_LOG.warning("No matching rule use is defined for " |
| | |
| | | return UNDEFINED; |
| | | } |
| | | } |
| | | if (!ruleUse.hasAttribute(ad.getAttributeType())) { |
| | | if (DEBUG_LOG.isLoggable(Level.WARNING)) { |
| | | DEBUG_LOG.warning("The matching rule " + matchingRule |
| | | + " is not valid for attribute type " + attributeDescription); |
| | | } |
| | | return UNDEFINED; |
| | | } |
| | | } |
| | | } else { |
| | | try { |