| | |
| | | * Header, with the fields enclosed by brackets [] replaced by your own identifying |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2013-2014 ForgeRock AS. |
| | | * Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.forgerock.opendj.rest2ldap; |
| | | |
| | |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.util.promise.Function; |
| | | import org.forgerock.util.promise.NeverThrowsException; |
| | | |
| | | /** |
| | | * An abstract LDAP attribute mapper which provides a simple mapping from a JSON |
| | | * value to a single LDAP attribute. |
| | |
| | | * delete(x) followed by add(x) is idempotent when |
| | | * adding/removing the same value. |
| | | */ |
| | | modifications = new ArrayList<Modification>(2); |
| | | modifications = new ArrayList<>(2); |
| | | |
| | | final Attribute deletedValues = new LinkedAttribute(oldLDAPAttribute); |
| | | deletedValues.removeAll(newLDAPAttribute); |