Package org.ldaptive.beans.reflect
Class DefaultDnValueMutator
- java.lang.Object
-
- org.ldaptive.beans.reflect.DefaultDnValueMutator
-
- All Implemented Interfaces:
DnValueMutator
public class DefaultDnValueMutator extends Object implements DnValueMutator
Uses aAttributeValueMutator
to mutate the configured DN of an object.
-
-
Field Summary
Fields Modifier and Type Field Description private AttributeValueMutator
dnMutator
Mutator for the DN.protected Logger
logger
Logger for this class.
-
Constructor Summary
Constructors Constructor Description DefaultDnValueMutator(AttributeValueMutator mutator)
Creates a new default dn value mutator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue(Object object)
Returns the DN value for the supplied object.void
setValue(Object object, String value)
Set the DN value for the supplied object.String
toString()
-
-
-
Field Detail
-
logger
protected final Logger logger
Logger for this class.
-
dnMutator
private final AttributeValueMutator dnMutator
Mutator for the DN.
-
-
Constructor Detail
-
DefaultDnValueMutator
public DefaultDnValueMutator(AttributeValueMutator mutator)
Creates a new default dn value mutator.- Parameters:
mutator
- for the DN
-
-
Method Detail
-
getValue
public String getValue(Object object)
Description copied from interface:DnValueMutator
Returns the DN value for the supplied object.- Specified by:
getValue
in interfaceDnValueMutator
- 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 interfaceDnValueMutator
- Parameters:
object
- to set the DN onvalue
- of the DN
-
-