Project

General

Profile

« Previous | Next » 

Revision 395b33fe

Added by Andreas Müller over 7 years ago

ref #6072 fix signature issue in remote

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/IdentifiableListController.java
161 161
    @RequestMapping(method = RequestMethod.GET, value={"findByMarker"}, params={"subtree"})
162 162
    public Pager<FindByMarkerDTO<T>> doFindByMarker(
163 163
            @RequestParam(value = "class", required = false) Class<T> type,
164
            @RequestParam(value = "markerType", required = true) UUID markerTypeUuid,
164
            @RequestParam(value = "markerType", required = true) String markerTypeUuidStr,
165 165
            @RequestParam(value = "value", required = false) Boolean value,
166 166
            @RequestParam(value = "pageNumber", required = false) Integer pageNumber,
167 167
            @RequestParam(value = "pageSize", required = false) Integer pageSize,
......
172 172
            throws IOException {
173 173

  
174 174
        MarkerType markerType = null;
175
        if(markerTypeUuid != null){
176
            DefinedTermBase<?> term = CdmBase.deproxy(termService.find(markerTypeUuid), MarkerType.class);
175
        if(StringUtils.isNotBlank(markerTypeUuidStr)){
176
            markerTypeUuidStr = StringUtils.trim(markerTypeUuidStr);
177
            UUID markerTypeUUID = UUID.fromString(markerTypeUuidStr);
178
            DefinedTermBase<?> term = CdmBase.deproxy(termService.find(markerTypeUUID), MarkerType.class);
177 179
            if (term != null && term.isInstanceOf(MarkerType.class)){
178 180
                markerType = CdmBase.deproxy(term, MarkerType.class);
179 181
            }

Also available in: Unified diff