| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.core; |
| | | import org.opends.messages.Message; |
| | |
| | | public boolean isWithinScope(Entry entry) { |
| | | |
| | | if (isDNWithinScope(entry.getDN())) { |
| | | try { |
| | | return filter.matchesEntry(entry); |
| | | } catch (DirectoryException e) { |
| | | // TODO: need to decide what to do with the exception here. It's |
| | | // probably safe to ignore, but we could log it perhaps. |
| | | return false; |
| | | if (filter != null) { |
| | | try { |
| | | return filter.matchesEntry(entry); |
| | | } catch (DirectoryException e) { |
| | | // TODO: need to decide what to do with the exception here. It's |
| | | // probably safe to ignore, but we could log it perhaps. |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |