Skip to content

Commit

Permalink
Issue #5: Improve the Utility of the Trip Problem Report Admin Interface
Browse files Browse the repository at this point in the history
Rename the "getTripProblemReportSummaries(query, groupBy)" method to
avoid a collision with the existing
  • Loading branch information
bdferris committed Apr 15, 2012
1 parent 5109113 commit d3583a1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,11 @@ public ListBean<StopProblemReportSummaryBean> getStopProblemReportSummaries(
@Override
public ListBean<TripProblemReportSummaryBean> getTripProblemReportSummaries(
TripProblemReportQueryBean query) {
return getTripProblemReportSummaries(query, ETripProblemGroupBy.TRIP);
return getTripProblemReportSummariesByGrouping(query, ETripProblemGroupBy.TRIP);
}

@Override
public ListBean<TripProblemReportSummaryBean> getTripProblemReportSummaries(
public ListBean<TripProblemReportSummaryBean> getTripProblemReportSummariesByGrouping(
TripProblemReportQueryBean query, ETripProblemGroupBy groupBy) {
return _userReportingService.getTripProblemReportSummaries(query, groupBy);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
* @author bdferris
* @see TransitDataService#getTripProblemReports(TripProblemReportQueryBean)
* @see TransitDataService#getTripProblemReportSummaries(TripProblemReportQueryBean,
* @see TransitDataService#getTripProblemReportSummariesByGrouping(TripProblemReportQueryBean,
* ETripProblemGroupBy)
*/
@QueryBean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
* flexibility in over-the-wire serialization for RPC and are separate from the
* underlying representations in the datastore.
*
* Implementation Note: when adding methods to this interface, do not introduce
* multiple methods with the same name and different arguments, as this seems to
* confuse Hessian proxies of the interface. Additionally, each method must
* specify a @FederatedBy... annotation indicating how the method will be
* dispatched in a federated deployment.
*
* @author bdferris
*
*/
Expand Down Expand Up @@ -502,7 +508,7 @@ public StopProblemReportBean getStopProblemReportForStopIdAndId(
* @return
*
* @deprecated see
* {@link #getTripProblemReportSummaries(TripProblemReportQueryBean, ETripProblemGroupBy)}
* {@link #getTripProblemReportSummariesByGrouping(TripProblemReportQueryBean, ETripProblemGroupBy)}
*/
@FederatedByAgencyIdMethod(propertyExpression = "agencyId")
@Deprecated
Expand All @@ -516,7 +522,7 @@ public ListBean<TripProblemReportSummaryBean> getTripProblemReportSummaries(
* @return
*/
@FederatedByAnyEntityIdMethod(properties = {"tripId"}, agencyIdProperties = {"agencyId"})
public ListBean<TripProblemReportSummaryBean> getTripProblemReportSummaries(
public ListBean<TripProblemReportSummaryBean> getTripProblemReportSummariesByGrouping(
TripProblemReportQueryBean query, ETripProblemGroupBy groupBy);

@FederatedByAnyEntityIdMethod(properties = {"tripId"}, agencyIdProperties = {"agencyId"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ public String agency() {
if (_status != null)
query.setStatus(EProblemReportStatus.valueOf(_status.toUpperCase()));

ListBean<TripProblemReportSummaryBean> resultByTrip = _transitDataService.getTripProblemReportSummaries(
ListBean<TripProblemReportSummaryBean> resultByTrip = _transitDataService.getTripProblemReportSummariesByGrouping(
query, ETripProblemGroupBy.TRIP);
_summariesByTrip = resultByTrip.getList();

ListBean<TripProblemReportSummaryBean> resultByLabel = _transitDataService.getTripProblemReportSummaries(
ListBean<TripProblemReportSummaryBean> resultByLabel = _transitDataService.getTripProblemReportSummariesByGrouping(
query, ETripProblemGroupBy.LABEL);
_summariesByLabel = resultByLabel.getList();

Expand Down

0 comments on commit d3583a1

Please sign in to comment.