Class UserDetailsThreadContextPopulator

java.lang.Object
ubic.gemma.cli.logging.log4j.UserDetailsThreadContextPopulator
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, CLIAuthenticationAware, ubic.gemma.core.logging.log4j.ThreadContextPopulator

@Component public class UserDetailsThreadContextPopulator extends Object implements ubic.gemma.core.logging.log4j.ThreadContextPopulator, CLIAuthenticationAware
Populate user details in the Log4j ThreadContext.
Author:
poirigui
  • Field Details

  • Constructor Details

    • UserDetailsThreadContextPopulator

      public UserDetailsThreadContextPopulator()
  • Method Details

    • getKey

      public String getKey()
      Specified by:
      getKey in interface ubic.gemma.core.logging.log4j.ThreadContextPopulator
    • populate

      public void populate()
      Specified by:
      populate in interface ubic.gemma.core.logging.log4j.ThreadContextPopulator
    • setAuthentication

      public void setAuthentication(org.springframework.security.core.Authentication auth)
      Specified by:
      setAuthentication in interface CLIAuthenticationAware
    • clearAuthentication

      public void clearAuthentication()
      Specified by:
      clearAuthentication in interface CLIAuthenticationAware