public class NewsletterUserPreferencesManager extends Object
Constructor and Description |
---|
NewsletterUserPreferencesManager(com.atlassian.core.util.Clock clock,
ApplicationProperties applicationProperties,
UserPreferencesManager userPreferencesManager,
FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldShowSignupTip(io.atlassian.fugue.Option<ApplicationUser> user)
Returns true if it's been more than 7 days after the first time they logged in.
|
public NewsletterUserPreferencesManager(com.atlassian.core.util.Clock clock, ApplicationProperties applicationProperties, UserPreferencesManager userPreferencesManager, FeatureManager featureManager)
public boolean shouldShowSignupTip(io.atlassian.fugue.Option<ApplicationUser> user)
For anonymous users this method will always return false.
One side effect of calling this method is that the current time will be stored against a 'newsletter.signup.first.view' user preference for the provided user that will be used in subsequent calls to determine if enough time has elapsed before the newsletter signup tip can be shown.
user
- Current user. May be empty for anonymous users.Copyright © 2002-2021 Atlassian. All Rights Reserved.