|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/** |
|
|
|
* Copyright © 2016-2024 The Thingsboard Authors |
|
|
|
* Copyright © 2016-2025 The Thingsboard Authors |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -125,6 +125,7 @@ import org.thingsboard.server.common.data.rule.RuleNode; |
|
|
|
import org.thingsboard.server.common.data.security.UserCredentials; |
|
|
|
import org.thingsboard.server.common.data.util.ThrowingBiFunction; |
|
|
|
import org.thingsboard.server.common.data.widget.WidgetTypeDetails; |
|
|
|
import org.thingsboard.server.common.data.widget.WidgetTypeInfo; |
|
|
|
import org.thingsboard.server.common.data.widget.WidgetsBundle; |
|
|
|
import org.thingsboard.server.dao.alarm.AlarmCommentService; |
|
|
|
import org.thingsboard.server.dao.asset.AssetProfileService; |
|
|
|
@ -759,6 +760,10 @@ public abstract class BaseController { |
|
|
|
return checkEntityId(widgetTypeId, widgetTypeService::findWidgetTypeDetailsById, operation); |
|
|
|
} |
|
|
|
|
|
|
|
WidgetTypeInfo checkWidgetTypeInfoId(WidgetTypeId widgetTypeId, Operation operation) throws ThingsboardException { |
|
|
|
return checkEntityId(widgetTypeId, widgetTypeService::findWidgetTypeInfoById, operation); |
|
|
|
} |
|
|
|
|
|
|
|
Dashboard checkDashboardId(DashboardId dashboardId, Operation operation) throws ThingsboardException { |
|
|
|
return checkEntityId(dashboardId, dashboardService::findDashboardById, operation); |
|
|
|
} |
|
|
|
|