Interface AuditLogMetadataResolver


@Internal public interface AuditLogMetadataResolver
Resolves the common properties for the audit log changeset - the author and the current request's address
  • Method Summary

    Modifier and Type
    Method
    Description
    com.atlassian.crowd.audit.AuditLogAuthor
     
     
    com.atlassian.crowd.audit.AuditLogEventSource
     
  • Method Details

    • resolveAuthor

      com.atlassian.crowd.audit.AuditLogAuthor resolveAuthor()
      Returns:
      the currently authenticated user/application to set as the author of an auditable action
    • resolveIpAddress

      @Nullable String resolveIpAddress()
      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

      com.atlassian.crowd.audit.AuditLogEventSource resolveSource()
      Returns:
      the source that should be used for auditing the current event