public class DefaultUserChecker extends Object implements UserChecker
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_KEY |
NUMBER_OF_REGISTERED_USERS, UNLIMITED_USERS
Constructor and Description |
---|
DefaultUserChecker() |
Modifier and Type | Method and Description |
---|---|
void |
decrementRegisteredUserCount()
Decrements the cached number of registered users.
|
int |
getNumberOfRegisteredUsers()
Returns cached value of the number of registered users.
|
UserAccessor |
getUserAccessor()
cannot use spring injection here because userChecker is a dependency of userAccessor.
|
boolean |
hasTooManyUsers() |
void |
incrementRegisteredUserCount()
Increments the cached number of registered users.
|
boolean |
isLicensedToAddMoreUsers() |
boolean |
isRunning() |
boolean |
isUnlimitedUserLicense() |
boolean |
isUnlimitedUserLicense(com.atlassian.extras.api.confluence.ConfluenceLicense license) |
void |
resetResult() |
void |
setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory) |
void |
setLicenseCalculator(LicenseCalculator licenseCalculator) |
void |
setLicenseService(LicenseService licenseService) |
public static final String CACHE_KEY
public void setLicenseCalculator(LicenseCalculator licenseCalculator)
public int getNumberOfRegisteredUsers()
getNumberOfRegisteredUsers
in interface UserChecker
public boolean hasTooManyUsers()
hasTooManyUsers
in interface UserChecker
public boolean isUnlimitedUserLicense()
isUnlimitedUserLicense
in interface UserChecker
public boolean isUnlimitedUserLicense(com.atlassian.extras.api.confluence.ConfluenceLicense license)
public boolean isLicensedToAddMoreUsers()
isLicensedToAddMoreUsers
in interface UserChecker
public void resetResult()
resetResult
in interface UserChecker
public boolean isRunning()
public void incrementRegisteredUserCount()
incrementRegisteredUserCount
in interface UserChecker
public void decrementRegisteredUserCount()
decrementRegisteredUserCount
in interface UserChecker
public void setLicenseService(LicenseService licenseService)
public void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
public UserAccessor getUserAccessor()
Copyright © 2003–2016 Atlassian. All rights reserved.