public static class MockStudioHooks.MockStudioLicenseHooks extends Object implements StudioLicenseHooks
Constructor and Description |
---|
MockStudioHooks.MockStudioLicenseHooks() |
Modifier and Type | Method and Description |
---|---|
boolean |
canActivateNumberOfUsers(int numUsers,
com.atlassian.util.concurrent.Function<Integer,Boolean> method)
Called when a call to
UserUtil.canActivateNumberOfUsers(int) is made. |
boolean |
canActivateUsers(Collection<String> userNames,
com.atlassian.util.concurrent.Function<Collection<String>,Boolean> method)
Called when a call to
UserUtil.canActivateUsers(java.util.Collection) is
made. |
void |
clearActiveUserCount(com.atlassian.util.concurrent.Function<Void,Void> method)
Called when a call to
UserUtil.clearActiveUserCount() is made. |
static MockStudioHooks.MockStudioLicenseHooks |
getInstance() |
boolean |
hasExceededUserLimit(com.atlassian.util.concurrent.Function<Void,Boolean> method)
Called when a call to
UserUtil.hasExceededUserLimit() is made. |
public MockStudioHooks.MockStudioLicenseHooks()
public static MockStudioHooks.MockStudioLicenseHooks getInstance()
public void clearActiveUserCount(com.atlassian.util.concurrent.Function<Void,Void> method)
StudioLicenseHooks
UserUtil.clearActiveUserCount()
is made. JIRA's
default implementation of this method can be called by invoking the function passed to the method.clearActiveUserCount
in interface StudioLicenseHooks
method
- function that can be used to invoke JIRAs default implementation of this method.public boolean hasExceededUserLimit(com.atlassian.util.concurrent.Function<Void,Boolean> method)
StudioLicenseHooks
UserUtil.hasExceededUserLimit()
is made. JIRA's
default implementation of this method can be called by invoking the function passed to the method.hasExceededUserLimit
in interface StudioLicenseHooks
method
- function that can be used to invoke JIRAs default implementation of this method.UserUtil.hasExceededUserLimit()
}.public boolean canActivateNumberOfUsers(int numUsers, com.atlassian.util.concurrent.Function<Integer,Boolean> method)
StudioLicenseHooks
UserUtil.canActivateNumberOfUsers(int)
is made. JIRA's
default implementation of this method can be called by invoking the function passed to the method.canActivateNumberOfUsers
in interface StudioLicenseHooks
numUsers
- see UserUtil.canActivateNumberOfUsers(int)
method
- function that can be used to invoke JIRAs default implementation of this method.UserUtil.canActivateNumberOfUsers(int)
public boolean canActivateUsers(Collection<String> userNames, com.atlassian.util.concurrent.Function<Collection<String>,Boolean> method)
StudioLicenseHooks
UserUtil.canActivateUsers(java.util.Collection)
is
made. JIRA's default implementation of this method can be called by invoking the function passed to the method.canActivateUsers
in interface StudioLicenseHooks
userNames
- see UserUtil.canActivateUsers(java.util.Collection)
method
- function that can be used to invoke JIRAs default implementation of this method.UserUtil.canActivateUsers(java.util.Collection)
Copyright © 2002-2015 Atlassian. All Rights Reserved.