org.ldaptive.beans.spring
Class SpelDnValueMutator

java.lang.Object
  extended by 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.

Version:
$Revision: 3013 $ $Date: 2014-07-02 11:26:52 -0400 (Wed, 02 Jul 2014) $
Author:
Middleware Services

Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
SpelDnValueMutator(org.springframework.expression.Expression exp, org.springframework.expression.EvaluationContext context)
          Creates a new spel dn value mutator.
 
Method Summary
 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()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

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

Constructor Detail

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 Detail

getValue

public String getValue(Object object)
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)
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


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.