Project

General

Profile

Revision 062fde15

ID062fde15fa09d2d66d4be4a7c027b0ce6e83dfa1
Parent b4b7bfe8
Child 4881f5e5

Added by Andreas Müller almost 3 years ago

fix #6122 fix signature issue

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/AgentController.java
26 26
import org.springframework.web.bind.annotation.RequestMapping;
27 27
import org.springframework.web.bind.annotation.RequestMethod;
28 28
import org.springframework.web.bind.annotation.RequestParam;
29
import org.springframework.web.servlet.ModelAndView;
30 29

  
31 30
import eu.etaxonomy.cdm.api.service.IAgentService;
32 31
import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
......
88 87
    @Autowired
89 88
    private ITaxonNodeService nodeService;
90 89

  
91
    /* (non-Javadoc)
92
     * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
93
     */
94 90
    @Autowired
95 91
    @Override
96 92
    public void setService(IAgentService service) {
......
105 101
    }
106 102

  
107 103
    /**
108
     * This method is only needed for
109
     * {@link eu.etaxonomy.cdm.model.agent.TeamOrPersonBase} or sub classes
110
     * which are also handled by this controller.
111
     *
112
     * The method
113
     * {@link eu.etaxonomy.cdm.model.agent.TeamOrPersonBase#getTitleCache() } is
114
     * annotated with @Transient and thus it is not automatically made available
115
     * by the BaseController.
116
     *
117
     * @param uuid
118
     * @param request
119
     * @param response
120
     * @return
121
     * @throws IOException
122
     */
123
    @RequestMapping(value = {"titleCache"}, method = RequestMethod.GET)
124
    public ModelAndView doGetTitleCache(@PathVariable("uuid") UUID uuid,
125
            HttpServletRequest request, HttpServletResponse response) throws IOException {
126
        ModelAndView mv = new ModelAndView();
127
        AgentBase<?> agentbase = service.load(uuid);
128
        mv.addObject(agentbase.getTitleCache());
129
        return mv;
130

  
131
    }
132
    /**
133 104
     *
134 105
     * See also {@link TaxonController#doGetTaxonNodeAgentRelations(UUID, UUID, Integer, Integer, HttpServletRequest, HttpServletResponse)}
135 106
     *

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)