Interface AuditHelper
- All Known Implementing Classes:
DefaultAuditHelper
public interface AuditHelper
Contains helper methods to build auditing entities.
- Since:
- 7.5.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildChangedValueTextKey
(String changedValueKey) PrependsAUDIT_CHANGED_VALUE_PREFIX
to the key, helping to build auditing keys for changed values following the same naming conventionstatic String
buildDescriptionTextKey
(String descriptionKey) PrependsAUDIT_DESCRIPTION_PREFIX
to the key, helping to build auditing keys for descriptions following the same naming conventionstatic String
buildExtraAttribute
(String extraAttributeKey) PrependsAUDIT_EXTRA_ATTRIBUTE_PREFIX
to the key, helping to build auditing keys for extra attributes following the same naming conventionstatic String
buildSummaryTextKey
(String summaryKey) PrependsAUDIT_SUMMARY_PREFIX
to the key, helping to build auditing keys for summaries following the same naming conventionstatic String
buildTextKey
(String key) PrependsAUDIT_I18N_PREFIX
to the key, helping to build auditing keys following the same naming convention@Nullable String
fetchSpaceDisplayName
(@Nullable String spaceKey) @Nullable String
fetchSpaceId
(@Nullable String spaceKey) @Nullable String
fetchUserFullName
(@Nullable ConfluenceUser user) @Nullable String
fetchUserFullName
(@Nullable com.atlassian.crowd.model.user.User user) @Nullable String
fetchUserFullName
(@Nullable String username) @Nullable String
fetchUserKey
(@Nullable ConfluenceUser user) @Nullable String
fetchUserKey
(@Nullable com.atlassian.crowd.model.user.User user) @Nullable String
fetchUserKey
(@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
-
buildTextKey
PrependsAUDIT_I18N_PREFIX
to the key, helping to build auditing keys following the same naming convention- Parameters:
key
- message key- Returns:
- AUDIT_I18N_PREFIX + key
-
buildSummaryTextKey
PrependsAUDIT_SUMMARY_PREFIX
to the key, helping to build auditing keys for summaries following the same naming convention- Parameters:
summaryKey
- summary key- Returns:
- AUDIT_SUMMARY_PREFIX + key
-
buildChangedValueTextKey
PrependsAUDIT_CHANGED_VALUE_PREFIX
to 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
-
buildDescriptionTextKey
PrependsAUDIT_DESCRIPTION_PREFIX
to the key, helping to build auditing keys for descriptions following the same naming convention- Parameters:
descriptionKey
- description key- Returns:
- AUDIT_DESCRIPTION_PREFIX + key
-
buildExtraAttribute
PrependsAUDIT_EXTRA_ATTRIBUTE_PREFIX
to 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
-
translate
Replaces given key with appropriate message.- Parameters:
key
- message key- Returns:
- message for current locale.
-
fetchSpaceId
-
fetchSpaceDisplayName
-
fetchUserKey
-
fetchUserKey
-
fetchUserFullName
-
fetchUserFullName
-
fetchUserKey
-
fetchUserFullName
-