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