@PublicApi
public interface FlagDismissalService
This is achieved by storing the time of dismissal and the reset time for a flag, and the latest one takes precedence.
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) |
void removeDismissFlagForUser(String flagKey, ApplicationUser user)
flagKey
- An arbitrary identifier for a given flaguser
- The user to remove the flag forvoid dismissFlagForUser(String flagKey, ApplicationUser user)
flagKey
- An arbitrary identifier for a given flaguser
- The user dismissing the flagvoid resetFlagDismissals(String flagKey)
flagKey
- The flag to start showing everyone againSet<String> getDismissedFlagsForUser(ApplicationUser user)
user
- The user for whom we wish to see dismissed flagsCopyright © 2002-2019 Atlassian. All Rights Reserved.