ref #7966 preparing web service contollers to search for NULL type status via UUID...
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / dto / MediaDTO.java
1 /**
2 * Copyright (C) 2018 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 package eu.etaxonomy.cdm.api.service.dto;
10
11 import java.util.UUID;
12
13 import eu.etaxonomy.cdm.model.media.Media;
14 import eu.etaxonomy.cdm.ref.TypedEntityReference;
15
16 /**
17 * @author a.kohlbecker
18 * @since Aug 3, 2018
19 *
20 */
21 public class MediaDTO extends TypedEntityReference<Media> {
22
23 private static final long serialVersionUID = 1981292478312137355L;
24
25 private String uri;
26
27 private String title_l10n;
28
29 private String mimeType;
30
31 private Integer size;
32
33
34 /**
35 * @param type
36 * @param uuid
37 */
38 public MediaDTO(UUID uuid) {
39 super(Media.class, uuid);
40 }
41
42 public String getUri() {
43 return uri;
44 }
45 public void setUri(String uri) {
46 this.uri = uri;
47 }
48
49 public String getTitle_l10n() {
50 return title_l10n;
51 }
52 public void setTitle_l10n(String title_l10n) {
53 this.title_l10n = title_l10n;
54 }
55
56 public String getMimeType() {
57 return mimeType;
58 }
59 public void setMimeType(String mimeType) {
60 this.mimeType = mimeType;
61 }
62
63 public Integer getSize() {
64 return size;
65 }
66 public void setSize(Integer size) {
67 this.size = size;
68 }
69
70 }