Project

General

Profile

Download (1.4 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9

    
10
package eu.etaxonomy.cdm.remote.controller;
11

    
12
import java.util.Arrays;
13
import java.util.List;
14

    
15
import org.springframework.beans.factory.annotation.Autowired;
16
import org.springframework.stereotype.Controller;
17
import org.springframework.web.bind.annotation.RequestMapping;
18

    
19
import eu.etaxonomy.cdm.api.service.IMediaService;
20
import io.swagger.annotations.Api;
21

    
22
/**
23
 * TODO write controller documentation
24
 *
25
 * @author a.kohlbecker
26
 * @since 24.03.2009
27
 */
28

    
29
@Controller
30
@Api("portal_media")
31
@RequestMapping(value = {"/portal/media/{uuid}"})
32
public class MediaPortalController extends MediaController
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
            "allDescriptions",
41
            "sources.citation.authorship"
42
    });
43

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

    
49
    @Autowired
50
    @Override
51
    public void setService(IMediaService service) {
52
        this.service = service;
53
    }
54

    
55
}
(37-37/67)