public abstract class AbstractAuditListener extends Object
Modifier and Type | Field and Description |
---|---|
protected AuditHelper |
auditHelper |
protected StandardAuditResourceTypes |
resourceTypes |
Constructor and Description |
---|
AbstractAuditListener(AuditHandlerService auditHandlerService,
com.atlassian.audit.api.AuditService service,
AuditHelper auditHelper,
StandardAuditResourceTypes resourceTypes,
AuditingContext auditingContext) |
Modifier and Type | Method and Description |
---|---|
protected com.atlassian.audit.entity.AuditEvent.Builder |
auditEventBuilder(String actionKey,
String categoryKey,
com.atlassian.audit.entity.CoverageArea area,
com.atlassian.audit.entity.CoverageLevel level)
Deprecated.
since 7.5.0 use {@link AuditEvent#fromI18nKeys(String, String, CoverageLevel, CoverageArea) instead.
|
protected com.atlassian.audit.entity.AuditResource |
buildResource(String name,
String type,
long id) |
protected com.atlassian.audit.entity.AuditResource |
buildResource(String name,
String type,
@Nullable String id) |
protected com.atlassian.audit.entity.AuditResource |
buildResourceWithoutId(String name,
String type) |
protected <T> List<com.atlassian.audit.entity.ChangedValue> |
calculateChangedValues(T oldEntity,
T newEntity) |
protected AuditHandlerService |
getAuditHandlerService() |
protected String |
getOnOff(boolean isOn) |
protected String |
getTranslatedYesNoString(boolean isYes) |
protected com.atlassian.audit.entity.ChangedValue |
newChangedValue(String nameKey,
Object oldValue,
Object newValue) |
protected void |
save(Supplier<com.atlassian.audit.entity.AuditEvent> eventSupplier) |
protected void |
saveIfPresent(Supplier<Optional<com.atlassian.audit.entity.AuditEvent>> eventSupplier) |
protected final AuditHelper auditHelper
protected final StandardAuditResourceTypes resourceTypes
public AbstractAuditListener(AuditHandlerService auditHandlerService, com.atlassian.audit.api.AuditService service, AuditHelper auditHelper, StandardAuditResourceTypes resourceTypes, AuditingContext auditingContext)
protected com.atlassian.audit.entity.ChangedValue newChangedValue(String nameKey, Object oldValue, Object newValue)
protected AuditHandlerService getAuditHandlerService()
protected void save(Supplier<com.atlassian.audit.entity.AuditEvent> eventSupplier)
protected void saveIfPresent(Supplier<Optional<com.atlassian.audit.entity.AuditEvent>> eventSupplier)
protected String getOnOff(boolean isOn)
protected String getTranslatedYesNoString(boolean isYes)
@Deprecated protected com.atlassian.audit.entity.AuditEvent.Builder auditEventBuilder(String actionKey, String categoryKey, com.atlassian.audit.entity.CoverageArea area, com.atlassian.audit.entity.CoverageLevel level)
protected <T> List<com.atlassian.audit.entity.ChangedValue> calculateChangedValues(T oldEntity, T newEntity)
protected com.atlassian.audit.entity.AuditResource buildResourceWithoutId(String name, String type)
protected com.atlassian.audit.entity.AuditResource buildResource(String name, String type, long id)
Copyright © 2003–2021 Atlassian. All rights reserved.