Package org.ldaptive.beans.spring
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 org.springframework.expression.EvaluationContextevaluationContextEvaluation context.private org.springframework.expression.ExpressionexpressionSPEL expression to access the DN.protected LoggerloggerLogger 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue(Object object)Returns the DN value for the supplied object.voidsetValue(Object object, String value)Set the DN value for the supplied object.StringtoString()
-
-
-
Field Detail
-
logger
protected final 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.
-
-
Method Detail
-
getValue
public String getValue(Object object)
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
public void setValue(Object object, String value)
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
-
-