@HandlesEvent("national") public Resolution national() { LOG.info("Displaying National Dealers"); final List<NetworkSummaryDealerStatistic> summary = networkSummaryService.getNationalSummary(getToyotaFranchise()); networkSummaryTableEntities.addAll(getDealershipTableEntities(summary)); return forwardToListings(); }
@HandlesEvent("regional") public Resolution regional() { LOG.info("Displaying National Dealers"); for (Region region : Region.values()) { final List<NetworkSummaryDealerStatistic> summary = networkSummaryService.getRegionalSummary(region, getToyotaFranchise()); List<NetworkSummaryTableEntity> regionDealerships = getDealershipTableEntities(summary); networkSummaryTableEntities.add( new RegionNetworkSummaryTableEntityImpl(region, regionDealerships)); } return forwardToListings(); }
@HandlesEvent("state") public Resolution state() { LOG.info("Displaying National Dealers"); for (State state : State.values()) { final List<NetworkSummaryDealerStatistic> summary = networkSummaryService.getStateSummary(state, getToyotaFranchise()); List<NetworkSummaryTableEntity> stateDealerships = getDealershipTableEntities(summary); networkSummaryTableEntities.add( new StateNetworkSummaryTableEntityImpl(state, stateDealerships)); } return forwardToListings(); }