Class FlushUserCheckerCacheOnLicenseUpdate
- java.lang.Object
 - 
- com.atlassian.confluence.license.store.FlushUserCheckerCacheOnLicenseUpdate
 
 
- 
- All Implemented Interfaces:
 UserChecker,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public class FlushUserCheckerCacheOnLicenseUpdate extends Object implements UserChecker, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Listens forLicenceUpdatedEvents in order to reset the cache inUserChecker.resetResult(). 
- 
- 
Field Summary
- 
Fields inherited from interface com.atlassian.confluence.util.UserChecker
NUMBER_OF_REGISTERED_USERS, UNLIMITED_USERS 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FlushUserCheckerCacheOnLicenseUpdate(UserChecker delegate, com.atlassian.event.api.EventPublisher eventPublisher) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddecrementRegisteredUserCount()voiddestroy()intgetNumberOfRegisteredUsers()booleanhasTooManyUsers()voidincrementRegisteredUserCount()booleanisLicensedToAddMoreUsers()booleanisUnlimitedUserLicense()voidlistenForLicenseUpdate(LicenceUpdatedEvent event)voidresetResult() 
 - 
 
- 
- 
Constructor Detail
- 
FlushUserCheckerCacheOnLicenseUpdate
public FlushUserCheckerCacheOnLicenseUpdate(UserChecker delegate, com.atlassian.event.api.EventPublisher eventPublisher)
 
 - 
 
- 
Method Detail
- 
listenForLicenseUpdate
@EventListener public void listenForLicenseUpdate(LicenceUpdatedEvent event)
 
- 
getNumberOfRegisteredUsers
public int getNumberOfRegisteredUsers()
- Specified by:
 getNumberOfRegisteredUsersin interfaceUserChecker
 
- 
hasTooManyUsers
public boolean hasTooManyUsers()
- Specified by:
 hasTooManyUsersin interfaceUserChecker
 
- 
isLicensedToAddMoreUsers
public boolean isLicensedToAddMoreUsers()
- Specified by:
 isLicensedToAddMoreUsersin interfaceUserChecker
 
- 
incrementRegisteredUserCount
public void incrementRegisteredUserCount()
- Specified by:
 incrementRegisteredUserCountin interfaceUserChecker
 
- 
decrementRegisteredUserCount
public void decrementRegisteredUserCount()
- Specified by:
 decrementRegisteredUserCountin interfaceUserChecker
 
- 
resetResult
public void resetResult()
- Specified by:
 resetResultin interfaceUserChecker
 
- 
isUnlimitedUserLicense
public boolean isUnlimitedUserLicense()
- Specified by:
 isUnlimitedUserLicensein interfaceUserChecker
 
- 
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
 afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
 Exception
 
 - 
 
 -