Class SpelDnValueMutator

  • All Implemented Interfaces:
    DnValueMutator

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

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getValue​(java.lang.Object object)
      Returns the DN value for the supplied object.
      void setValue​(java.lang.Object object, java.lang.String value)
      Set the DN value for the supplied object.
      java.lang.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 java.lang.String getValue​(java.lang.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​(java.lang.Object object,
                             java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object