public interface

SpaceLicenseManager

com.atlassian.confluence.spaces.SpaceLicenseManager
Known Indirect Subclasses

Class Overview

The SpaceLicenseManager handles requests to licenses attached to a space.

Licenses on a space keep track of the number of users allowed within the space and other license details

Summary

Constants
String OLD_SPACE_LICENSE_KEY
String SPACE_LICENSE_KEY
Public Methods
License getLicenseForSpace(String spaceKey)
Retrieve a Confluence license attached to a space.
String getLicenseKeyForSpace(String spaceKey)
Retrieve the license key of a license attached to a space
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 setLicenseOnSpace(String spaceKey, String licenseKey)
Store a Confluence license against a space

Constants

public static final String OLD_SPACE_LICENSE_KEY

Constant Value: "evaluation.license"

public static final String SPACE_LICENSE_KEY

Constant Value: "space.license"

Public Methods

public License getLicenseForSpace (String spaceKey)

Retrieve a Confluence license attached to a space. If no license is attached to the space, the method will return an empty String.

Parameters
spaceKey The space key
Returns
  • license The Confluence license

public String getLicenseKeyForSpace (String spaceKey)

Retrieve the license key of a license attached to a space

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 setLicenseOnSpace (String spaceKey, String licenseKey)

Store a Confluence license against a space

Parameters
spaceKey The space key
licenseKey The Confluence license
Throws
LicenseException throws a license exception if the license is not valid