Project

General

Profile

Revision b4b7bfe8

IDb4b7bfe8dd6aa6b0eba0ac8f4dce2fff2d20e2c0
Parent 2d1fc4f4
Child 062fde15

Added by Andreas Müller almost 3 years ago

fix #6122 add titleCache service to remote

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/AbstractIdentifiableController.java
9 9
*/
10 10
package eu.etaxonomy.cdm.remote.controller;
11 11

  
12
import java.io.IOException;
13
import java.util.UUID;
14

  
15
import javax.servlet.http.HttpServletRequest;
16
import javax.servlet.http.HttpServletResponse;
17

  
12 18
import org.springframework.web.bind.WebDataBinder;
13 19
import org.springframework.web.bind.annotation.InitBinder;
20
import org.springframework.web.bind.annotation.PathVariable;
21
import org.springframework.web.bind.annotation.RequestMapping;
22
import org.springframework.web.bind.annotation.RequestMethod;
23
import org.springframework.web.bind.annotation.RequestParam;
14 24

  
15 25
import eu.etaxonomy.cdm.api.service.IIdentifiableEntityService;
16 26
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
......
32 42
        binder.registerCustomEditor(MatchMode.class, new MatchModePropertyEditor());
33 43
    }
34 44

  
45
    /**
46
     * List identifiable entities by markers
47
     *
48
     * @param type
49
     * @param request
50
     * @param response
51
     * @return
52
     * @see AbstractIdentifiableListController#doFindByIdentifier(Class, String, String, Integer, Integer, MatchMode, Boolean, HttpServletRequest, HttpServletResponse)
53
     * @throws IOException
54
     */
55
    @RequestMapping(method = RequestMethod.GET, value={"titleCache"})
56
    public String doGetTitleCache(
57
            @PathVariable("uuid") UUID uuid,
58
            @RequestParam(value = "refresh", defaultValue= "false", required = false) Boolean refresh,
59
            HttpServletRequest request,
60
            HttpServletResponse response
61
            )
62
            throws IOException {
63

  
64
        if (logger.isDebugEnabled()){logger.info("doGetTitleCache  : " + request.getRequestURI() + "?" + request.getQueryString() );}
65

  
66
        return service.getTitleCache(uuid, refresh);
67
    }
68

  
69

  
70

  
35 71
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)