Class AbstractAuditListener

    • Method Detail

      • newChangedValue

        protected com.atlassian.audit.entity.ChangedValue newChangedValue​(String nameKey,
                                                                          Object oldValue,
                                                                          Object newValue)
      • save

        protected void save​(Supplier<com.atlassian.audit.entity.AuditEvent> eventSupplier)
      • saveIfPresent

        protected void saveIfPresent​(Supplier<Optional<com.atlassian.audit.entity.AuditEvent>> eventSupplier)
      • getOnOff

        protected String getOnOff​(boolean isOn)
      • getTranslatedYesNoString

        protected String getTranslatedYesNoString​(boolean isYes)
      • auditEventBuilder

        @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)
        Deprecated.
        since 7.5.0 use AuditEvent.fromI18nKeys(String, String, CoverageLevel, CoverageArea) instead.
      • calculateChangedValues

        protected <T> List<com.atlassian.audit.entity.ChangedValue> calculateChangedValues​(T oldEntity,
                                                                                           T newEntity)
      • buildResourceWithoutId

        protected com.atlassian.audit.entity.AuditResource buildResourceWithoutId​(String name,
                                                                                  String type)
      • buildResource

        protected com.atlassian.audit.entity.AuditResource buildResource​(String name,
                                                                         String type,
                                                                         long id)
      • buildResource

        protected com.atlassian.audit.entity.AuditResource buildResource​(String name,
                                                                         String type,
                                                                         @Nullable String id)