@RestController public class CountryController extends AbstractEntityController<de.digitalcollections.model.identifiable.entity.geo.location.Country>
  • Constructor Details

    • CountryController

      public CountryController(CountryService service)
  • Method Details

    • delete

      @DeleteMapping(value="/v6/countries/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public org.springframework.http.ResponseEntity delete(@PathVariable("uuid") UUID uuid) throws ConflictException, ServiceException
      Overrides:
      delete in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.Country>
      Throws:
      ConflictException
      ServiceException
    • find

      @GetMapping(value="/v6/countries", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.Country> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Overrides:
      find in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.Country>
      Throws:
      ServiceException
    • getByIdentifier

      @GetMapping(value="/v6/countries/identifier/**", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.Country> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws ServiceException, ValidationException
      Overrides:
      getByIdentifier in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.Country>
      Throws:
      ServiceException
      ValidationException
    • getByUuid

      @GetMapping(value="/v6/countries/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.Country> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException
      Throws:
      ServiceException
    • getService

      protected EntityService<de.digitalcollections.model.identifiable.entity.geo.location.Country> getService()
      Specified by:
      getService in class AbstractEntityController<de.digitalcollections.model.identifiable.entity.geo.location.Country>
    • save

      @PostMapping(value="/v6/countries", produces="application/json") public de.digitalcollections.model.identifiable.entity.geo.location.Country save(@RequestBody de.digitalcollections.model.identifiable.entity.geo.location.Country country, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      save in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.Country>
      Throws:
      ServiceException
      ValidationException
    • update

      @PutMapping(value="/v6/countries/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public de.digitalcollections.model.identifiable.entity.geo.location.Country update(@PathVariable("uuid") UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.geo.location.Country country, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      update in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.Country>
      Throws:
      ServiceException
      ValidationException