Class LicenseBannerHelperImpl
- All Implemented Interfaces:
LicenseBannerHelper
When one or more licensed applications are about to expire, a warning will inform the administrators. Applications may be licensed within a single or multiple licenses.
Either the maintenance or the subscription, for non-perpetual licenses, may be expiring.
When the administrator dismisses the flag ot gets snoozed. The reminder schedule is 90, 45, 30, 15 and 7 days before due date, as well as on the day of expiry. For subscription licenses the administrator is reminded by a banner, that can not be suppressed. When multiple licenses are expiring at different times within the 90 day notification period, the schedule will follow the earliest license's reminder epochs.
The remind me later flag will be cleared when all licenses are renewed, hence are beyond the 90 day notification period
Special care is taken to display correct messages for single or multiple applications expiring.
Expiring licenses take priority over maintenance expiry, maintaining only one flag or banner displaying for all expirations.
- Since:
- v6.3
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseBannerHelperImpl(JiraAuthenticationContext context, GlobalPermissionManager globalPermissionManager, UserPropertyManager propertyManager, JiraLicenseManager jiraLicenseManager, SoyTemplateRendererProvider rendererProvider, BaseUrl baseUrl, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidReset the remind me state of the current user.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).Returns HTML to render flags for all licenses that about to expire or whose maintenance period has expired or is about to expire.voidHide the license flag for the calling user.
-
Constructor Details
-
LicenseBannerHelperImpl
public LicenseBannerHelperImpl(JiraAuthenticationContext context, GlobalPermissionManager globalPermissionManager, UserPropertyManager propertyManager, JiraLicenseManager jiraLicenseManager, SoyTemplateRendererProvider rendererProvider, BaseUrl baseUrl, FeatureManager featureManager)
-
-
Method Details
-
getExpiryBanner
Description copied from interface:LicenseBannerHelperReturns 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).- Specified by:
getExpiryBannerin interfaceLicenseBannerHelper- Returns:
- license banner HTML, or
""if no banner should be displayed. - See Also:
-
canViewLicenseInfo
public boolean canViewLicenseInfo()- Specified by:
canViewLicenseInfoin interfaceLicenseBannerHelper- Returns:
- true if the license banner can be displayed to the current user and false otherwise
-
getLicenseFlag
Description copied from interface:LicenseBannerHelperReturns HTML to render flags for all licenses that about to expire or whose maintenance period has expired or is about to expire. Returns an empty string if no banners are required (ie: all licenses are within maintenance).- Specified by:
getLicenseFlagin interfaceLicenseBannerHelper- Returns:
- license banner HTML, or
""if no banner should be displayed. - See Also:
-
remindMeLater
public void remindMeLater()Description copied from interface:LicenseBannerHelperHide the license flag for the calling user. The flag will re-appear later.- Specified by:
remindMeLaterin interfaceLicenseBannerHelper
-
clearRemindMe
public void clearRemindMe()Description copied from interface:LicenseBannerHelperReset the remind me state of the current user.- Specified by:
clearRemindMein interfaceLicenseBannerHelper
-