Package energy.eddie.aiida.services
Class AiidaEventListener
java.lang.Object
energy.eddie.aiida.services.AiidaEventListener
-
Constructor Summary
ConstructorsConstructorDescriptionAiidaEventListener(DataSourceService dataSourceService, PermissionService permissionService, ProvisioningService provisioningService) Creates the central listener for permission and data-source lifecycle events. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidStops the runtime publisher and deletes the revoked permission's inbound data source.protected void
-
Constructor Details
-
AiidaEventListener
public AiidaEventListener(DataSourceService dataSourceService, PermissionService permissionService, ProvisioningService provisioningService) Creates the central listener for permission and data-source lifecycle events.- Parameters:
dataSourceService- Service used to create and delete data sources.permissionService- Service used to update associated permissions.provisioningService- Service used to stop runtime provisioning publishers.
-
-
Method Details
-
addDataSourceToPermission
-
createInboundDataSource
-
deleteInboundDataSource
Stops the runtime publisher and deletes the revoked permission's inbound data source. Deleting the entity also removes its persisted provisioning connection, MQTT user credentials, and ACL through JPA cascade removal.- Parameters:
event- Revocation event identifying the inbound data source.
-
revokeAllAssociatedPermissions
-