Class AuditLogMetadataResolverImpl
java.lang.Object
com.atlassian.crowd.manager.audit.AuditLogMetadataResolverImpl
- All Implemented Interfaces:
AuditLogMetadataResolver
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuditLogMetadataResolverImpl(ThreadLocalStateAccessor threadLocalStateAccessor, AuditLogContextInternal auditLogContextInternal) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetTrustedProxyManager(TrustedProxyManager trustedProxyManager) voidsetUserDao(InternalUserDao userDao)
-
Field Details
-
DEFAULT_AUTHOR
-
-
Constructor Details
-
AuditLogMetadataResolverImpl
public AuditLogMetadataResolverImpl(ThreadLocalStateAccessor threadLocalStateAccessor, AuditLogContextInternal auditLogContextInternal)
-
-
Method Details
-
setUserDao
-
setTrustedProxyManager
-
resolveAuthor
- Specified by:
resolveAuthorin interfaceAuditLogMetadataResolver- Returns:
- the currently authenticated user/application to set as the author of an auditable action
-
resolveIpAddress
- Specified by:
resolveIpAddressin 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:
resolveSourcein interfaceAuditLogMetadataResolver- Returns:
- the source that should be used for auditing the current event
-