Project

General

Profile

Revision 60ef4839

ID60ef4839353c7006f1557f9b0ea93e16dedc36c7
Parent 84673358
Child 5c530881

Added by Andreas Kohlbecker over 2 years ago

cleaning up controller code

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/NameController.java
135 135
     * TODO obsolete method?
136 136
     */
137 137
    @RequestMapping(value = { "typeDesignations" }, method = RequestMethod.GET)
138
    public List<TypeDesignationBase> doGetNameTypeDesignations(
138
    public List<TypeDesignationBase> doGetTypeDesignations(
139 139
            @PathVariable("uuid") UUID uuid, HttpServletRequest request,
140 140
            HttpServletResponse response) throws IOException {
141 141

  
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/NamePortalController.java
23 23
import org.springframework.web.bind.annotation.PathVariable;
24 24
import org.springframework.web.bind.annotation.RequestMapping;
25 25
import org.springframework.web.bind.annotation.RequestMethod;
26
import org.springframework.web.servlet.ModelAndView;
27 26

  
28 27
import eu.etaxonomy.cdm.api.service.IDescriptionService;
29 28
import eu.etaxonomy.cdm.api.service.INameService;
......
135 134
     *         {@link #TYPEDESIGNATION_INIT_STRATEGY}
136 135
     * @throws IOException
137 136
     */
138
    @SuppressWarnings("unchecked")
139 137
    @RequestMapping(
140 138
            value = {"typeDesignations"},
141 139
            method = RequestMethod.GET)
142 140
    public List<TypeDesignationBase> doGetTypeDesignations(@PathVariable("uuid") UUID uuid,
143 141
            HttpServletRequest request, HttpServletResponse response)throws IOException {
144
        ModelAndView mv = new ModelAndView();
145 142
        TaxonName tnb = getCdmBaseInstance(uuid, response, (List<String>)null);
146 143
        Pager<TypeDesignationBase> p = service.getTypeDesignations(tnb,  null, null, null, TYPEDESIGNATION_INIT_STRATEGY);
147 144
        return p.getRecords();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)