|
|
|
@ -254,9 +254,9 @@ public abstract class BaseController { |
|
|
|
@Getter |
|
|
|
private boolean logControllerErrorStackTrace; |
|
|
|
|
|
|
|
@Value("${edges.rpc.enabled}") |
|
|
|
@Value("${edges.enabled}") |
|
|
|
@Getter |
|
|
|
private boolean edgesRpcEnabled; |
|
|
|
protected boolean edgesEnabled; |
|
|
|
|
|
|
|
@ExceptionHandler(ThingsboardException.class) |
|
|
|
public void handleThingsboardException(ThingsboardException ex, HttpServletResponse response) { |
|
|
|
@ -884,7 +884,7 @@ public abstract class BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
protected void sendNotificationMsgToEdgeService(TenantId tenantId, EdgeId edgeId, CustomerId customerId, EdgeEventActionType action) { |
|
|
|
if (!edgesRpcEnabled) { |
|
|
|
if (!edgesEnabled) { |
|
|
|
return; |
|
|
|
} |
|
|
|
try { |
|
|
|
@ -895,7 +895,7 @@ public abstract class BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
protected void sendNotificationMsgToEdgeService(TenantId tenantId, EntityId entityId, CustomerId customerId, EdgeEventActionType action) { |
|
|
|
if (!edgesRpcEnabled) { |
|
|
|
if (!edgesEnabled) { |
|
|
|
return; |
|
|
|
} |
|
|
|
EdgeEventType type = EdgeUtils.getEdgeEventTypeByEntityType(entityId.getEntityType()); |
|
|
|
@ -909,7 +909,7 @@ public abstract class BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
protected void sendNotificationMsgToEdgeService(TenantId tenantId, EntityRelation relation, EdgeEventActionType action) { |
|
|
|
if (!edgesRpcEnabled) { |
|
|
|
if (!edgesEnabled) { |
|
|
|
return; |
|
|
|
} |
|
|
|
try { |
|
|
|
@ -927,7 +927,7 @@ public abstract class BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
protected void sendNotificationMsgToEdgeService(TenantId tenantId, EdgeId edgeId, EntityId entityId, EntityType entityType, EdgeEventActionType action) { |
|
|
|
if (!edgesRpcEnabled) { |
|
|
|
if (!edgesEnabled) { |
|
|
|
return; |
|
|
|
} |
|
|
|
EdgeEventType type = EdgeUtils.getEdgeEventTypeByEntityType(entityType); |
|
|
|
|