@EventHandler public void handle(ChargingStationAcceptedEvent event) { LOG.debug("ChargingStationAcceptedEvent for [{}] received!", event.getChargingStationId()); ChargingStation chargingStation = repository.findOne(event.getChargingStationId().getId()); if (chargingStation != null) { chargingStation.setAccepted(true); repository.createOrUpdate(chargingStation); } else { LOG.error("operator api repo COULD NOT FIND CHARGEPOINT {} and mark it as accepted", event.getChargingStationId()); } }
@EventHandler public void handle(ChargingStationAcceptedEvent event) { LOG.debug("ChargingStationAcceptedEvent for [{}] received!", event.getChargingStationId()); ChargingStation chargingStation = chargingStationRepository.findOne(event.getChargingStationId().getId()); if (chargingStation != null) { chargingStation.setRegistered(true); chargingStationRepository.createOrUpdate(chargingStation); } else { LOG.info("OCPP module repo COULD NOT FIND CHARGEPOINT {} and mark it as registered", event.getChargingStationId()); } }
@EventHandler public void handle(ChargingStationAcceptedEvent event) { LOG.debug("ChargingStationAcceptedEvent for {} received!", event.getChargingStationId()); ChargingStation chargingStation = getChargingStation(event.getChargingStationId()); if (chargingStation != null) { chargingStation.setRegistered(true); chargingStationRepository.createOrUpdate(chargingStation); } }