@Override
    public void handle(String chargingStationId, JsonObject commandObject, IdentityContext identityContext) throws UserIdentityUnauthorizedException {
        ChargingStationId csId = new ChargingStationId(chargingStationId);

        if (!commandAuthorizationService.isAuthorized(csId, identityContext.getUserIdentity(), RequestAuthorizationListVersionCommand.class)) {
            throw new UserIdentityUnauthorizedException(chargingStationId, identityContext.getUserIdentity(), RequestAuthorizationListVersionCommand.class);
        }

        ChargingStation chargingStation = repository.findOne(chargingStationId);
        if (chargingStation != null && chargingStation.communicationAllowed()) {
            commandGateway.send(new RequestAuthorizationListVersionCommand(csId, identityContext), new CorrelationToken());
        }
    }
@ Override public void handle ( String chargingStationId , JsonObject commandObject , IdentityContext identityContext ) throws UserIdentityUnauthorizedException { ChargingStationId csId = new ChargingStationId ( chargingStationId ) ; if ( ! commandAuthorizationService . isAuthorized ( csId , identityContext . getUserIdentity ( ) , RequestAuthorizationListVersionCommand . class ) ) { throw new UserIdentityUnauthorizedException ( chargingStationId , identityContext . getUserIdentity ( ) , RequestAuthorizationListVersionCommand . class ) ; } ChargingStation chargingStation = repository . findOne ( chargingStationId ) ; if ( chargingStation != null && chargingStation . communicationAllowed ( ) ) { commandGateway . send ( new RequestAuthorizationListVersionCommand ( csId , identityContext ) , new CorrelationToken ( ) ) ; } }
{@inheritDoc}