public class

DefaultSpaceLicenseManager

extends Object
implements SpaceLicenseManager
java.lang.Object
   ↳ com.atlassian.confluence.spaces.DefaultSpaceLicenseManager

Summary

[Expand]
Inherited Constants
From interface com.atlassian.confluence.spaces.SpaceLicenseManager
Public Constructors
DefaultSpaceLicenseManager()
Public Methods
License getLicenseForSpace(String spaceKey)
Get the license key attached to the space and create a new license object
String getLicenseKeyForSpace(String spaceKey)
We changed the key to store the space license.
int getUserLimit(String spaceKey)
Get the userlimit within a space based on the license attached.
void removeLicenseFromSpace(String spaceKey)
removes an evaluation license from the space converting it into a standard space
void setBandanaManager(BandanaManager bandanaManager)
void setLicenseOnSpace(String spaceKey, String licenseKey)
Store a Confluence license against a space
void setMessageManager(MessageManager messageManager)
void setSpaceManager(SpaceManager spaceManager)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.spaces.SpaceLicenseManager

Public Constructors

public DefaultSpaceLicenseManager ()

Public Methods

public License getLicenseForSpace (String spaceKey)

Get the license key attached to the space and create a new license object

Parameters
spaceKey The space key
Returns
  • license The Confluence license

public String getLicenseKeyForSpace (String spaceKey)

We changed the key to store the space license. For backwards compatibility we check for the old key as well. We can remove this check in about a month since all licenses will use the new key by then.

Parameters
spaceKey The space key
Returns
  • licenseKey The space's license as a String

public int getUserLimit (String spaceKey)

Get the userlimit within a space based on the license attached.

Parameters
spaceKey key of the space
Returns
  • int user limit. If there is no user limit -1 will be retured.

public void removeLicenseFromSpace (String spaceKey)

removes an evaluation license from the space converting it into a standard space

Parameters
spaceKey The space key

public void setBandanaManager (BandanaManager bandanaManager)

public void setLicenseOnSpace (String spaceKey, String licenseKey)

Store a Confluence license against a space

Parameters
spaceKey The space key
licenseKey The Confluence license
Throws
LicenseException

public void setMessageManager (MessageManager messageManager)

public void setSpaceManager (SpaceManager spaceManager)