| | |
| | | modDNmap=new LinkedHashMap<DN,DN>(); |
| | | modifyDNOperation.setAttachment(MODIFYDN_DNS, modDNmap); |
| | | } |
| | | DN oldEntryDN=modifyDNOperation.getOriginalEntry().getDN(); |
| | | DN newEntryDN=modifyDNOperation.getUpdatedEntry().getDN(); |
| | | DN oldEntryDN=modifyDNOperation.getOriginalEntry().getName(); |
| | | DN newEntryDN=modifyDNOperation.getUpdatedEntry().getName(); |
| | | modDNmap.put(oldEntryDN, newEntryDN); |
| | | |
| | | processModifyDN(modDNmap, (interval != 0)); |
| | |
| | | modDNmap=new LinkedHashMap<DN,DN>(); |
| | | modifyDNOperation.setAttachment(MODIFYDN_DNS, modDNmap); |
| | | } |
| | | modDNmap.put(oldEntry.getDN(), newEntry.getDN()); |
| | | modDNmap.put(oldEntry.getName(), newEntry.getName()); |
| | | return PluginResult.SubordinateModifyDN.continueOperationProcessing(); |
| | | } |
| | | |
| | |
| | | deleteDNset = new HashSet<DN>(); |
| | | deleteOperation.setAttachment(DELETE_DNS, deleteDNset); |
| | | } |
| | | deleteDNset.add(entry.getDN()); |
| | | deleteDNset.add(entry.getName()); |
| | | return PluginResult.SubordinateDelete.continueOperationProcessing(); |
| | | } |
| | | |
| | |
| | | private void deleteAddAttributesEntry(Entry e, DN oldEntryDN, DN newEntryDN) |
| | | { |
| | | LinkedList<Modification> mods = new LinkedList<Modification>(); |
| | | DN entryDN=e.getDN(); |
| | | DN entryDN=e.getName(); |
| | | for(AttributeType type : attributeTypes) |
| | | { |
| | | if(e.hasAttribute(type)) |
| | |
| | | /* Make sure the entry belongs to one of the configured naming |
| | | * contexts. |
| | | */ |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | DN entryBaseDN = getEntryBaseDN(entryDN); |
| | | if (entryBaseDN == null) |
| | | { |
| | |
| | | /* Make sure the entry belongs to one of the configured naming |
| | | * contexts. |
| | | */ |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | DN entryBaseDN = getEntryBaseDN(entryDN); |
| | | if (entryBaseDN == null) |
| | | { |
| | |
| | | return PluginResult.PreOperation.stopProcessing( |
| | | ResultCode.CONSTRAINT_VIOLATION, |
| | | ERR_PLUGIN_REFERENT_FILTER_MISMATCH.get( |
| | | valueEntry.getDN().toString(), |
| | | valueEntry.getName().toString(), |
| | | attr.getName(), |
| | | entryDN.toString(), |
| | | filter.toString()) |