public static class

MockStudioHooks.MockStudioLicenseHooks

extends Object
implements StudioLicenseHooks
java.lang.Object
   ↳ com.atlassian.jira.studio.MockStudioHooks.MockStudioLicenseHooks

Summary

Public Constructors
MockStudioHooks.MockStudioLicenseHooks()
Public Methods
boolean canActivateNumberOfUsers(int numUsers, Function<IntegerBoolean> method)
Called when a call to canActivateNumberOfUsers(int) is made.
boolean canActivateUsers(Collection<String> userNames, Function<Collection<String>, Boolean> method)
Called when a call to canActivateUsers(java.util.Collection) is made.
void clearActiveUserCount(Function<VoidVoid> method)
Called when a call to clearActiveUserCount() is made.
static MockStudioHooks.MockStudioLicenseHooks getInstance()
boolean hasExceededUserLimit(Function<VoidBoolean> method)
Called when a call to hasExceededUserLimit() is made.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.studio.StudioLicenseHooks

Public Constructors

public MockStudioHooks.MockStudioLicenseHooks ()

Public Methods

public boolean canActivateNumberOfUsers (int numUsers, Function<IntegerBoolean> method)

Called when a call to canActivateNumberOfUsers(int) is made. JIRA's default implementation of this method can be called by invoking the function passed to the method.

Parameters
numUsers see canActivateNumberOfUsers(int)
method function that can be used to invoke JIRAs default implementation of this method.

public boolean canActivateUsers (Collection<String> userNames, Function<Collection<String>, Boolean> method)

Called when a call to canActivateUsers(java.util.Collection) is made. JIRA's default implementation of this method can be called by invoking the function passed to the method.

Parameters
userNames see canActivateUsers(java.util.Collection)
method function that can be used to invoke JIRAs default implementation of this method.

public void clearActiveUserCount (Function<VoidVoid> method)

Called when a call to clearActiveUserCount() is made. JIRA's default implementation of this method can be called by invoking the function passed to the method.

Parameters
method function that can be used to invoke JIRAs default implementation of this method.

public static MockStudioHooks.MockStudioLicenseHooks getInstance ()

public boolean hasExceededUserLimit (Function<VoidBoolean> method)

Called when a call to hasExceededUserLimit() is made. JIRA's default implementation of this method can be called by invoking the function passed to the method.

Parameters
method function that can be used to invoke JIRAs default implementation of this method.
Returns