| | |
| | | List<Attribute> attributeList = |
| | | entry.getOperationalAttribute(AciHandler.aciType); |
| | | |
| | | if (attributeList == null) { |
| | | return 0; |
| | | } |
| | | |
| | | // Copy the ACI list. |
| | | LinkedHashMap<DN,List<Aci>> aciCopy = copyList(); |
| | | |
| | |
| | | private static int addAciAttributeList( |
| | | LinkedHashMap<DN,List<Aci>> aciList, DN dn, |
| | | List<Attribute> attributeList) { |
| | | |
| | | if (attributeList == null) { |
| | | return 0; |
| | | } |
| | | |
| | | int validAcis=0; |
| | | ArrayList<Aci> acis = new ArrayList<Aci>(); |
| | | for (Attribute attribute : attributeList) { |
| | |
| | | |
| | | aciCopy.remove(oldEntry.getDN()); |
| | | List<Attribute> attributeList = |
| | | newEntry.getOperationalAttribute(AciHandler.aciType, null); |
| | | newEntry.getOperationalAttribute(AciHandler.aciType); |
| | | addAciAttributeList(aciCopy,newEntry.getDN(),attributeList); |
| | | |
| | | // Replace the ACI list with the copy. |