public class MockApplicationAccess extends Object implements com.atlassian.application.api.ApplicationAccess
Constructor and Description |
---|
MockApplicationAccess(com.atlassian.application.api.ApplicationKey key,
org.joda.time.DateTime buildDate) |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
buildDate() |
boolean |
canUserAccessApplication(com.atlassian.sal.api.user.UserKey userKey) |
com.atlassian.fugue.Option<com.atlassian.application.api.ApplicationAccess.AccessError> |
getAccessError(com.atlassian.sal.api.user.UserKey userKey) |
int |
getActiveUserCount() |
com.atlassian.application.api.ApplicationKey |
getApplicationKey() |
URI |
getManagementPage() |
com.atlassian.fugue.Option<Integer> |
getMaximumUserCount() |
public MockApplicationAccess(com.atlassian.application.api.ApplicationKey key, org.joda.time.DateTime buildDate)
public com.atlassian.application.api.ApplicationKey getApplicationKey()
getApplicationKey
in interface com.atlassian.application.api.ApplicationAccess
public com.atlassian.fugue.Option<Integer> getMaximumUserCount()
getMaximumUserCount
in interface com.atlassian.application.api.ApplicationAccess
public int getActiveUserCount()
getActiveUserCount
in interface com.atlassian.application.api.ApplicationAccess
public boolean canUserAccessApplication(@Nullable com.atlassian.sal.api.user.UserKey userKey)
canUserAccessApplication
in interface com.atlassian.application.api.ApplicationAccess
public com.atlassian.fugue.Option<com.atlassian.application.api.ApplicationAccess.AccessError> getAccessError(@Nullable com.atlassian.sal.api.user.UserKey userKey)
getAccessError
in interface com.atlassian.application.api.ApplicationAccess
public URI getManagementPage()
getManagementPage
in interface com.atlassian.application.api.ApplicationAccess
public org.joda.time.DateTime buildDate()
Copyright © 2002-2015 Atlassian. All Rights Reserved.