private void setReservable ( ChargingStationId chargingStationId , boolean reservable ) { ChargingStation chargingStation = repository . findOne ( chargingStationId . getId ( ) ) ; if ( chargingStation != null ) { chargingStation . setReservable ( reservable ) ; repository . createOrUpdate ( chargingStation ) ; } }
Makes a charging station reservable or not reservable .