add Deprecated
This commit is contained in:
parent
c6364cdc2f
commit
7b1651b860
@ -28,7 +28,6 @@ import org.thingsboard.rule.engine.util.EntitiesAlarmOriginatorIdAsyncLoader;
|
||||
import org.thingsboard.rule.engine.util.EntitiesByNameAndTypeLoader;
|
||||
import org.thingsboard.rule.engine.util.EntitiesCustomerIdAsyncLoader;
|
||||
import org.thingsboard.rule.engine.util.EntitiesRelatedEntityIdAsyncLoader;
|
||||
import org.thingsboard.rule.engine.util.EntitiesTenantIdAsyncLoader;
|
||||
import org.thingsboard.server.common.data.EntityType;
|
||||
import org.thingsboard.server.common.data.StringUtils;
|
||||
import org.thingsboard.server.common.data.id.EntityId;
|
||||
|
||||
@ -31,7 +31,10 @@ import org.thingsboard.server.common.data.id.TenantId;
|
||||
import org.thingsboard.server.common.data.id.UserId;
|
||||
|
||||
public class EntitiesTenantIdAsyncLoader {
|
||||
// TODO: consider to remove since tenantId is already defined in the TbContext.
|
||||
/**
|
||||
* @deprecated consider to remove since tenantId is already defined in the TbContext.
|
||||
*/
|
||||
@Deprecated
|
||||
public static ListenableFuture<TenantId> findEntityIdAsync(TbContext ctx, EntityId original) {
|
||||
|
||||
switch (original.getEntityType()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user