@Produces(value="application/json") @Consumes(value="application/json") @Path(value="/license") public class TestkitLicenseResource extends Object
Constructor and Description |
---|
TestkitLicenseResource(CrowdLicenseManager crowdLicenseManager,
PropertyManager propertyManager,
ForgedLicenseDetector forgedLicenseDetector) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
backup() |
javax.ws.rs.core.Response |
isDataCenterLicense() |
javax.ws.rs.core.Response |
isForged() |
javax.ws.rs.core.Response |
restore() |
javax.ws.rs.core.Response |
setLicense(String licenseKey) |
javax.ws.rs.core.Response |
updateLicenseUsage() |
@Inject public TestkitLicenseResource(CrowdLicenseManager crowdLicenseManager, PropertyManager propertyManager, ForgedLicenseDetector forgedLicenseDetector)
@PUT @Path(value="/backup") public javax.ws.rs.core.Response backup()
@PUT @Path(value="/restore") public javax.ws.rs.core.Response restore() throws CrowdLicenseManagerException
CrowdLicenseManagerException
@GET @Path(value="/dc") public javax.ws.rs.core.Response isDataCenterLicense()
@PUT @Path(value="/update") public javax.ws.rs.core.Response setLicense(String licenseKey) throws CrowdLicenseManagerException
CrowdLicenseManagerException
@PUT @Path(value="/usage") public javax.ws.rs.core.Response updateLicenseUsage() throws CrowdLicenseManagerException
CrowdLicenseManagerException
@GET @Path(value="/forged") public javax.ws.rs.core.Response isForged()
Copyright © 2021 Atlassian. All rights reserved.