Class DefaultDnValueMutator

java.lang.Object
org.ldaptive.beans.reflect.DefaultDnValueMutator
All Implemented Interfaces:
DnValueMutator

public class DefaultDnValueMutator extends Object implements DnValueMutator
Uses a AttributeValueMutator to mutate the configured DN of an object.
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
      Logger for this class.
    • dnMutator

      private final AttributeValueMutator dnMutator
      Mutator for the DN.
  • Constructor Details

    • DefaultDnValueMutator

      public DefaultDnValueMutator(AttributeValueMutator mutator)
      Creates a new default dn value mutator.
      Parameters:
      mutator - for the DN
  • Method Details

    • getValue

      public String getValue(Object object)
      Description copied from interface: DnValueMutator
      Returns the DN value for the supplied object.
      Specified by:
      getValue in interface DnValueMutator
      Parameters:
      object - to return the DN of
      Returns:
      DN value
    • setValue

      public void setValue(Object object, String value)
      Description copied from interface: DnValueMutator
      Set the DN value for the supplied object.
      Specified by:
      setValue in interface DnValueMutator
      Parameters:
      object - to set the DN on
      value - of the DN
    • toString

      public String toString()
      Overrides:
      toString in class Object