| | |
| | | { |
| | | RDN srcRDN = searchEntry.getName().rdn(); |
| | | |
| | | // Only process the entry if it has the expected form of RDN. |
| | | if (!srcRDN.isMultiValued() && |
| | | srcRDN.getAttributeType(0).equals(attrAlias)) |
| | | if (canProcessEntry(srcRDN)) |
| | | { |
| | | DN dstDN = trustStoreRootDN.child(srcRDN); |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | /** Only process the entry if it has the expected form of RDN. */ |
| | | private boolean canProcessEntry(RDN rdn) |
| | | { |
| | | return !rdn.isMultiValued() && rdn.getFirstAVA().getAttributeType().equals(attrAlias); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Modify an entry in the local trust store if it differs from an entry in |
| | |
| | | private void handleInstanceKeyAddOperation(Entry entry) |
| | | { |
| | | RDN srcRDN = entry.getName().rdn(); |
| | | |
| | | // Only process the entry if it has the expected form of RDN. |
| | | if (!srcRDN.isMultiValued() && |
| | | srcRDN.getAttributeType(0).equals(attrAlias)) |
| | | if (canProcessEntry(srcRDN)) |
| | | { |
| | | DN dstDN = trustStoreRootDN.child(srcRDN); |
| | | |
| | |
| | | |
| | | RDN srcRDN = op.getEntryToDelete().getName().rdn(); |
| | | |
| | | // Only process the entry if it has the expected form of RDN. |
| | | // FIXME: Technically it is possible to perform a subtree in |
| | | // this case however such subtree delete would essentially be |
| | | // removing configuration branches which should not happen. |
| | | if (!srcRDN.isMultiValued() && |
| | | srcRDN.getAttributeType(0).equals(attrAlias)) |
| | | if (canProcessEntry(srcRDN)) |
| | | { |
| | | DN destDN = trustStoreRootDN.child(srcRDN); |
| | | deleteEntry(destDN); |
| | |
| | | { |
| | | RDN srcRDN = newEntry.getName().rdn(); |
| | | |
| | | // Only process the entry if it has the expected form of RDN. |
| | | if (!srcRDN.isMultiValued() && |
| | | srcRDN.getAttributeType(0).equals(attrAlias)) |
| | | if (canProcessEntry(srcRDN)) |
| | | { |
| | | DN dstDN = trustStoreRootDN.child(srcRDN); |
| | | |