|
|
|
@ -75,11 +75,11 @@ public class DefaultTbNotificationEntityService implements TbNotificationEntityS |
|
|
|
sendDeleteNotificationMsg(tenantId, entityId, entity, relatedEdgeIds); |
|
|
|
} |
|
|
|
|
|
|
|
public <E extends HasName, I extends EntityId> void notifyDeleteEntityAlarm(TenantId tenantId, I entityId, E entity, EntityId originatorId, |
|
|
|
CustomerId customerId, ActionType actionType, |
|
|
|
List<EdgeId> relatedEdgeIds, |
|
|
|
SecurityUser user, |
|
|
|
String body, Object... additionalInfo) { |
|
|
|
public <E extends HasName, I extends EntityId> void notifyDeleteAlarm(TenantId tenantId, I entityId, E entity, EntityId originatorId, |
|
|
|
CustomerId customerId, ActionType actionType, |
|
|
|
List<EdgeId> relatedEdgeIds, |
|
|
|
SecurityUser user, |
|
|
|
String body, Object... additionalInfo) { |
|
|
|
logEntityAction(tenantId, originatorId, entity, customerId, actionType, user, additionalInfo); |
|
|
|
sendAlarmDeleteNotificationMsg(tenantId, entityId, entity, relatedEdgeIds, body); |
|
|
|
} |
|
|
|
@ -134,7 +134,7 @@ public class DefaultTbNotificationEntityService implements TbNotificationEntityS |
|
|
|
gatewayNotificationsService.onDeviceDeleted(device); |
|
|
|
tbClusterService.onDeviceDeleted(device, null); |
|
|
|
|
|
|
|
notifyDeleteEntity(tenantId, deviceId, device, customerId, ActionType.DELETED, relatedEdgeIds, user,null, additionalInfo); |
|
|
|
notifyDeleteEntity(tenantId, deviceId, device, customerId, ActionType.DELETED, relatedEdgeIds, user, additionalInfo); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|