| | |
| | | * @param labeledURIs The labeled URI value of the ref attribute. |
| | | * @throws StorageRuntimeException If an error occurs in the storage. |
| | | */ |
| | | private void put(final WriteableTransaction txn, final DN dn, final Collection<String> labeledURIs) |
| | | private void update(final WriteableTransaction txn, final DN dn, final Collection<String> labeledURIs) |
| | | throws StorageRuntimeException |
| | | { |
| | | final ByteString key = toKey(dn); |
| | |
| | | case ADD: |
| | | if (a != null) |
| | | { |
| | | put(txn, entryDN, toStrings(a)); |
| | | update(txn, entryDN, toStrings(a)); |
| | | } |
| | | break; |
| | | |
| | |
| | | delete(txn, entryDN); |
| | | if (a != null) |
| | | { |
| | | put(txn, entryDN, toStrings(a)); |
| | | update(txn, entryDN, toStrings(a)); |
| | | } |
| | | break; |
| | | } |
| | |
| | | Set<String> labeledURIs = entry.getReferralURLs(); |
| | | if (labeledURIs != null) |
| | | { |
| | | put(txn, entry.getName(), labeledURIs); |
| | | update(txn, entry.getName(), labeledURIs); |
| | | } |
| | | } |
| | | |