Class LicenseResource
- java.lang.Object
-
- com.atlassian.confluence.license.rest.resource.LicenseResource
-
public class LicenseResource extends Object
A REST endpoint that exposes info about users of this instance. Note that this endpoint will only provide usable data in the case of a "Confluence-only instance". DO NOT USE THIS endpoint for OnDemand instances as license information is be overridden by HAUP (Hosted Application User Provisioning)
-
-
Constructor Summary
Constructors Constructor Description LicenseResource(LicenseWebFacade licenseWebFacade, BootstrapManager bootstrapManager, ClusterManager clusterManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LicenseService licenseService, UserChecker userChecker, com.atlassian.upm.api.license.DataCenterCrossgradeablePlugins dataCenterCrossgradeablePlugins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getDetails()
Return some of the parameters of this license.javax.ws.rs.core.Response
getMaxUsers()
Return the number of users that is allowed by the current licensejavax.ws.rs.core.Response
getOrganisation()
Return the organisation name of this Confluencejavax.ws.rs.core.Response
getRemainingUserCount()
Return the number of free slots on this Confluence instancejavax.ws.rs.core.Response
getUserCount()
Return the number of users that have access to this Confluencejavax.ws.rs.core.Response
validate(String licenseKey)
-
-
-
Constructor Detail
-
LicenseResource
public LicenseResource(@Qualifier("licenseWebFacade") LicenseWebFacade licenseWebFacade, BootstrapManager bootstrapManager, ClusterManager clusterManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LicenseService licenseService, UserChecker userChecker, com.atlassian.upm.api.license.DataCenterCrossgradeablePlugins dataCenterCrossgradeablePlugins)
-
-
Method Detail
-
getDetails
public javax.ws.rs.core.Response getDetails()
Return some of the parameters of this license.
-
getOrganisation
public javax.ws.rs.core.Response getOrganisation()
Return the organisation name of this Confluence
-
getUserCount
public javax.ws.rs.core.Response getUserCount()
Return the number of users that have access to this Confluence
-
getRemainingUserCount
public javax.ws.rs.core.Response getRemainingUserCount()
Return the number of free slots on this Confluence instance- Returns:
-
getMaxUsers
public javax.ws.rs.core.Response getMaxUsers()
Return the number of users that is allowed by the current license
-
validate
public javax.ws.rs.core.Response validate(String licenseKey)
-
-