|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.studio.MockStudioHooks.MockStudioLicenseHooks
public static class MockStudioHooks.MockStudioLicenseHooks
Constructor Summary | |
---|---|
MockStudioHooks.MockStudioLicenseHooks()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockStudioHooks.MockStudioLicenseHooks()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |