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 ApplicationUseruser - 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 - JiraAuthenticationContextJiraAuthenticationContext.getLoggedInUser() or AuditAuthor.SYSTEM_AUTHORpublic 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_AUTHORauditLogDTO - AuditLogDTOuserManager - UserManagerAuditAuthor or AuditAuthor.SYSTEM_AUTHORCopyright © 2002-2024 Atlassian. All Rights Reserved.