| | |
| | | } |
| | | |
| | | Set<DN> cfgBaseDNs = pluginCfg.getBaseDN(); |
| | | if ((cfgBaseDNs == null) || cfgBaseDNs.isEmpty()) |
| | | if (cfgBaseDNs == null || cfgBaseDNs.isEmpty()) |
| | | { |
| | | cfgBaseDNs = DirectoryServer.getPublicNamingContexts().keySet(); |
| | | } |
| | |
| | | for (DN baseDN : cfgBaseDNs) |
| | | { |
| | | Backend<?> b = DirectoryServer.getBackend(baseDN); |
| | | if ((b != null) && (!b.isIndexed(type, IndexType.EQUALITY))) |
| | | if (b != null && !b.isIndexed(type, IndexType.EQUALITY)) |
| | | { |
| | | isAcceptable = false; |
| | | unacceptableReasons.add(ERR_PLUGIN_REFERENT_ATTR_UNINDEXED.get( |
| | |
| | | DN newEntryDN=modifyDNOperation.getUpdatedEntry().getName(); |
| | | modDNmap.put(oldEntryDN, newEntryDN); |
| | | |
| | | processModifyDN(modDNmap, (interval != 0)); |
| | | processModifyDN(modDNmap, interval != 0); |
| | | |
| | | return PluginResult.PostOperation.continueOperationProcessing(); |
| | | } |
| | |
| | | } |
| | | deleteDNset.add(deleteOperation.getEntryDN()); |
| | | |
| | | processDelete(deleteDNset, (interval != 0)); |
| | | processDelete(deleteDNset, interval != 0); |
| | | return PluginResult.PostOperation.continueOperationProcessing(); |
| | | } |
| | | |
| | |
| | | */ |
| | | private boolean isAttributeSyntaxValid(AttributeType attribute) |
| | | { |
| | | return (attribute.getSyntax().getOID().equals(SYNTAX_DN_OID) || |
| | | attribute.getSyntax().getOID().equals(SYNTAX_NAME_AND_OPTIONAL_UID_OID)); |
| | | return attribute.getSyntax().getOID().equals(SYNTAX_DN_OID) || |
| | | attribute.getSyntax().getOID().equals(SYNTAX_NAME_AND_OPTIONAL_UID_OID); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | /* Process only ADD and REPLACE modification types. |
| | | */ |
| | | if ((modType != ModificationType.ADD) |
| | | && (modType != ModificationType.REPLACE)) |
| | | if (modType != ModificationType.ADD |
| | | && modType != ModificationType.REPLACE) |
| | | { |
| | | break; |
| | | } |