@RestController public class LicenseKeyController extends Object
| Constructor and Description |
|---|
LicenseKeyController() |
| Modifier and Type | Method and Description |
|---|---|
ResponseWrapper<LicenseKeyFetchResponseDto> |
fetchLicenseKeyPermissions(String tspId,
String licenseKey)
This method will fetch the mapped permissions for a license key.
|
ResponseWrapper<LicenseKeyGenerationResponseDto> |
generateLicenseKey(RequestWrapper<LicenseKeyGenerationDto> licenseKeyGenerationDto)
This method will generate license key against a certain TSP ID.
|
ResponseWrapper<LicenseKeyMappingResponseDto> |
mapLicenseKey(RequestWrapper<LicenseKeyMappingDto> licenseKeyMappingDto)
This method will map license key to several permissions.
|
@ResponseFilter @PostMapping(value="/license/generate") public ResponseWrapper<LicenseKeyGenerationResponseDto> generateLicenseKey(@RequestBody RequestWrapper<LicenseKeyGenerationDto> licenseKeyGenerationDto)
licenseKeyGenerationDto - the LicenseKeyGenerationResponseDto request
object wrapped in RequestWrapper.@ResponseFilter @PostMapping(value="/license/permission") public ResponseWrapper<LicenseKeyMappingResponseDto> mapLicenseKey(@RequestBody RequestWrapper<LicenseKeyMappingDto> licenseKeyMappingDto)
licenseKeyMappingDto - the LicenseKeyMappingDto.@ResponseFilter @GetMapping(value="/license/permission") public ResponseWrapper<LicenseKeyFetchResponseDto> fetchLicenseKeyPermissions(@RequestParam(value="tspId") String tspId, @RequestParam(value="licenseKey") String licenseKey)
tspId - tsp idlicenseKey - the license key of which the permissions need to be
fetched.Copyright © 2020. All rights reserved.