|
|
@ -40,8 +40,12 @@ public class GroupManagementAdminServiceImpl implements GroupManagementAdminServ
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
RequestValidationUtil.validatePaginationParameters(offset, limit);
|
|
|
|
RequestValidationUtil.validatePaginationParameters(offset, limit);
|
|
|
|
GroupPaginationRequest request = new GroupPaginationRequest(offset, limit);
|
|
|
|
GroupPaginationRequest request = new GroupPaginationRequest(offset, limit);
|
|
|
|
request.setGroupName(name.toUpperCase());
|
|
|
|
if (name != null){
|
|
|
|
request.setOwner(owner.toUpperCase());
|
|
|
|
request.setGroupName(name.toUpperCase());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (owner != null) {
|
|
|
|
|
|
|
|
request.setOwner(owner.toUpperCase());
|
|
|
|
|
|
|
|
}
|
|
|
|
PaginationResult deviceGroupsResult = DeviceMgtAPIUtils.getGroupManagementProviderService()
|
|
|
|
PaginationResult deviceGroupsResult = DeviceMgtAPIUtils.getGroupManagementProviderService()
|
|
|
|
.getGroups(request);
|
|
|
|
.getGroups(request);
|
|
|
|
DeviceGroupList deviceGroupList = new DeviceGroupList();
|
|
|
|
DeviceGroupList deviceGroupList = new DeviceGroupList();
|
|
|
|