Class SpelDnValueMutator

java.lang.Object
org.ldaptive.beans.spring.SpelDnValueMutator
All Implemented Interfaces:
DnValueMutator

public class SpelDnValueMutator extends Object implements DnValueMutator
Uses a SPEL expression and evaluation context to mutate the configured DN of an object.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.expression.EvaluationContext
    Evaluation context.
    private final org.springframework.expression.Expression
    SPEL expression to access the DN.
    protected final org.slf4j.Logger
    Logger for this class.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpelDnValueMutator(org.springframework.expression.Expression exp, org.springframework.expression.EvaluationContext context)
    Creates a new spel dn value mutator.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • logger

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

      private final org.springframework.expression.Expression expression
      SPEL expression to access the DN.
    • evaluationContext

      private final org.springframework.expression.EvaluationContext evaluationContext
      Evaluation context.
  • Constructor Details

    • SpelDnValueMutator

      public SpelDnValueMutator(org.springframework.expression.Expression exp, org.springframework.expression.EvaluationContext context)
      Creates a new spel dn value mutator.
      Parameters:
      exp - to access the DN
      context - containing 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