Class 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 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.
    • 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)
        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​(Object object,
                             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