Commit 1edd5525294e6266756374874043bee64e26d47d
Committed by
Andrew Shvayka
1 parent
6f6d8b9d
added EntityView type support
Showing
1 changed file
with
4 additions
and
0 deletions
@@ -27,6 +27,7 @@ import org.thingsboard.server.common.data.id.AssetId; | @@ -27,6 +27,7 @@ import org.thingsboard.server.common.data.id.AssetId; | ||
27 | import org.thingsboard.server.common.data.id.CustomerId; | 27 | import org.thingsboard.server.common.data.id.CustomerId; |
28 | import org.thingsboard.server.common.data.id.DeviceId; | 28 | import org.thingsboard.server.common.data.id.DeviceId; |
29 | import org.thingsboard.server.common.data.id.EntityId; | 29 | import org.thingsboard.server.common.data.id.EntityId; |
30 | +import org.thingsboard.server.common.data.id.EntityViewId; | ||
30 | import org.thingsboard.server.common.data.id.RuleChainId; | 31 | import org.thingsboard.server.common.data.id.RuleChainId; |
31 | import org.thingsboard.server.common.data.id.TenantId; | 32 | import org.thingsboard.server.common.data.id.TenantId; |
32 | import org.thingsboard.server.common.data.id.UserId; | 33 | import org.thingsboard.server.common.data.id.UserId; |
@@ -58,6 +59,9 @@ public class EntitiesFieldsAsyncLoader { | @@ -58,6 +59,9 @@ public class EntitiesFieldsAsyncLoader { | ||
58 | case RULE_CHAIN: | 59 | case RULE_CHAIN: |
59 | return getAsync(ctx.getRuleChainService().findRuleChainByIdAsync(ctx.getTenantId(), (RuleChainId) original), | 60 | return getAsync(ctx.getRuleChainService().findRuleChainByIdAsync(ctx.getTenantId(), (RuleChainId) original), |
60 | EntityFieldsData::new); | 61 | EntityFieldsData::new); |
62 | + case ENTITY_VIEW: | ||
63 | + return getAsync(ctx.getEntityViewService().findEntityViewByIdAsync(ctx.getTenantId(), (EntityViewId) original), | ||
64 | + EntityFieldsData::new); | ||
61 | default: | 65 | default: |
62 | return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original)); | 66 | return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original)); |
63 | } | 67 | } |