public class FlushUserCheckerCacheOnLicenseUpdate extends Object implements UserChecker, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
LicenceUpdatedEvent
s in order to reset the cache in UserChecker.resetResult()
.NUMBER_OF_REGISTERED_USERS, UNLIMITED_USERS
Constructor and Description |
---|
FlushUserCheckerCacheOnLicenseUpdate(UserChecker delegate,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
decrementRegisteredUserCount() |
void |
destroy() |
int |
getNumberOfRegisteredUsers() |
boolean |
hasTooManyUsers() |
void |
incrementRegisteredUserCount() |
boolean |
isLicensedToAddMoreUsers() |
boolean |
isUnlimitedUserLicense() |
void |
listenForLicenseUpdate(LicenceUpdatedEvent event) |
void |
resetResult() |
public FlushUserCheckerCacheOnLicenseUpdate(UserChecker delegate, com.atlassian.event.api.EventPublisher eventPublisher)
@EventListener public void listenForLicenseUpdate(LicenceUpdatedEvent event)
public int getNumberOfRegisteredUsers()
getNumberOfRegisteredUsers
in interface UserChecker
public boolean hasTooManyUsers()
hasTooManyUsers
in interface UserChecker
public boolean isLicensedToAddMoreUsers()
isLicensedToAddMoreUsers
in interface UserChecker
public void incrementRegisteredUserCount()
incrementRegisteredUserCount
in interface UserChecker
public void decrementRegisteredUserCount()
decrementRegisteredUserCount
in interface UserChecker
public void resetResult()
resetResult
in interface UserChecker
public boolean isUnlimitedUserLicense()
isUnlimitedUserLicense
in interface UserChecker
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
Copyright © 2003–2021 Atlassian. All rights reserved.