Search in sources :

Example 1 with AdminSettingsId

use of org.thingsboard.server.common.data.id.AdminSettingsId in project thingsboard by thingsboard.

the class AdminSettingsEntity method toData.

@Override
public AdminSettings toData() {
    AdminSettings adminSettings = new AdminSettings(new AdminSettingsId(UUIDConverter.fromString(id)));
    adminSettings.setCreatedTime(UUIDs.unixTimestamp(UUIDConverter.fromString(id)));
    adminSettings.setKey(key);
    adminSettings.setJsonValue(jsonValue);
    return adminSettings;
}
Also used : AdminSettingsId(org.thingsboard.server.common.data.id.AdminSettingsId) AdminSettings(org.thingsboard.server.common.data.AdminSettings)

Example 2 with AdminSettingsId

use of org.thingsboard.server.common.data.id.AdminSettingsId in project thingsboard by thingsboard.

the class AdminSettingsEntity method toData.

@Override
public AdminSettings toData() {
    AdminSettings adminSettings = new AdminSettings(new AdminSettingsId(id));
    adminSettings.setCreatedTime(UUIDs.unixTimestamp(id));
    adminSettings.setKey(key);
    adminSettings.setJsonValue(jsonValue);
    return adminSettings;
}
Also used : AdminSettingsId(org.thingsboard.server.common.data.id.AdminSettingsId) AdminSettings(org.thingsboard.server.common.data.AdminSettings)

Aggregations

AdminSettings (org.thingsboard.server.common.data.AdminSettings)2 AdminSettingsId (org.thingsboard.server.common.data.id.AdminSettingsId)2