com.atlassian.confluence.license.store
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 java.lang.Object
- implements UserChecker, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Listens for LicenceUpdatedEvent
s in order to reset the cache in UserChecker.resetResult()
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlushUserCheckerCacheOnLicenseUpdate
public FlushUserCheckerCacheOnLicenseUpdate(UserChecker delegate,
com.atlassian.event.api.EventPublisher eventPublisher)
listenForLicenseUpdate
@EventListener
public void listenForLicenseUpdate(LicenceUpdatedEvent event)
getNumberOfRegisteredUsers
public int getNumberOfRegisteredUsers()
- Specified by:
getNumberOfRegisteredUsers
in interface UserChecker
hasTooManyUsers
public boolean hasTooManyUsers()
- Specified by:
hasTooManyUsers
in interface UserChecker
isLicensedToAddMoreUsers
public boolean isLicensedToAddMoreUsers()
- Specified by:
isLicensedToAddMoreUsers
in interface UserChecker
incrementRegisteredUserCount
public void incrementRegisteredUserCount()
- Specified by:
incrementRegisteredUserCount
in interface UserChecker
decrementRegisteredUserCount
public void decrementRegisteredUserCount()
- Specified by:
decrementRegisteredUserCount
in interface UserChecker
resetResult
public void resetResult()
- Specified by:
resetResult
in interface UserChecker
isUnlimitedUserLicense
public boolean isUnlimitedUserLicense()
- Specified by:
isUnlimitedUserLicense
in interface UserChecker
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
Copyright © 2003-2013 Atlassian. All Rights Reserved.