public final class AuditAuthors extends Object
AuditAuthor
.
Moved back to jira-core from atlassian-audit-jira-converte package.Modifier and Type | Method and Description |
---|---|
static com.atlassian.audit.entity.AuditAuthor |
from(ApplicationUser user)
Creates
AuditAuthor from ApplicationUser |
static com.atlassian.audit.entity.AuditAuthor |
from(AuditLogDTO auditLogDTO,
UserManager userManager)
Creates
AuditAuthor from AuditLogDTO.getAuthorKey() . |
static com.atlassian.audit.entity.AuditAuthor |
from(JiraAuthenticationContext context)
Creates
AuditAuthor from JiraAuthenticationContext.getLoggedInUser() . |
public static com.atlassian.audit.entity.AuditAuthor from(ApplicationUser user)
AuditAuthor
from ApplicationUser
user
- audit entry authorAuditAuthor
instance mapped from user.public static com.atlassian.audit.entity.AuditAuthor from(JiraAuthenticationContext context)
AuditAuthor
from JiraAuthenticationContext.getLoggedInUser()
.
Uses AuditAuthor.SYSTEM_AUTHOR
if there's no logged in user available.context
- JiraAuthenticationContext
JiraAuthenticationContext.getLoggedInUser()
or AuditAuthor.SYSTEM_AUTHOR
public static com.atlassian.audit.entity.AuditAuthor from(AuditLogDTO auditLogDTO, UserManager userManager)
AuditAuthor
from AuditLogDTO.getAuthorKey()
.
In case of any error during the creation of AuditAuthor
it will
fallback to AuditAuthor.SYSTEM_AUTHOR
auditLogDTO
- AuditLogDTO
userManager
- UserManager
AuditAuthor
or AuditAuthor.SYSTEM_AUTHOR
Copyright © 2002-2022 Atlassian. All Rights Reserved.