@Controller
public class WebController
extends de.digitalcollections.commons.springmvc.controller.AbstractController
| Constructor and Description |
|---|
WebController() |
| Modifier and Type | Method and Description |
|---|---|
String |
add(IiifManifestSummary manifestSummary,
org.springframework.ui.Model model) |
String |
add(org.springframework.ui.Model model) |
String |
addCollection(IiifManifestSummary manifestSummary,
org.springframework.ui.Model model) |
IiifManifestSummary |
apiAdd(String manifestUri) |
boolean |
apiAddCollection(String manifestUri) |
org.springframework.http.ResponseEntity<Map<String,Object>> |
handleApiException(de.digitalcollections.iiif.bookshelf.frontend.controller.ApiException e) |
String |
list(SearchRequest searchRequest,
org.springframework.ui.Model model,
org.springframework.data.domain.Pageable pageRequest,
String style,
org.springframework.validation.BindingResult results)
List with or without search query.
|
String |
login() |
String |
search(SearchRequest searchRequest,
org.springframework.ui.Model model,
org.springframework.data.domain.Pageable pageRequest,
String style,
org.springframework.validation.BindingResult results) |
String |
viewObject(String id,
org.springframework.ui.Model model) |
@RequestMapping(value={"","/"},
method=GET)
public String list(SearchRequest searchRequest,
org.springframework.ui.Model model,
org.springframework.data.domain.Pageable pageRequest,
@RequestParam(required=false,defaultValue="grid")
String style,
org.springframework.validation.BindingResult results)
searchRequest - contains search term if anymodel - view modelpageRequest - paging paramsstyle - switching style between list and grid listingresults - validation results and errors@RequestMapping(value="/add",
method=GET)
public String add(org.springframework.ui.Model model)
@RequestMapping(value="/add",
method=POST)
public String add(IiifManifestSummary manifestSummary,
org.springframework.ui.Model model)
@RequestMapping(value="/addCollection",
method=POST)
public String addCollection(IiifManifestSummary manifestSummary,
org.springframework.ui.Model model)
@ResponseBody
@RequestMapping(value="/api/add",
method=POST,
produces="application/json")
public IiifManifestSummary apiAdd(@RequestParam(value="uri")
String manifestUri)
throws de.digitalcollections.iiif.bookshelf.frontend.controller.ApiException
de.digitalcollections.iiif.bookshelf.frontend.controller.ApiException@ResponseBody
@RequestMapping(value="/api/addCollection",
method=POST,
produces="application/json")
public boolean apiAddCollection(@RequestParam(value="uri")
String manifestUri)
throws de.digitalcollections.iiif.bookshelf.frontend.controller.ApiException
de.digitalcollections.iiif.bookshelf.frontend.controller.ApiException@CrossOrigin(origins="*")
@RequestMapping(value="/view/{id}",
method=GET)
public String viewObject(@PathVariable
String id,
org.springframework.ui.Model model)
@ExceptionHandler(value=de.digitalcollections.iiif.bookshelf.frontend.controller.ApiException.class) public org.springframework.http.ResponseEntity<Map<String,Object>> handleApiException(de.digitalcollections.iiif.bookshelf.frontend.controller.ApiException e)
@RequestMapping(value="/search",
method=GET)
public String search(SearchRequest searchRequest,
org.springframework.ui.Model model,
org.springframework.data.domain.Pageable pageRequest,
@RequestParam(required=false,defaultValue="grid")
String style,
org.springframework.validation.BindingResult results)
@RequestMapping(value="/login",
method=GET)
public String login()
Copyright © 2017. All rights reserved.