1 |
b7799a2b
|
m.doering
|
/**
|
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 |
13f56004
|
m.doering
|
package eu.etaxonomy.cdm.remote.dto;
|
11 |
b7799a2b
|
m.doering
|
|
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 |
fa4ffc7f
|
m.doering
|
public class MediaTO extends BaseTO implements IBaseSTO{
|
23 |
b7799a2b
|
m.doering
|
|
24 |
b05aff14
|
Andreas Kohlbecker
|
/**
|
25 |
|
|
* The title of the Media instance
|
26 |
|
|
*/
|
27 |
548b21e9
|
m.doering
|
private String title;
|
28 |
b05aff14
|
Andreas Kohlbecker
|
|
29 |
|
|
/**
|
30 |
|
|
* The description of the Media.
|
31 |
|
|
*/
|
32 |
548b21e9
|
m.doering
|
private String description;
|
33 |
b7799a2b
|
m.doering
|
/**
|
34 |
d4aa7b3b
|
Andreas Kohlbecker
|
* A single medium such as a picture can have multiple representations.
|
35 |
b7799a2b
|
m.doering
|
* Common are multiple resolutions or file
|
36 |
|
|
* formats for images for example
|
37 |
|
|
*/
|
38 |
|
|
|
39 |
d4aa7b3b
|
Andreas Kohlbecker
|
private Set<MediaRepresentationSTO> representations;
|
40 |
548b21e9
|
m.doering
|
/**
|
41 |
|
|
* several rightTOs in the SAME language, not different languages for the SAME rights UUID
|
42 |
|
|
*/
|
43 |
64c74c1a
|
m.doering
|
private Set<RightsSTO> rights;
|
44 |
b7799a2b
|
m.doering
|
private IdentifiedString artist;
|
45 |
|
|
|
46 |
64c74c1a
|
m.doering
|
|
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 |
d4aa7b3b
|
Andreas Kohlbecker
|
public Set<MediaRepresentationSTO> getRepresentations() {
|
60 |
|
|
return representations;
|
61 |
64c74c1a
|
m.doering
|
}
|
62 |
d4aa7b3b
|
Andreas Kohlbecker
|
public void setRepresentations(Set<MediaRepresentationSTO> representations) {
|
63 |
|
|
this.representations = representations;
|
64 |
64c74c1a
|
m.doering
|
}
|
65 |
d4aa7b3b
|
Andreas Kohlbecker
|
|
66 |
|
|
public void addRepresenation(MediaRepresentationSTO representation){
|
67 |
|
|
representations.add(representation);
|
68 |
64c74c1a
|
m.doering
|
}
|
69 |
d4aa7b3b
|
Andreas Kohlbecker
|
|
70 |
64c74c1a
|
m.doering
|
public IdentifiedString getArtist() {
|
71 |
|
|
return artist;
|
72 |
|
|
}
|
73 |
|
|
public void setArtist(IdentifiedString artist) {
|
74 |
|
|
this.artist = artist;
|
75 |
|
|
}
|
76 |
d4aa7b3b
|
Andreas Kohlbecker
|
public Set<RightsSTO> getRights() {
|
77 |
|
|
return rights;
|
78 |
|
|
}
|
79 |
|
|
public void setRights(Set<RightsSTO> rights) {
|
80 |
|
|
this.rights = rights;
|
81 |
|
|
}
|
82 |
64c74c1a
|
m.doering
|
|
83 |
b7799a2b
|
m.doering
|
}
|