/** * {@inheritDoc} */ @Override public void handle(ChangeConfigurationItemRequestedEvent event, CorrelationToken correlationToken) { final boolean hasConfigurationChanged = chargingStationOcpp12Client.changeConfiguration(event.getChargingStationId(), event.getConfigurationItem()); if (hasConfigurationChanged) { domainService.changeConfiguration(event.getChargingStationId(), event.getConfigurationItem(), correlationToken, addOnIdentity); } }
@EventHandler public void handle(ChangeConfigurationItemRequestedEvent event, @MetaData(CorrelationToken.KEY) CorrelationToken correlationToken) { LOG.info("ChangeConfigurationItemRequestedEvent"); OcppRequestHandler ocppRequestHandler = getOcppRequestHandler(event.getChargingStationId()); if (ocppRequestHandler != null) { ocppRequestHandler.handle(event, correlationToken); } }
@CommandHandler public void handle(RequestChangeConfigurationItemCommand command, MetaData metaData) { checkCommandAllowed(command.getIdentityContext(), command.getClass()); checkCommunicationAllowed(); apply(new ChangeConfigurationItemRequestedEvent(this.id, this.protocol, command.getConfigurationItem(), command.getIdentityContext()), metaData); }
/** * {@inheritDoc} */ @Override public void handle(ChangeConfigurationItemRequestedEvent event, CorrelationToken correlationToken) { boolean hasConfigurationChanged = chargingStationOcpp15Client.changeConfiguration(event.getChargingStationId(), event.getConfigurationItem()); if (hasConfigurationChanged) { domainService.changeConfiguration(event.getChargingStationId(), event.getConfigurationItem(), correlationToken, addOnIdentity); } }
@Override public void handle(ChangeConfigurationItemRequestedEvent event, CorrelationToken correlationToken) { LOG.info("ChangeConfigurationItemRequestedEvent"); ocppJsonService.changeConfiguration(event.getChargingStationId(), event.getConfigurationItem(), correlationToken); }