| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.backends.jeb; |
| | | import org.opends.messages.Message; |
| | |
| | | public boolean addEntry(Transaction txn, EntryID entryID, Entry entry) |
| | | throws DatabaseException, DirectoryException, JebException |
| | | { |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | if(entryDN.matchesBaseAndScope(baseDN, scope) && filter.matchesEntry(entry)) |
| | | { |
| | | return insertValues(txn, entryID.longValue(), entry); |
| | |
| | | public boolean addEntry(IndexBuffer buffer, EntryID entryID, Entry entry) |
| | | throws DirectoryException |
| | | { |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | if(entryDN.matchesBaseAndScope(baseDN, scope) && filter.matchesEntry(entry)) |
| | | { |
| | | SortValues sortValues = new SortValues(entryID, entry, sortOrder); |
| | |
| | | public boolean removeEntry(Transaction txn, EntryID entryID, Entry entry) |
| | | throws DatabaseException, DirectoryException, JebException |
| | | { |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | if(entryDN.matchesBaseAndScope(baseDN, scope) && filter.matchesEntry(entry)) |
| | | { |
| | | return removeValues(txn, entryID.longValue(), entry); |
| | |
| | | public boolean removeEntry(IndexBuffer buffer, EntryID entryID, Entry entry) |
| | | throws DirectoryException |
| | | { |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | if(entryDN.matchesBaseAndScope(baseDN, scope) && filter.matchesEntry(entry)) |
| | | { |
| | | SortValues sortValues = new SortValues(entryID, entry, sortOrder); |
| | |
| | | List<Modification> mods) |
| | | throws DatabaseException, DirectoryException, JebException |
| | | { |
| | | DN oldEntryDN = oldEntry.getDN(); |
| | | DN newEntryDN = newEntry.getDN(); |
| | | DN oldEntryDN = oldEntry.getName(); |
| | | DN newEntryDN = newEntry.getName(); |
| | | if(oldEntryDN.matchesBaseAndScope(baseDN, scope) && |
| | | filter.matchesEntry(oldEntry)) |
| | | { |
| | |
| | | List<Modification> mods) |
| | | throws DatabaseException, DirectoryException |
| | | { |
| | | DN oldEntryDN = oldEntry.getDN(); |
| | | DN newEntryDN = newEntry.getDN(); |
| | | DN oldEntryDN = oldEntry.getName(); |
| | | DN newEntryDN = newEntry.getName(); |
| | | if(oldEntryDN.matchesBaseAndScope(baseDN, scope) && |
| | | filter.matchesEntry(oldEntry)) |
| | | { |
| | |
| | | */ |
| | | public boolean shouldInclude(Entry entry) throws DirectoryException |
| | | { |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | if(entryDN.matchesBaseAndScope(baseDN, scope) && filter.matchesEntry(entry)) |
| | | { |
| | | return true; |