Package ubic.gemma.cli.logging.log4j
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 Summary
FieldsFields inherited from interface ubic.gemma.core.logging.log4j.ThreadContextPopulator
KEY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetKey()voidpopulate()voidsetAuthentication(org.springframework.security.core.Authentication auth) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.logging.log4j.ThreadContextPopulator
afterPropertiesSet
-
Field Details
-
CURRENT_USER_CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
UserDetailsThreadContextPopulator
public UserDetailsThreadContextPopulator()
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceubic.gemma.core.logging.log4j.ThreadContextPopulator
-
populate
public void populate()- Specified by:
populatein interfaceubic.gemma.core.logging.log4j.ThreadContextPopulator
-
setAuthentication
public void setAuthentication(org.springframework.security.core.Authentication auth) - Specified by:
setAuthenticationin interfaceCLIAuthenticationAware
-
clearAuthentication
public void clearAuthentication()- Specified by:
clearAuthenticationin interfaceCLIAuthenticationAware
-