edu.internet2.middleware.ldappc.synchronize
Class DnAttributeModifier
java.lang.Object
edu.internet2.middleware.ldappc.synchronize.AttributeModifier
edu.internet2.middleware.ldappc.synchronize.DnAttributeModifier
public class DnAttributeModifier
- extends AttributeModifier
This is an AttributeModifier for modifying LDAP attribute values that are known to hold
DN strings. This class currently assumes that the "no value" and the values it is
initialized with via the attribute are valid DN strings. No validation is currently
done to enforce this.
|
Constructor Summary |
DnAttributeModifier(String attributeName)
Constructs a DnAttributeModifier for the attribute name without a
"no value". |
DnAttributeModifier(String attributeName,
String noValue)
Constructs a DnAttributeModifier for the attribute name with the given
"no value" value. |
| Methods inherited from class edu.internet2.middleware.ldappc.synchronize.AttributeModifier |
clear, getAdditions, getAdds, getAttributeName, getDeletes, getDSMLModification, getModifications, getNoValue, getReferenceModification, getRetainedValues, init, init, init, initDSML, initReference, isCaseSensitive, retainAll, setAttributeName, setNoValue, store, store, store, toString |
DnAttributeModifier
public DnAttributeModifier(String attributeName)
- Constructs a
DnAttributeModifier for the attribute name without a
"no value".
- Parameters:
attributeName - Name of the attribute
DnAttributeModifier
public DnAttributeModifier(String attributeName,
String noValue)
- Constructs a
DnAttributeModifier for the attribute name with the given
"no value" value.
- Parameters:
attributeName - Name of the attributenoValue - "no value" value (null if the attribute is not required).
makeComparisonString
protected String makeComparisonString(String value)
- If caseSensitive is true, return value, otherwise return lowercased
value.
Note that caseSensitive is a class variable in the enclosing class.
The dn returned is lowercase.
- Overrides:
makeComparisonString in class AttributeModifier
- Parameters:
value - string to convert.
- Returns:
- value, possibly lowercased.
Copyright © 2011 Internet2. All Rights Reserved.