public interface

StudioLicenseHooks

com.atlassian.jira.plugin.studio.StudioLicenseHooks
Known Indirect Subclasses

Class Overview

Methods on this interface are called by JIRA when it makes some of its Licensing decisions. All of these methods will need to be thread safe. These method can be called by multiple threads at the same time. The same method can be called by my multiple threads at the same time. All of these methods will need to be performant. JIRA will not do any caching of the results and will probably call a method with the same arguments multiple times (possibly at the same time).

Summary

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.
boolean hasExceededUserLimit(Function<VoidBoolean> method)
Called when a call to hasExceededUserLimit() is made.

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 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