Project

General

Profile

Download (1.48 KB) Statistics
| Branch: | Tag: | Revision:
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 io.swagger.annotations.Api;
14

    
15
import java.util.Arrays;
16
import java.util.List;
17

    
18
import org.springframework.beans.factory.annotation.Autowired;
19
import org.springframework.stereotype.Controller;
20
import org.springframework.web.bind.annotation.RequestMapping;
21

    
22
import eu.etaxonomy.cdm.api.service.IMediaService;
23

    
24
/**
25
 * TODO write controller documentation
26
 *
27
 * @author a.kohlbecker
28
 * @date 24.03.2009
29
 */
30

    
31
@Controller
32
@Api("portal_media")
33
@RequestMapping(value = {"/portal/media/{uuid}"})
34
public class MediaPortalController extends MediaController
35
{
36

    
37
    private static final List<String> MEDIA_INIT_STRATEGY = Arrays.asList(new String []{
38
            "$",
39
            "rights.type",
40
            "rights.agent",
41
            "representations.parts",
42
    });
43

    
44
    public MediaPortalController(){
45
        super();
46
        setInitializationStrategy(MEDIA_INIT_STRATEGY);
47
    }
48

    
49
    /* (non-Javadoc)
50
     * @see eu.etaxonomy.cdm.remote.controller.GenericController#setService(eu.etaxonomy.cdm.api.service.IService)
51
     */
52
    @Autowired
53
    @Override
54
    public void setService(IMediaService service) {
55
        this.service = service;
56
    }
57

    
58
}
(36-36/63)