use of org.thingsboard.server.common.data.widget.BaseWidgetType in project thingsboard by thingsboard.
the class WidgetTypeEntity method toData.
@Override
public WidgetType toData() {
BaseWidgetType baseWidgetType = super.toBaseWidgetType();
WidgetType widgetType = new WidgetType(baseWidgetType);
widgetType.setDescriptor(descriptor);
return widgetType;
}
use of org.thingsboard.server.common.data.widget.BaseWidgetType in project thingsboard by thingsboard.
the class WidgetTypeDetailsEntity method toData.
@Override
public WidgetTypeDetails toData() {
BaseWidgetType baseWidgetType = super.toBaseWidgetType();
WidgetTypeDetails widgetTypeDetails = new WidgetTypeDetails(baseWidgetType);
widgetTypeDetails.setImage(image);
widgetTypeDetails.setDescription(description);
widgetTypeDetails.setDescriptor(descriptor);
return widgetTypeDetails;
}
use of org.thingsboard.server.common.data.widget.BaseWidgetType in project thingsboard by thingsboard.
the class AbstractWidgetTypeEntity method toBaseWidgetType.
protected BaseWidgetType toBaseWidgetType() {
BaseWidgetType widgetType = new BaseWidgetType(new WidgetTypeId(getUuid()));
widgetType.setCreatedTime(createdTime);
if (tenantId != null) {
widgetType.setTenantId(TenantId.fromUUID(tenantId));
}
widgetType.setBundleAlias(bundleAlias);
widgetType.setAlias(alias);
widgetType.setName(name);
return widgetType;
}
use of org.thingsboard.server.common.data.widget.BaseWidgetType in project thingsboard by thingsboard.
the class WidgetTypeInfoEntity method toData.
@Override
public WidgetTypeInfo toData() {
BaseWidgetType baseWidgetType = super.toBaseWidgetType();
WidgetTypeInfo widgetTypeInfo = new WidgetTypeInfo(baseWidgetType);
widgetTypeInfo.setImage(image);
widgetTypeInfo.setDescription(description);
widgetTypeInfo.setWidgetType(widgetType);
return widgetTypeInfo;
}
Aggregations