removing deprecated controller
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / MediaPortalController.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.cdm.remote.controller;
12
13 import java.util.Arrays;
14 import java.util.List;
15
16 import org.springframework.beans.factory.annotation.Autowired;
17 import org.springframework.stereotype.Controller;
18 import org.springframework.web.bind.annotation.RequestMapping;
19
20 import eu.etaxonomy.cdm.api.service.IMediaService;
21 import eu.etaxonomy.cdm.model.media.Media;
22
23 /**
24 * TODO write controller documentation
25 *
26 * @author a.kohlbecker
27 * @date 24.03.2009
28 */
29
30 @Controller
31 @RequestMapping(value = {"/portal/media/{uuid}"})
32 public class MediaPortalController extends BaseController<Media, IMediaService>
33 {
34
35 private static final List<String> MEDIA_INIT_STRATEGY = Arrays.asList(new String []{
36 "$",
37 "rights.type",
38 "rights.agent",
39 "representations.parts",
40 });
41
42 public MediaPortalController(){
43 super();
44 setInitializationStrategy(MEDIA_INIT_STRATEGY);
45 }
46
47 /* (non-Javadoc)
48 * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
49 */
50 @Autowired
51 @Override
52 public void setService(IMediaService service) {
53 this.service = service;
54 }
55
56 }