Class LicenseBasedCachingEnterpriseFeatureFlag
java.lang.Object
com.atlassian.confluence.internal.license.LicenseBasedCachingEnterpriseFeatureFlag
- All Implemented Interfaces:
EnterpriseFeatureFlag
public class LicenseBasedCachingEnterpriseFeatureFlag
extends Object
implements EnterpriseFeatureFlag
Allow access to enterprise features for DC licenses. Result is cached until licenses are changed.
- Since:
- 7.5.0
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseBasedCachingEnterpriseFeatureFlag
(LicenseService licenseService, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
onLicenseUpdatedEvent
(LicenceUpdatedEvent ignored) void
register()
void
-
Constructor Details
-
LicenseBasedCachingEnterpriseFeatureFlag
public LicenseBasedCachingEnterpriseFeatureFlag(LicenseService licenseService, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
register
@PostConstruct public void register() -
unregister
@PreDestroy public void unregister() -
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceEnterpriseFeatureFlag
- Returns:
- true if Enterprise features should be available to current instance
-
onLicenseUpdatedEvent
-