Interface AuditHelper
- All Known Implementing Classes:
- DefaultAuditHelper
public interface AuditHelper
Contains helper methods to build auditing entities.
- Since:
- 7.5.0
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringbuildChangedValueTextKey(String changedValueKey) PrependsAUDIT_CHANGED_VALUE_PREFIXto the key, helping to build auditing keys for changed values following the same naming conventionstatic StringbuildDescriptionTextKey(String descriptionKey) PrependsAUDIT_DESCRIPTION_PREFIXto the key, helping to build auditing keys for descriptions following the same naming conventionstatic StringbuildExtraAttribute(String extraAttributeKey) PrependsAUDIT_EXTRA_ATTRIBUTE_PREFIXto the key, helping to build auditing keys for extra attributes following the same naming conventionstatic StringbuildSummaryTextKey(String summaryKey) PrependsAUDIT_SUMMARY_PREFIXto the key, helping to build auditing keys for summaries following the same naming conventionstatic StringbuildTextKey(String key) PrependsAUDIT_I18N_PREFIXto the key, helping to build auditing keys following the same naming convention@Nullable StringfetchSpaceDisplayName(@Nullable String spaceKey) @Nullable StringfetchSpaceId(@Nullable String spaceKey) @Nullable StringfetchUserFullName(@Nullable ConfluenceUser user) @Nullable StringfetchUserFullName(@Nullable com.atlassian.crowd.model.user.User user) @Nullable StringfetchUserFullName(@Nullable String username) @Nullable StringfetchUserKey(@Nullable ConfluenceUser user) @Nullable StringfetchUserKey(@Nullable com.atlassian.crowd.model.user.User user) @Nullable StringfetchUserKey(@Nullable String username) Replaces given key with appropriate message.
- 
Field Details- 
AUDIT_I18N_PREFIX- See Also:
 
- 
AUDIT_SUMMARY_PREFIX- See Also:
 
- 
AUDIT_DESCRIPTION_PREFIX- See Also:
 
- 
AUDIT_CHANGED_VALUE_PREFIX- See Also:
 
- 
AUDIT_EXTRA_ATTRIBUTE_PREFIX- See Also:
 
 
- 
- 
Method Details- 
buildTextKeyPrependsAUDIT_I18N_PREFIXto the key, helping to build auditing keys following the same naming convention- Parameters:
- key- message key
- Returns:
- AUDIT_I18N_PREFIX + key
 
- 
buildSummaryTextKeyPrependsAUDIT_SUMMARY_PREFIXto the key, helping to build auditing keys for summaries following the same naming convention- Parameters:
- summaryKey- summary key
- Returns:
- AUDIT_SUMMARY_PREFIX + key
 
- 
buildChangedValueTextKeyPrependsAUDIT_CHANGED_VALUE_PREFIXto the key, helping to build auditing keys for changed values following the same naming convention- Parameters:
- changedValueKey- changed value key
- Returns:
- AUDIT_CHANGED_VALUE_PREFIX + key
 
- 
buildDescriptionTextKeyPrependsAUDIT_DESCRIPTION_PREFIXto the key, helping to build auditing keys for descriptions following the same naming convention- Parameters:
- descriptionKey- description key
- Returns:
- AUDIT_DESCRIPTION_PREFIX + key
 
- 
buildExtraAttributePrependsAUDIT_EXTRA_ATTRIBUTE_PREFIXto the key, helping to build auditing keys for extra attributes following the same naming convention- Parameters:
- extraAttributeKey- extra attribute key
- Returns:
- AUDIT_EXTRA_ATTRIBUTE_PREFIX + key
 
- 
translateReplaces given key with appropriate message.- Parameters:
- key- message key
- Returns:
- message for current locale.
 
- 
fetchSpaceId
- 
fetchSpaceDisplayName
- 
fetchUserKey
- 
fetchUserKey
- 
fetchUserFullName
- 
fetchUserFullName
- 
fetchUserKey
- 
fetchUserFullName
 
-