ref #7674 Add equals() and hashCode() to RowWrapperDTO
[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 String uri;
24
25 private String title_l10n;
26
27 private String mimeType;
28
29 private Integer size;
30
31
32 /**
33 * @param type
34 * @param uuid
35 */
36 public MediaDTO(UUID uuid) {
37 super(Media.class, uuid);
38 }
39
40 public String getUri() {
41 return uri;
42 }
43 public void setUri(String uri) {
44 this.uri = uri;
45 }
46
47 public String getTitle_l10n() {
48 return title_l10n;
49 }
50 public void setTitle_l10n(String title_l10n) {
51 this.title_l10n = title_l10n;
52 }
53
54 public String getMimeType() {
55 return mimeType;
56 }
57 public void setMimeType(String mimeType) {
58 this.mimeType = mimeType;
59 }
60
61 public Integer getSize() {
62 return size;
63 }
64 public void setSize(Integer size) {
65 this.size = size;
66 }
67
68 }