Skip to content
Snippets Groups Projects

feat(license): [AOU-217] add avanced search

Merged Florent Poittevin requested to merge fpo/217_implements_advanced_search_on_licenses into master
3 files
+ 39
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
@@ -47,6 +48,14 @@ import ch.unige.aou.rest.UrlPath;
public class LicenseController extends ResourceController<License> {
private static final Logger log = LoggerFactory.getLogger(LicenseController.class);
@UserPermissions
@Override
public HttpEntity<Collection<License>> advancedSearch(@ModelAttribute License license,
@RequestParam("search") String search,
@RequestParam(value = "match", required = false) String matchType, Pageable pageable) {
return super.advancedSearch(license, search, matchType, pageable);
}
@Override
public HttpEntity<License> create(@RequestBody License license) {
return super.create(license);
Loading