public class LicenseBannerHelperImpl extends Object implements LicenseBannerHelper
Constructor and Description |
---|
LicenseBannerHelperImpl(JiraAuthenticationContext context,
GlobalPermissionManager globalPermissionManager,
UserPropertyManager propertyManager,
JiraLicenseManager jiraLicenseManager,
SoyTemplateRendererProvider rendererProvider,
FeatureManager featureManager,
BaseUrl baseUrl) |
Modifier and Type | Method and Description |
---|---|
void |
clearRemindMe()
Reset the remind me state of the current user.
|
String |
getExpiryBanner()
Returns HTML to render expiry banners for all licenses that are expired or are about to expire, or an empty
string if no banners are required (ie: no licenses have expired or are near expiry).
|
String |
getMaintenanceFlag()
Returns HTML to render expiry banners for all licenses whose maintenance period has expired or is about to
expire, or an empty string if no banners are required (ie: all licenses are within maintenance).
|
void |
remindMeLater()
Hide the license banner for the calling user.
|
public LicenseBannerHelperImpl(JiraAuthenticationContext context, GlobalPermissionManager globalPermissionManager, UserPropertyManager propertyManager, JiraLicenseManager jiraLicenseManager, SoyTemplateRendererProvider rendererProvider, FeatureManager featureManager, BaseUrl baseUrl)
@Nonnull public String getExpiryBanner()
LicenseBannerHelper
getExpiryBanner
in interface LicenseBannerHelper
""
if no banner should be displayed.LicenseDetails.isExpired()
@Nonnull public String getMaintenanceFlag()
LicenseBannerHelper
getMaintenanceFlag
in interface LicenseBannerHelper
""
if no banner should be displayed.LicenseDetails.isEntitledToSupport()
public void remindMeLater()
LicenseBannerHelper
remindMeLater
in interface LicenseBannerHelper
public void clearRemindMe()
LicenseBannerHelper
clearRemindMe
in interface LicenseBannerHelper
Copyright © 2002-2015 Atlassian. All Rights Reserved.