public class FlagDismissalServiceImpl extends Object implements FlagDismissalService
Constructor and Description |
---|
FlagDismissalServiceImpl(UserPreferencesManager userPreferencesManager,
JiraPropertySetFactory jiraPropertySetFactory,
com.atlassian.core.util.Clock clock) |
Modifier and Type | Method and Description |
---|---|
void |
dismissFlagForUser(String flagKey,
ApplicationUser user) |
Set<String> |
getDismissedFlagsForUser(ApplicationUser user) |
void |
removeDismissFlagForUser(String flagKey,
ApplicationUser user)
Remove the dismiss entry for the current user.
|
void |
resetFlagDismissals(String flagKey) |
public FlagDismissalServiceImpl(UserPreferencesManager userPreferencesManager, JiraPropertySetFactory jiraPropertySetFactory, com.atlassian.core.util.Clock clock)
public void removeDismissFlagForUser(String flagKey, ApplicationUser user)
FlagDismissalService
removeDismissFlagForUser
in interface FlagDismissalService
flagKey
- An arbitrary identifier for a given flaguser
- The user to remove the flag forpublic void dismissFlagForUser(String flagKey, ApplicationUser user)
dismissFlagForUser
in interface FlagDismissalService
flagKey
- An arbitrary identifier for a given flaguser
- The user dismissing the flagpublic void resetFlagDismissals(String flagKey)
resetFlagDismissals
in interface FlagDismissalService
flagKey
- The flag to start showing everyone againpublic Set<String> getDismissedFlagsForUser(ApplicationUser user)
getDismissedFlagsForUser
in interface FlagDismissalService
user
- The user for whom we wish to see dismissed flagsCopyright © 2002-2019 Atlassian. All Rights Reserved.