public class DefaultAuditHelper extends Object implements AuditHelper
AUDIT_CHANGED_VALUE_PREFIX, AUDIT_DESCRIPTION_PREFIX, AUDIT_EXTRA_ATTRIBUTE_PREFIX, AUDIT_I18N_PREFIX, AUDIT_SUMMARY_PREFIX
Constructor and Description |
---|
DefaultAuditHelper(I18NBeanFactory i18NBeanFactory,
LocaleManager localeManager,
SpaceManagerInternal spaceManager,
UserAccessor userAccessor) |
Modifier and Type | Method and Description |
---|---|
@Nullable String |
fetchSpaceDisplayName(@Nullable String spaceKey) |
@Nullable String |
fetchSpaceId(@Nullable String spaceKey) |
@Nullable String |
fetchUserFullName(@Nullable ConfluenceUser user) |
String |
fetchUserFullName(@Nullable String username) |
@Nullable String |
fetchUserFullName(@Nullable com.atlassian.crowd.model.user.User user) |
@Nullable String |
fetchUserKey(@Nullable ConfluenceUser user) |
@Nullable String |
fetchUserKey(@Nullable String username) |
@Nullable String |
fetchUserKey(@Nullable com.atlassian.crowd.model.user.User user) |
String |
translate(String key)
Replaces given key with appropriate message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildChangedValueTextKey, buildDescriptionTextKey, buildExtraAttribute, buildSummaryTextKey, buildTextKey
public DefaultAuditHelper(I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, SpaceManagerInternal spaceManager, UserAccessor userAccessor)
public String translate(String key)
AuditHelper
translate
in interface AuditHelper
key
- message keypublic @Nullable String fetchSpaceId(@Nullable String spaceKey)
fetchSpaceId
in interface AuditHelper
public @Nullable String fetchSpaceDisplayName(@Nullable String spaceKey)
fetchSpaceDisplayName
in interface AuditHelper
public @Nullable String fetchUserKey(@Nullable ConfluenceUser user)
fetchUserKey
in interface AuditHelper
public @Nullable String fetchUserKey(@Nullable com.atlassian.crowd.model.user.User user)
fetchUserKey
in interface AuditHelper
public @Nullable String fetchUserFullName(@Nullable ConfluenceUser user)
fetchUserFullName
in interface AuditHelper
public @Nullable String fetchUserFullName(@Nullable com.atlassian.crowd.model.user.User user)
fetchUserFullName
in interface AuditHelper
public @Nullable String fetchUserKey(@Nullable String username)
fetchUserKey
in interface AuditHelper
public String fetchUserFullName(@Nullable String username)
fetchUserFullName
in interface AuditHelper
Copyright © 2003–2021 Atlassian. All rights reserved.
View cookie preferences