EntityId.fromTypeAndUuid constructor
EntityId.fromTypeAndUuid(
- EntityType type,
- String uuid
Implementation
factory EntityId.fromTypeAndUuid(EntityType type, String uuid) {
switch (type) {
case EntityType.TENANT:
return TenantId(uuid);
case EntityType.TENANT_PROFILE:
return TenantProfileId(uuid);
case EntityType.CUSTOMER:
return CustomerId(uuid);
case EntityType.USER:
return UserId(uuid);
case EntityType.DASHBOARD:
return DashboardId(uuid);
case EntityType.ASSET:
return AssetId(uuid);
case EntityType.DEVICE:
return DeviceId(uuid);
case EntityType.DEVICE_PROFILE:
return DeviceProfileId(uuid);
case EntityType.ASSET_PROFILE:
return AssetProfileId(uuid);
case EntityType.ALARM:
return AlarmId(uuid);
case EntityType.RULE_CHAIN:
return RuleChainId(uuid);
case EntityType.RULE_NODE:
return RuleNodeId(uuid);
case EntityType.EDGE:
return EdgeId(uuid);
case EntityType.ENTITY_VIEW:
return EntityViewId(uuid);
case EntityType.WIDGETS_BUNDLE:
return WidgetsBundleId(uuid);
case EntityType.WIDGET_TYPE:
return WidgetTypeId(uuid);
case EntityType.API_USAGE_STATE:
return ApiUsageStateId(uuid);
case EntityType.TB_RESOURCE:
return TbResourceId(uuid);
case EntityType.OTA_PACKAGE:
return OtaPackageId(uuid);
case EntityType.RPC:
return RpcId(uuid);
case EntityType.ENTITY_GROUP:
return EntityGroupId(uuid);
case EntityType.CONVERTER:
return ConverterId(uuid);
case EntityType.INTEGRATION:
return IntegrationId(uuid);
case EntityType.SCHEDULER_EVENT:
return SchedulerEventId(uuid);
case EntityType.BLOB_ENTITY:
return BlobEntityId(uuid);
case EntityType.ROLE:
return RoleId(uuid);
case EntityType.GROUP_PERMISSION:
return GroupPermissionId(uuid);
case EntityType.QUEUE:
return QueueId(uuid);
case EntityType.NOTIFICATION_TARGET:
return NotificationTargetId(uuid);
case EntityType.NOTIFICATION_TEMPLATE:
return NotificationTemplateId(uuid);
case EntityType.NOTIFICATION_REQUEST:
return NotificationRequestId(uuid);
case EntityType.NOTIFICATION:
return NotificationId(uuid);
case EntityType.NOTIFICATION_RULE:
return NotificationRuleId(uuid);
}
}