コード例 #1
0
 @HandlesEvent("national")
 public Resolution national() {
   LOG.info("Displaying National Dealers");
   final List<NetworkSummaryDealerStatistic> summary =
       networkSummaryService.getNationalSummary(getToyotaFranchise());
   networkSummaryTableEntities.addAll(getDealershipTableEntities(summary));
   return forwardToListings();
 }
コード例 #2
0
 @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();
 }
コード例 #3
0
 @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();
 }