2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.remote
.controller
;
12 import java
.util
.Arrays
;
14 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
15 import org
.springframework
.stereotype
.Controller
;
16 import org
.springframework
.web
.bind
.annotation
.RequestMapping
;
18 import eu
.etaxonomy
.cdm
.api
.service
.IMediaService
;
19 import eu
.etaxonomy
.cdm
.persistence
.dao
.initializer
.EntityInitStrategy
;
20 import io
.swagger
.annotations
.Api
;
23 * TODO write controller documentation
25 * @author a.kohlbecker
31 @RequestMapping(value
= {"/portal/media/{uuid}"})
32 public class MediaPortalController
extends MediaController
35 public static final EntityInitStrategy MEDIA_INIT_STRATEGY
= new EntityInitStrategy(Arrays
.asList(new String
[]{
41 "representations.parts",
43 "sources.citation.authorship",
45 "sources.annotations",
49 public MediaPortalController(){
51 setInitializationStrategy(MEDIA_INIT_STRATEGY
.getPropertyPaths());
56 public void setService(IMediaService service
) {
57 this.service
= service
;