public interface

LicenseBannerHelper

com.atlassian.jira.license.LicenseBannerHelper
Known Indirect Subclasses

Class Overview

Knows how to generate and control the license banner. A license warning is displayed on the UI if the license is about to expire.

Summary

Public Methods
void clearRemindMe()
Reset the remind me state of the current user.
@Nonnull 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).
@Nonnull String getLicenseFlag()
Returns HTML to render flags for all licenses that about to expire or whose maintenance period has expired or is about to expire.
void remindMeLater()
Hide the license flag for the calling user.

Public Methods

public void clearRemindMe ()

Reset the remind me state of the current user.

@Nonnull public 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).

Returns
  • license banner HTML, or "" if no banner should be displayed.
See Also

@Nonnull public String getLicenseFlag ()

Returns 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).

Returns
  • license banner HTML, or "" if no banner should be displayed.

public void remindMeLater ()

Hide the license flag for the calling user. The flag will re-appear later.