edu.internet2.middleware.ldappc.synchronize
Class DnAttributeModifier

java.lang.Object
  extended by edu.internet2.middleware.ldappc.synchronize.AttributeModifier
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.internet2.middleware.ldappc.synchronize.AttributeModifier
AttributeModifier.Values
 
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.
 
Method Summary
protected  String makeComparisonString(String value)
          If caseSensitive is true, return value, otherwise return lowercased 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 attribute
noValue - "no value" value (null if the attribute is not required).
Method Detail

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.