Checking authorization in ChargingStation aggregate
Storing authorizations in Multimap; map key is user identity, map values are (command) classes.
Created commands and events to update authorization in aggregate.
Created an empty class that stands for "all permissions", if a user identity is authorized for "AllPermissions" that user identity can execute all commands.
Created CommandAuthorization that can check if a combination of identityContext, authorizations map and command class is valid for execution.