Project

General

Profile

Actions

bug #9947

open

Make DescriptionElementController inherit from base controller and remove doGetDescriptionElementAnnotations

Added by Andreas Müller about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
New
Category:
cdmlib-remote
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Found in Version:

Description

copied from #694#note-15


Related issues

Copied from EDIT - feature request #694: FeatureTreeService and DescriptionElement implementedClosedAndreas Müller

Actions
Actions #1

Updated by Andreas Müller about 2 years ago

Actions #2

Updated by Andreas Müller about 2 years ago

Is the getAnnotations method available in the BaseController already or does this only come with the AbstractIdentifiableController. What is the name of the method?

Actions #3

Updated by Andreas Kohlbecker about 2 years ago

Andreas Müller wrote in #note-2:

Is the getAnnotations method available in the BaseController already or does this only come with the AbstractIdentifiableController. What is the name of the method?

BaseController:

 @RequestMapping(value = "*", method = RequestMethod.GET)
    public Object doGetMethod(
            @PathVariable("uuid") UUID uuid,
            // doPage request parameters
            @RequestParam(value = "pageIndex", required = false) Integer pageIndex,
            @RequestParam(value = "pageSize", required = false) Integer pageSize,
            // doList request parameters
            @RequestParam(value = "start", required = false) Integer start,
            @RequestParam(value = "limit", required = false) Integer limit,
            HttpServletRequest request,
            HttpServletResponse response) throws IOException {

The "*" as request param is a wildcard for any bean property, and thus matched annotations

Actions

Also available in: Atom PDF