Package com.nimbusds.ldapsync
Class AttributeComparator
- java.lang.Object
-
- com.nimbusds.ldapsync.AttributeComparator
-
public class AttributeComparator extends Object
Compares the values of two directory attributes and produces the necessary LDAP modification instructions if they don't match. The attribute names may differ, but their base syntax (text / binary) must be identical.
-
-
Constructor Summary
Constructors Constructor Description AttributeComparator()
Creates a new attribute comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ModifySpec>
compare(com.unboundid.ldap.sdk.Attribute srcAttr, com.unboundid.ldap.sdk.Attribute targetAttr)
Compares two directory entry attributes.
-
-
-
Method Detail
-
compare
public List<ModifySpec> compare(com.unboundid.ldap.sdk.Attribute srcAttr, com.unboundid.ldap.sdk.Attribute targetAttr)
Compares two directory entry attributes. If they don't match returns a list of LDAP modification specs to apply to the target attribute so that it becomes identical to the source attribute.- Parameters:
srcAttr
- The source attribute. Must not benull
.targetAttr
- The target attribute. Must not benull
.- Returns:
- A list of the LDAP modification specs, empty if the attributes match.
-
-