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.EvaluationContextEvaluation context.private final org.springframework.expression.ExpressionSPEL expression to access the DN.protected final LoggerLogger 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
Logger 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:DnValueMutatorReturns the DN value for the supplied object.- Specified by:
getValuein interfaceDnValueMutator- Parameters:
object- to return the DN of- Returns:
- DN value
-
setValue
Description copied from interface:DnValueMutatorSet the DN value for the supplied object.- Specified by:
setValuein interfaceDnValueMutator- Parameters:
object- to set the DN onvalue- of the DN
-
toString
-