Package energy.eddie.aiida.services
Class ConnectionStatusService
java.lang.Object
energy.eddie.aiida.services.ConnectionStatusService
Derives the dynamic
ConnectionStatus of a permission at runtime. The connection status is intentionally not
persisted, as it changes frequently and must always reflect the actual state of the streamer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectionStatusOf(Permission permission) Returns the connection status of the passed permission, ornullif the permission is notPermissionStatus.ACCEPTED, as only accepted permissions can be connected.toDto(Permission permission) Creates the API representation of the passed permission, including its derived connection status.
-
Constructor Details
-
ConnectionStatusService
-
-
Method Details
-
connectionStatusOf
Returns the connection status of the passed permission, ornullif the permission is notPermissionStatus.ACCEPTED, as only accepted permissions can be connected. -
toDto
Creates the API representation of the passed permission, including its derived connection status.
-