org.cateproject.controller.occurrence.collection
Class CollectionListController
java.lang.Object
org.cateproject.controller.GenericController<T,IDENTIFIER,SERVICE>
org.cateproject.controller.GenericListController<T,UUID,SERVICE>
org.cateproject.controller.common.VersionableListController<T,SERVICE>
org.cateproject.controller.common.IdentifiableListController<eu.etaxonomy.cdm.model.occurrence.Collection,eu.etaxonomy.cdm.api.service.ICollectionService>
org.cateproject.controller.occurrence.collection.CollectionListController
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware
@Controller
@RequestMapping(value="/collection")
public class CollectionListController
- extends IdentifiableListController<eu.etaxonomy.cdm.model.occurrence.Collection,eu.etaxonomy.cdm.api.service.ICollectionService>
| Fields inherited from class org.cateproject.controller.GenericController |
applicationContext, collectionsMapper, DEFAULT_LIMIT, DEFAULT_PAGE, DEFAULT_SORT, LIST_KEY, ORDER_HINTS_KEY, propertiesMapper, RESOURCE_KEY, service, type, validator |
|
Method Summary |
org.springframework.web.servlet.ModelAndView |
get(Class<? extends eu.etaxonomy.cdm.model.occurrence.Collection> clazz,
Integer page,
Integer limit,
List<eu.etaxonomy.cdm.persistence.query.OrderHint> orderHints)
|
org.springframework.web.servlet.ModelAndView |
getSearch(Class<? extends eu.etaxonomy.cdm.model.occurrence.Collection> clazz,
String query,
Integer page,
Integer limit,
List<eu.etaxonomy.cdm.persistence.query.OrderHint> orderHints)
|
org.springframework.web.servlet.ModelAndView |
getSummary()
|
org.springframework.web.servlet.ModelAndView |
post(eu.etaxonomy.cdm.model.occurrence.Collection object)
|
void |
setService(eu.etaxonomy.cdm.api.service.ICollectionService service)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionListController
public CollectionListController()
setService
public void setService(eu.etaxonomy.cdm.api.service.ICollectionService service)
- Specified by:
setService in class GenericController<eu.etaxonomy.cdm.model.occurrence.Collection,UUID,eu.etaxonomy.cdm.api.service.ICollectionService>
get
@RequestMapping(method=GET,
params={"!search","!summary"})
public org.springframework.web.servlet.ModelAndView get(@RequestParam(value="class",required=false)
Class<? extends eu.etaxonomy.cdm.model.occurrence.Collection> clazz,
@RequestParam(value="page",required=false,defaultValue="0")
Integer page,
@RequestParam(value="limit",required=false,defaultValue="20")
Integer limit,
@RequestParam(value="sort",required=false,defaultValue="titleCache_asc")
List<eu.etaxonomy.cdm.persistence.query.OrderHint> orderHints)
- Overrides:
get in class IdentifiableListController<eu.etaxonomy.cdm.model.occurrence.Collection,eu.etaxonomy.cdm.api.service.ICollectionService>
getSummary
@RequestMapping(method=GET,
params="summary")
public org.springframework.web.servlet.ModelAndView getSummary()
- Overrides:
getSummary in class IdentifiableListController<eu.etaxonomy.cdm.model.occurrence.Collection,eu.etaxonomy.cdm.api.service.ICollectionService>
getSearch
@RequestMapping(params="search",
method=GET)
public org.springframework.web.servlet.ModelAndView getSearch(@RequestParam(value="class",required=false)
Class<? extends eu.etaxonomy.cdm.model.occurrence.Collection> clazz,
@RequestParam(value="query",required=false)
String query,
@RequestParam(value="page",required=false)
Integer page,
@RequestParam(value="limit",required=false,defaultValue="20")
Integer limit,
@RequestParam(value="sort",required=false,defaultValue="titleCache_asc")
List<eu.etaxonomy.cdm.persistence.query.OrderHint> orderHints)
- Overrides:
getSearch in class IdentifiableListController<eu.etaxonomy.cdm.model.occurrence.Collection,eu.etaxonomy.cdm.api.service.ICollectionService>
post
@ResponseStatus(value=CREATED)
@RequestMapping(method=POST)
public org.springframework.web.servlet.ModelAndView post(@RequestBody
eu.etaxonomy.cdm.model.occurrence.Collection object)
- Specified by:
post in class IdentifiableListController<eu.etaxonomy.cdm.model.occurrence.Collection,eu.etaxonomy.cdm.api.service.ICollectionService>
Copyright © 2010. All Rights Reserved.