| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2013 ForgeRock AS |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | UniqueAttributePluginCfg config = currentConfiguration; |
| | | Entry entry = addOperation.getEntryToAdd(); |
| | | |
| | | Set<DN> baseDNs = getBaseDNs(config, entry.getDN()); |
| | | Set<DN> baseDNs = getBaseDNs(config, entry.getName()); |
| | | if (baseDNs == null) |
| | | { |
| | | // The entry is outside the scope of this plugin. |
| | | return PluginResult.PreOperation.continueOperationProcessing(); |
| | | } |
| | | |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | List<AttributeValue> recordedValues = new LinkedList<AttributeValue>(); |
| | | for (AttributeType t : config.getType()) |
| | | { |
| | |
| | | UniqueAttributePluginCfg config = currentConfiguration; |
| | | |
| | | Set<DN> baseDNs = getBaseDNs(config, |
| | | modifyDNOperation.getUpdatedEntry().getDN()); |
| | | modifyDNOperation.getUpdatedEntry().getName()); |
| | | if (baseDNs == null) |
| | | { |
| | | // The entry is outside the scope of this plugin. |
| | |
| | | UniqueAttributePluginCfg config = currentConfiguration; |
| | | Entry entry = addOperation.getEntryToAdd(); |
| | | |
| | | Set<DN> baseDNs = getBaseDNs(config, entry.getDN()); |
| | | Set<DN> baseDNs = getBaseDNs(config, entry.getName()); |
| | | if (baseDNs == null) |
| | | { |
| | | // The entry is outside the scope of this plugin. |
| | | return; |
| | | } |
| | | |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | for (AttributeType t : config.getType()) |
| | | { |
| | | List<Attribute> attrList = entry.getAttribute(t); |
| | |
| | | UniqueAttributePluginCfg config = currentConfiguration; |
| | | |
| | | Set<DN> baseDNs = getBaseDNs(config, |
| | | modifyDNOperation.getUpdatedEntry().getDN()); |
| | | modifyDNOperation.getUpdatedEntry().getName()); |
| | | if (baseDNs == null) |
| | | { |
| | | // The entry is outside the scope of this plugin. |
| | |
| | | } |
| | | |
| | | DN entryDN = modifyDNOperation.getEntryDN(); |
| | | DN updatedEntryDN = modifyDNOperation.getUpdatedEntry().getDN(); |
| | | DN updatedEntryDN = modifyDNOperation.getUpdatedEntry().getName(); |
| | | RDN newRDN = modifyDNOperation.getNewRDN(); |
| | | for (int i=0; i < newRDN.getNumValues(); i++) |
| | | { |
| | |
| | | false, filter, SEARCH_ATTRS); |
| | | for (SearchResultEntry e : searchOperation.getSearchEntries()) |
| | | { |
| | | if (! e.getDN().equals(targetDN)) |
| | | if (! e.getName().equals(targetDN)) |
| | | { |
| | | return e.getDN(); |
| | | return e.getName(); |
| | | } |
| | | } |
| | | |
| | |
| | | UniqueAttributePluginCfg config = currentConfiguration; |
| | | Entry entry = addOperation.getEntryToAdd(); |
| | | |
| | | Set<DN> baseDNs = getBaseDNs(config, entry.getDN()); |
| | | Set<DN> baseDNs = getBaseDNs(config, entry.getName()); |
| | | if (baseDNs == null) |
| | | { |
| | | // The entry is outside the scope of this plugin. |
| | |
| | | { |
| | | UniqueAttributePluginCfg config = currentConfiguration; |
| | | Set<DN> baseDNs = getBaseDNs(config, |
| | | modifyDNOperation.getUpdatedEntry().getDN()); |
| | | modifyDNOperation.getUpdatedEntry().getName()); |
| | | if (baseDNs == null) |
| | | { |
| | | // The entry is outside the scope of this plugin. |