Search in sources :

Example 11 with TenantProfileId

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

the class TenantProfileEntity method toData.

@Override
public TenantProfile toData() {
    TenantProfile tenantProfile = new TenantProfile(new TenantProfileId(this.getUuid()));
    tenantProfile.setCreatedTime(createdTime);
    tenantProfile.setName(name);
    tenantProfile.setDescription(description);
    tenantProfile.setDefault(isDefault);
    tenantProfile.setIsolatedTbCore(isolatedTbCore);
    tenantProfile.setIsolatedTbRuleEngine(isolatedTbRuleEngine);
    tenantProfile.setProfileData(JacksonUtil.convertValue(profileData, TenantProfileData.class));
    return tenantProfile;
}
Also used : TenantProfileId(org.thingsboard.server.common.data.id.TenantProfileId) TenantProfileData(org.thingsboard.server.common.data.tenant.profile.TenantProfileData) TenantProfile(org.thingsboard.server.common.data.TenantProfile)

Aggregations

TenantProfileId (org.thingsboard.server.common.data.id.TenantProfileId)11 TenantProfile (org.thingsboard.server.common.data.TenantProfile)7 Collections (java.util.Collections)5 Tenant (org.thingsboard.server.common.data.Tenant)5 TenantId (org.thingsboard.server.common.data.id.TenantId)5 Set (java.util.Set)4 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)4 Slf4j (lombok.extern.slf4j.Slf4j)4 ByteString (com.google.protobuf.ByteString)3 List (java.util.List)3 Optional (java.util.Optional)3 ConcurrentMap (java.util.concurrent.ConcurrentMap)3 Lock (java.util.concurrent.locks.Lock)3 ReentrantLock (java.util.concurrent.locks.ReentrantLock)3 Autowired (org.springframework.beans.factory.annotation.Autowired)3 Lazy (org.springframework.context.annotation.Lazy)3 ApiUsageState (org.thingsboard.server.common.data.ApiUsageState)3 EntityType (org.thingsboard.server.common.data.EntityType)3 TransportService (org.thingsboard.server.common.transport.TransportService)3 TransportTenantProfileCache (org.thingsboard.server.common.transport.TransportTenantProfileCache)3