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 for
LicenceUpdatedEvents in order to reset the cache in UserChecker.resetResult().-
Field Summary
Fields inherited from interface com.atlassian.confluence.util.UserChecker
NUMBER_OF_REGISTERED_USERS, UNLIMITED_USERS -
Constructor Summary
ConstructorsConstructorDescriptionFlushUserCheckerCacheOnLicenseUpdate(UserChecker delegate, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddestroy()intbooleanvoidbooleanbooleanvoidvoid
-
Constructor Details
-
FlushUserCheckerCacheOnLicenseUpdate
public FlushUserCheckerCacheOnLicenseUpdate(UserChecker delegate, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
listenForLicenseUpdate
-
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
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-