|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.spaces.DefaultSpaceLicenseManager
public class DefaultSpaceLicenseManager
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.spaces.SpaceLicenseManager |
---|
OLD_SPACE_LICENSE_KEY, SPACE_LICENSE_KEY |
Constructor Summary | |
---|---|
DefaultSpaceLicenseManager()
|
Method Summary | |
---|---|
com.atlassian.license.License |
getLicenseForSpace(java.lang.String spaceKey)
Get the license key attached to the space and create a new license object |
java.lang.String |
getLicenseKeyForSpace(java.lang.String spaceKey)
We changed the key to store the space license. |
int |
getUserLimit(java.lang.String spaceKey)
Get the userlimit within a space based on the license attached. |
void |
removeLicenseFromSpace(java.lang.String spaceKey)
removes an evaluation license from the space converting it into a standard space |
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
|
void |
setLicenseOnSpace(java.lang.String spaceKey,
java.lang.String licenseKey)
Store a Confluence license against a space |
void |
setMessageManager(MessageManager messageManager)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSpaceLicenseManager()
Method Detail |
---|
public int getUserLimit(java.lang.String spaceKey)
SpaceLicenseManager
getUserLimit
in interface SpaceLicenseManager
spaceKey
- key of the space
public com.atlassian.license.License getLicenseForSpace(java.lang.String spaceKey)
getLicenseForSpace
in interface SpaceLicenseManager
spaceKey
- The space key
public java.lang.String getLicenseKeyForSpace(java.lang.String spaceKey)
getLicenseKeyForSpace
in interface SpaceLicenseManager
spaceKey
- The space key
public void setLicenseOnSpace(java.lang.String spaceKey, java.lang.String licenseKey) throws com.atlassian.license.LicenseException
SpaceLicenseManager
setLicenseOnSpace
in interface SpaceLicenseManager
spaceKey
- The space keylicenseKey
- The Confluence license
com.atlassian.license.LicenseException
- throws a license exception if the license is not validpublic void removeLicenseFromSpace(java.lang.String spaceKey)
SpaceLicenseManager
removeLicenseFromSpace
in interface SpaceLicenseManager
spaceKey
- The space keypublic void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
public void setMessageManager(MessageManager messageManager)
public void setSpaceManager(SpaceManager spaceManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |