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.dto;
|
11
|
|
12
|
import java.util.Calendar;
|
13
|
import java.util.HashSet;
|
14
|
import java.util.Set;
|
15
|
|
16
|
/**
|
17
|
* @author a.kohlbecker
|
18
|
* @version 1.0
|
19
|
* @created 11.12.2007 12:13:42
|
20
|
*
|
21
|
*/
|
22
|
public class MediaTO extends BaseTO implements IBaseSTO{
|
23
|
|
24
|
/**
|
25
|
* The title of the Media instance
|
26
|
*/
|
27
|
private String title;
|
28
|
|
29
|
/**
|
30
|
* The description of the Media.
|
31
|
*/
|
32
|
private String description;
|
33
|
/**
|
34
|
* A single medium such as a picture can have multiple representations.
|
35
|
* Common are multiple resolutions or file
|
36
|
* formats for images for example
|
37
|
*/
|
38
|
|
39
|
private Set<MediaRepresentationSTO> representations;
|
40
|
/**
|
41
|
* several rightTOs in the SAME language, not different languages for the SAME rights UUID
|
42
|
*/
|
43
|
private Set<RightsSTO> rights;
|
44
|
private IdentifiedString artist;
|
45
|
|
46
|
|
47
|
public String getTitle() {
|
48
|
return title;
|
49
|
}
|
50
|
public void setTitle(String title) {
|
51
|
this.title = title;
|
52
|
}
|
53
|
public String getDescription() {
|
54
|
return description;
|
55
|
}
|
56
|
public void setDescription(String description) {
|
57
|
this.description = description;
|
58
|
}
|
59
|
public Set<MediaRepresentationSTO> getRepresentations() {
|
60
|
return representations;
|
61
|
}
|
62
|
public void setRepresentations(Set<MediaRepresentationSTO> representations) {
|
63
|
this.representations = representations;
|
64
|
}
|
65
|
|
66
|
public void addRepresenation(MediaRepresentationSTO representation){
|
67
|
representations.add(representation);
|
68
|
}
|
69
|
|
70
|
public IdentifiedString getArtist() {
|
71
|
return artist;
|
72
|
}
|
73
|
public void setArtist(IdentifiedString artist) {
|
74
|
this.artist = artist;
|
75
|
}
|
76
|
public Set<RightsSTO> getRights() {
|
77
|
return rights;
|
78
|
}
|
79
|
public void setRights(Set<RightsSTO> rights) {
|
80
|
this.rights = rights;
|
81
|
}
|
82
|
|
83
|
}
|