test_class.declarator: locationInfowindowController
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private LocationInfowindowController locationInfowindowController;
test_class.type: LocationInfowindowController
test_class.var_name: locationInfowindowController
test_class.file: web/src/test/java/org/devgateway/ocds/web/rest/controller/LocationInfowindowControllerTest.java
test_class.identifier: LocationInfowindowControllerTest
test_class.superclass: extends AbstractEndPointControllerTest
test_case.body: @Test
      public void tendersByLocation() throws Exception {
          final List<Document> tendersByLocation = locationInfowindowController.tendersByLocation(
                  new YearFilterPagingRequest());
          Assert.assertEquals(1, tendersByLocation.size());
          final Document first = tendersByLocation.get(0);
      }
test_case.class_method_signature: LocationInfowindowControllerTest.tendersByLocation()
test_case.full_signature: @Test public void tendersByLocation()
test_case.identifier: tendersByLocation
test_case.invocations: tendersByLocation assertEquals size get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tendersByLocation()
focal_class.file: web/src/main/java/org/devgateway/ocds/web/rest/controller/LocationInfowindowController.java
focal_class.identifier: LocationInfowindowController
focal_class.class_method_signature: LocationInfowindowController.tendersByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_class.full_signature: @ApiOperation(value = "Displays the tenders filtered by location. See the location filter " + "for the options to filter by") @RequestMapping(value = "/api/tendersByLocation", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public List<Document> tendersByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_class.identifier: tendersByLocation
focal_class.modifiers: @ApiOperation(value = "Displays the tenders filtered by location. See the location filter " + "for the options to filter by") @RequestMapping(value = "/api/tendersByLocation", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_class.return: List<Document>
focal_class.signature: List<Document> tendersByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_class.class_method_signature: LocationInfowindowController.planningByLocation(
              @ModelAttribute @Valid final DefaultFilterPagingRequest filter)
focal_class.full_signature: @ApiOperation(value = "Displays the planning items, filtered by location. See the location filter " + "for the options to filter by") @RequestMapping(value = "/api/planningByLocation", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public List<Document> planningByLocation(
              @ModelAttribute @Valid final DefaultFilterPagingRequest filter)
focal_class.identifier: planningByLocation
focal_class.modifiers: @ApiOperation(value = "Displays the planning items, filtered by location. See the location filter " + "for the options to filter by") @RequestMapping(value = "/api/planningByLocation", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (
              @ModelAttribute @Valid final DefaultFilterPagingRequest filter)
focal_class.return: List<Document>
focal_class.signature: List<Document> planningByLocation(
              @ModelAttribute @Valid final DefaultFilterPagingRequest filter)
focal_class.class_method_signature: LocationInfowindowController.awardsByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_class.full_signature: @ApiOperation(value = "Displays the awards, filtered by location. See the location filter " + "for the options to filter by") @RequestMapping(value = "/api/awardsByLocation", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public List<Document> awardsByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_class.identifier: awardsByLocation
focal_class.modifiers: @ApiOperation(value = "Displays the awards, filtered by location. See the location filter " + "for the options to filter by") @RequestMapping(value = "/api/awardsByLocation", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_class.return: List<Document>
focal_class.signature: List<Document> awardsByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_class.superclass: extends GenericOCDSController
focal_method.body: @ApiOperation(value = "Displays the tenders filtered by location. See the location filter "
              + "for the options to filter by")
      @RequestMapping(value = "/api/tendersByLocation", method = {RequestMethod.POST,
              RequestMethod.GET}, produces = "application/json")
      @JsonView(Views.Public.class)
      public List<Document> tendersByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter) {
  
          Aggregation agg = newAggregation(
                  match(where("tender").exists(true).orOperator(
                          where("tender.items.deliveryLocation._id").exists(true)
                  )
                          .andOperator(getYearDefaultFilterCriteria(
                                  filter,
                                  MongoConstants.FieldNames.TENDER_PERIOD_START_DATE
                          ))),
                  project("tender").andExclude(Fields.UNDERSCORE_ID),
                  skip(filter.getSkip()), limit(filter.getPageSize())
          );
  
          return releaseAgg(agg);
      }
focal_method.class_method_signature: LocationInfowindowController.tendersByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_method.full_signature: @ApiOperation(value = "Displays the tenders filtered by location. See the location filter " + "for the options to filter by") @RequestMapping(value = "/api/tendersByLocation", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public List<Document> tendersByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_method.identifier: tendersByLocation
focal_method.invocations: newAggregation match andOperator orOperator exists where exists where getYearDefaultFilterCriteria andExclude project skip getSkip limit getPageSize releaseAgg
focal_method.modifiers: @ApiOperation(value = "Displays the tenders filtered by location. See the location filter " + "for the options to filter by") @RequestMapping(value = "/api/tendersByLocation", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_method.parameters: (
              @ModelAttribute @Valid final YearFilterPagingRequest filter)
focal_method.return: List<Document>
focal_method.signature: List<Document> tendersByLocation(
              @ModelAttribute @Valid final YearFilterPagingRequest filter)