Class TestkitLicenseResource
java.lang.Object
com.atlassian.crowd.plugins.testkit.rest.TestkitLicenseResource
@Singleton
@Produces("application/json")
@Consumes("application/json")
@Path("/license")
public class TestkitLicenseResource
extends Object
-
Constructor Summary
ConstructorDescriptionTestkitLicenseResource
(CrowdLicenseManager crowdLicenseManager, PropertyManager propertyManager, ForgedLicenseDetector forgedLicenseDetector) -
Method Summary
-
Constructor Details
-
TestkitLicenseResource
@Inject public TestkitLicenseResource(CrowdLicenseManager crowdLicenseManager, PropertyManager propertyManager, ForgedLicenseDetector forgedLicenseDetector)
-
-
Method Details
-
backup
@PUT @Path("/backup") public javax.ws.rs.core.Response backup() -
restore
@PUT @Path("/restore") public javax.ws.rs.core.Response restore() throws CrowdLicenseManagerException- Throws:
CrowdLicenseManagerException
-
isDataCenterLicense
@GET @Path("/dc") public javax.ws.rs.core.Response isDataCenterLicense() -
setLicense
@PUT @Path("/update") public javax.ws.rs.core.Response setLicense(String licenseKey) throws CrowdLicenseManagerException - Throws:
CrowdLicenseManagerException
-
updateLicenseUsage
@PUT @Path("/usage") public javax.ws.rs.core.Response updateLicenseUsage() throws CrowdLicenseManagerException- Throws:
CrowdLicenseManagerException
-
isForged
@GET @Path("/forged") public javax.ws.rs.core.Response isForged() -
getUsage
@GET @Path("/usage") public javax.ws.rs.core.Response getUsage()
-