public final class NotLicensedAccess extends Object implements ApplicationAccess
ApplicationAccess when the application is not
licensed. In this case:
getMaximumUserCount() returns 0.getActiveUserCount() returns 0.canUserAccessApplication(com.atlassian.sal.api.user.UserKey) returns false.getAccessError(com.atlassian.sal.api.user.UserKey)} returns AccessError#UNLICENSED.getApplicationKey() return the constructor argument.getManagementPage() return the constructor argument.ApplicationAccess.AccessError| Constructor and Description |
|---|
NotLicensedAccess(ApplicationKey key,
URI managementPage)
Create a new instance with the passed key and management URI.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUserAccessApplication(com.atlassian.sal.api.user.UserKey userKey) |
io.atlassian.fugue.Option<ApplicationAccess.AccessError> |
getAccessError(com.atlassian.sal.api.user.UserKey userKey) |
int |
getActiveUserCount() |
ApplicationKey |
getApplicationKey() |
URI |
getManagementPage() |
io.atlassian.fugue.Option<Integer> |
getMaximumUserCount() |
public NotLicensedAccess(ApplicationKey key, URI managementPage)
key - the key to return from getApplicationKey().managementPage - the URI to return from getManagementPage().public ApplicationKey getApplicationKey()
getApplicationKey in interface ApplicationAccesspublic io.atlassian.fugue.Option<Integer> getMaximumUserCount()
getMaximumUserCount in interface ApplicationAccesspublic int getActiveUserCount()
getActiveUserCount in interface ApplicationAccesspublic boolean canUserAccessApplication(@Nullable com.atlassian.sal.api.user.UserKey userKey)
canUserAccessApplication in interface ApplicationAccesspublic io.atlassian.fugue.Option<ApplicationAccess.AccessError> getAccessError(@Nullable com.atlassian.sal.api.user.UserKey userKey)
getAccessError in interface ApplicationAccesspublic URI getManagementPage()
getManagementPage in interface ApplicationAccessCopyright © 2018 Atlassian. All rights reserved.