public class DefaultUserChecker extends Object implements UserChecker
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_KEY
Deprecated.
since 5.10. Don't. Just don't.
|
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()
Deprecated.
since 5.10. Get your own damned 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)
Deprecated.
since 5.10 Use
ProductLicense.isUnlimitedNumberOfUsers() |
void |
resetResult() |
void |
setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
Deprecated.
since 5.10
|
void |
setLicenseCalculator(LicenseCalculator licenseCalculator) |
void |
setLicenseService(LicenseService licenseService) |
void |
setRegisteredUsersCache(RegisteredUsersCache registeredUsersCache) |
@Deprecated 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
@Deprecated public boolean isUnlimitedUserLicense(com.atlassian.extras.api.confluence.ConfluenceLicense license)
ProductLicense.isUnlimitedNumberOfUsers()
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)
@Deprecated public void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
public void setRegisteredUsersCache(RegisteredUsersCache registeredUsersCache)
@Deprecated public UserAccessor getUserAccessor()
Copyright © 2003–2016 Atlassian. All rights reserved.