Package org.ldaptive.beans.spring
Class SpelDnValueMutator
java.lang.Object
org.ldaptive.beans.spring.SpelDnValueMutator
- All Implemented Interfaces:
DnValueMutator
Uses a SPEL expression and evaluation context to mutate the configured DN of an object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
ConstructorsConstructorDescriptionSpelDnValueMutator
(org.springframework.expression.Expression exp, org.springframework.expression.EvaluationContext context) Creates a new spel dn value mutator. -
Method Summary
-
Field Details
-
logger
protected final org.slf4j.Logger loggerLogger for this class. -
expression
private final org.springframework.expression.Expression expressionSPEL expression to access the DN. -
evaluationContext
private final org.springframework.expression.EvaluationContext evaluationContextEvaluation 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 DNcontext
- containing the DN
-
-
Method Details
-
getValue
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
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
-
toString
-