Class LicenseManagerRestController
- java.lang.Object
-
- jetbrains.buildServer.controllers.license.LicenseManagerRestController
-
@RestController @RequestMapping("/license") public class LicenseManagerRestController extends Object
-
-
Constructor Summary
Constructors Constructor Description LicenseManagerRestController(BuildServerEx server, JBAClient jbaClient, SecurityContextEx securityContext, AuditLogFactory auditLogFactory, NewVersionAvailabilityProvider newVersionAvailabilityProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>
activateLicense(String license)
org.springframework.http.ResponseEntity<String>
deleteJwtLicense()
org.springframework.http.ResponseEntity<String>
handleAccessDenied()
List<String>
hashedOfflineKeys()
jetbrains.buildServer.controllers.license.LicenseManagerRestController.LicenseData
licenseData()
org.springframework.http.ResponseEntity<String>
linkAgents()
List<jetbrains.buildServer.controllers.license.LicenseManagerRestController.OfflineKey>
offlineKeys()
org.springframework.http.ResponseEntity<String>
refreshLicense()
-
-
-
Constructor Detail
-
LicenseManagerRestController
public LicenseManagerRestController(@NotNull BuildServerEx server, @NotNull JBAClient jbaClient, @NotNull SecurityContextEx securityContext, @NotNull AuditLogFactory auditLogFactory, @NotNull NewVersionAvailabilityProvider newVersionAvailabilityProvider)
-
-
Method Detail
-
licenseData
@RequestMapping(path="/licenseData", method=GET, produces="application/json") public jetbrains.buildServer.controllers.license.LicenseManagerRestController.LicenseData licenseData()
-
offlineKeys
@RequestMapping(path="/offlineKeys", method=GET, produces="application/json") public List<jetbrains.buildServer.controllers.license.LicenseManagerRestController.OfflineKey> offlineKeys()
-
activateLicense
@RequestMapping(path="/activateLicense", method=POST) public org.springframework.http.ResponseEntity<String> activateLicense(@RequestBody String license)
-
refreshLicense
@RequestMapping(path="/refreshLicense", method=POST) public org.springframework.http.ResponseEntity<String> refreshLicense()
-
deleteJwtLicense
@RequestMapping(path="/deleteJwtLicense", method=DELETE) public org.springframework.http.ResponseEntity<String> deleteJwtLicense()
-
hashedOfflineKeys
@RequestMapping(path="/hashedOfflineKeys", method=GET, produces="application/json") public List<String> hashedOfflineKeys()
-
linkAgents
@RequestMapping(path="/linkAgents", method=POST) public org.springframework.http.ResponseEntity<String> linkAgents()
-
handleAccessDenied
@ExceptionHandler(AccessDeniedException.class) public org.springframework.http.ResponseEntity<String> handleAccessDenied()
-
-