Class AuditLogMetadataResolverImpl
java.lang.Object
com.atlassian.crowd.manager.audit.AuditLogMetadataResolverImpl
- All Implemented Interfaces:
AuditLogMetadataResolver
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAuditLogMetadataResolverImpl
(ThreadLocalStateAccessor threadLocalStateAccessor, AuditLogContextInternal auditLogContextInternal) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setTrustedProxyManager
(TrustedProxyManager trustedProxyManager) void
setUserDao
(InternalUserDao userDao)
-
Field Details
-
DEFAULT_AUTHOR
-
-
Constructor Details
-
AuditLogMetadataResolverImpl
public AuditLogMetadataResolverImpl(ThreadLocalStateAccessor threadLocalStateAccessor, AuditLogContextInternal auditLogContextInternal)
-
-
Method Details
-
setUserDao
-
setTrustedProxyManager
-
resolveAuthor
- Specified by:
resolveAuthor
in interfaceAuditLogMetadataResolver
- Returns:
- the currently authenticated user/application to set as the author of an auditable action
-
resolveIpAddress
- Specified by:
resolveIpAddress
in interfaceAuditLogMetadataResolver
- Returns:
- the IP address from the current request or null if no request is currently ongoing. This method takes the trusted proxy settings into account.
-
resolveSource
- Specified by:
resolveSource
in interfaceAuditLogMetadataResolver
- Returns:
- the source that should be used for auditing the current event
-