Package com.nimbusds.ldapsync
Class KeyWarnings
- java.lang.Object
-
- com.nimbusds.ldapsync.KeyWarnings
-
public class KeyWarnings extends Object
Used to report source directory entries with missing, non-unique or multi-value key attribute.See
SourceDirectory.getEntries(java.lang.String, java.lang.String[], com.nimbusds.ldapsync.KeyWarnings)
-
-
Constructor Summary
Constructors Constructor Description KeyWarnings(String attributeName)
Creates a new empty key attribute warning ready for passing to theSourceDirectory.getEntries(java.lang.String, java.lang.String[], com.nimbusds.ldapsync.KeyWarnings)
method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMissing(com.unboundid.ldap.sdk.DN dn)
Adds the specified source directory entry as having a missing key attribute.void
addMultiValue(com.unboundid.ldap.sdk.DN dn)
Adds the specified source directory entry as having a key attribute with multiple values.void
addNonUnique(com.unboundid.ldap.sdk.DN dn, String value)
Adds the specified source directory entry as having a non-unique key attribute value.String
getAttributeName()
Gets the name of the attribute used to key the source directory entries.List<com.unboundid.ldap.sdk.DN>
getMissing()
Gets the list of source directory entries with missing key attribute.List<com.unboundid.ldap.sdk.DN>
getMultiValue()
Gets the list of source directory entries with multiple key attribute values.Map<String,List<com.unboundid.ldap.sdk.DN>>
getNonUnique()
Gets the source directory entries with non-unique key attribute values.
-
-
-
Constructor Detail
-
KeyWarnings
public KeyWarnings(String attributeName)
Creates a new empty key attribute warning ready for passing to theSourceDirectory.getEntries(java.lang.String, java.lang.String[], com.nimbusds.ldapsync.KeyWarnings)
method.- Parameters:
attributeName
- The name of the attribute used to key the source directory entries.
-
-
Method Detail
-
getAttributeName
public String getAttributeName()
Gets the name of the attribute used to key the source directory entries.- Returns:
- The attribute name.
-
addMissing
public void addMissing(com.unboundid.ldap.sdk.DN dn)
Adds the specified source directory entry as having a missing key attribute.- Parameters:
dn
- The distinguished name (DN) of the source directory entry.
-
getMissing
public List<com.unboundid.ldap.sdk.DN> getMissing()
Gets the list of source directory entries with missing key attribute.- Returns:
- List of the DNs with missing key attribute, empty if none were missing.
-
addMultiValue
public void addMultiValue(com.unboundid.ldap.sdk.DN dn)
Adds the specified source directory entry as having a key attribute with multiple values.- Parameters:
dn
- The distinguished name (DN) of the source directory entry.
-
getMultiValue
public List<com.unboundid.ldap.sdk.DN> getMultiValue()
Gets the list of source directory entries with multiple key attribute values.- Returns:
- List of the DNs with multi-valued key attribute, empty if none were found.
-
addNonUnique
public void addNonUnique(com.unboundid.ldap.sdk.DN dn, String value)
Adds the specified source directory entry as having a non-unique key attribute value.- Parameters:
dn
- The distinguished name (DN) of the source directory entry.value
- The (non-unique) attribute value (assumes a string).
-
-