Class AuditAuthors
java.lang.Object
com.atlassian.jira.auditing.converters.AuditAuthors
Helps to obtain
AuditAuthor.
Moved back to jira-core from atlassian-audit-jira-converte package.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.atlassian.audit.entity.AuditAuthorfrom(AuditLogDTO auditLogDTO, UserManager userManager) CreatesAuditAuthorfromAuditLogDTO.getAuthorKey().static com.atlassian.audit.entity.AuditAuthorfrom(JiraAuthenticationContext context) CreatesAuditAuthorfromJiraAuthenticationContext.getLoggedInUser().static com.atlassian.audit.entity.AuditAuthorfrom(ApplicationUser user) CreatesAuditAuthorfromApplicationUser
-
Method Details
-
from
CreatesAuditAuthorfromApplicationUser- Parameters:
user- audit entry author- Returns:
- new
AuditAuthorinstance mapped from user.
-
from
CreatesAuditAuthorfromJiraAuthenticationContext.getLoggedInUser(). UsesAuditAuthor.SYSTEM_AUTHORif there's no logged in user available.- Parameters:
context-JiraAuthenticationContext- Returns:
JiraAuthenticationContext.getLoggedInUser()orAuditAuthor.SYSTEM_AUTHOR
-
from
public static com.atlassian.audit.entity.AuditAuthor from(AuditLogDTO auditLogDTO, UserManager userManager) CreatesAuditAuthorfromAuditLogDTO.getAuthorKey(). In case of any error during the creation ofAuditAuthorit will fallback toAuditAuthor.SYSTEM_AUTHOR- Parameters:
auditLogDTO-AuditLogDTOuserManager-UserManager- Returns:
AuditAuthororAuditAuthor.SYSTEM_AUTHOR
-