|
|
|
@ -93,19 +93,19 @@ public class DomainController extends BaseController { |
|
|
|
tbDomainService.updateOauth2Clients(domain, oAuth2ClientIds, getCurrentUser()); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "Get Domain infos (getTenantDomainInfos)", notes = SYSTEM_AUTHORITY_PARAGRAPH) |
|
|
|
@ApiOperation(value = "Get Domain infos (getDomainInfos)", notes = SYSTEM_AUTHORITY_PARAGRAPH) |
|
|
|
@PreAuthorize("hasAnyAuthority('SYS_ADMIN')") |
|
|
|
@GetMapping(value = "/domain/infos") |
|
|
|
public PageData<DomainInfo> getTenantDomainInfos(@Parameter(description = PAGE_SIZE_DESCRIPTION, required = true) |
|
|
|
@RequestParam int pageSize, |
|
|
|
@Parameter(description = PAGE_NUMBER_DESCRIPTION, required = true) |
|
|
|
@RequestParam int page, |
|
|
|
@Parameter(description = "Case-insensitive 'substring' filter based on domain's name") |
|
|
|
@RequestParam(required = false) String textSearch, |
|
|
|
@Parameter(description = SORT_PROPERTY_DESCRIPTION) |
|
|
|
@RequestParam(required = false) String sortProperty, |
|
|
|
@Parameter(description = SORT_ORDER_DESCRIPTION) |
|
|
|
@RequestParam(required = false) String sortOrder) throws ThingsboardException { |
|
|
|
public PageData<DomainInfo> getDomainInfos(@Parameter(description = PAGE_SIZE_DESCRIPTION, required = true) |
|
|
|
@RequestParam int pageSize, |
|
|
|
@Parameter(description = PAGE_NUMBER_DESCRIPTION, required = true) |
|
|
|
@RequestParam int page, |
|
|
|
@Parameter(description = "Case-insensitive 'substring' filter based on domain's name") |
|
|
|
@RequestParam(required = false) String textSearch, |
|
|
|
@Parameter(description = SORT_PROPERTY_DESCRIPTION) |
|
|
|
@RequestParam(required = false) String sortProperty, |
|
|
|
@Parameter(description = SORT_ORDER_DESCRIPTION) |
|
|
|
@RequestParam(required = false) String sortOrder) throws ThingsboardException { |
|
|
|
accessControlService.checkPermission(getCurrentUser(), Resource.DOMAIN, Operation.READ); |
|
|
|
PageLink pageLink = createPageLink(pageSize, page, textSearch, sortProperty, sortOrder); |
|
|
|
return domainService.findDomainInfosByTenantId(getTenantId(), pageLink); |
|
|
|
|