d85060c80836a6da9d607af2ff8a2e1220cbc848
[mir.git] / source / mir / core / model / Media.java
1 package mir.core.model;
2
3 import java.io.Serializable;
4 import java.util.Date;
5 import java.util.Set;
6
7 import org.apache.commons.lang.builder.EqualsBuilder;
8 import org.apache.commons.lang.builder.HashCodeBuilder;
9 import org.apache.commons.lang.builder.ToStringBuilder;
10
11 /** @author Hibernate CodeGenerator */
12 public class Media implements Serializable {
13
14     /** identifier field */
15     private Integer id;
16
17     /** persistent field */
18     private String title;
19
20     /** nullable persistent field */
21     private String subtitle;
22
23     /** nullable persistent field */
24     private String edittitle;
25
26     /** persistent field */
27     private String date;
28
29     /** nullable persistent field */
30     private String creator;
31
32     /** nullable persistent field */
33     private String creatorMainUrl;
34
35     /** nullable persistent field */
36     private String creatorEmail;
37
38     /** nullable persistent field */
39     private String creatorAddress;
40
41     /** nullable persistent field */
42     private String creatorPhone;
43
44     /** nullable persistent field */
45     private String description;
46
47     /** nullable persistent field */
48     private String keywords;
49
50     /** nullable persistent field */
51     private String comment;
52
53     /** nullable persistent field */
54     private String source;
55
56     /** nullable persistent field */
57     private Date publishDate;
58
59     /** nullable persistent field */
60     private String publishServer;
61
62     /** nullable persistent field */
63     private String publishPath;
64
65     /** persistent field */
66     private boolean isPublished;
67
68     /** persistent field */
69     private boolean isProduced;
70
71     /** persistent field */
72     private Date webdbCreate;
73
74     /** nullable persistent field */
75     private Date webdbLastchange;
76
77     /** nullable persistent field */
78     private mir.core.model.Feature feature;
79
80     /** nullable persistent field */
81     private MediaFolder mediaFolder;
82
83     /** nullable persistent field */
84     private MediaType mediaType;
85
86     /** nullable persistent field */
87     private MirUser publisher;
88
89     /** nullable persistent field */
90     private Language language;
91
92     /** nullable persistent field */
93     private Rights rights;
94     
95     private Set content;
96
97     /** default constructor */
98     public Media() {
99     
100     }
101
102     public java.lang.Integer getId() {
103         return this.id;
104     }
105
106     public void setId(java.lang.Integer id) {
107         this.id = id;
108     }
109
110     public java.lang.String getTitle() {
111         return this.title;
112     }
113
114     public void setTitle(java.lang.String title) {
115         this.title = title;
116     }
117
118     public java.lang.String getSubtitle() {
119         return this.subtitle;
120     }
121
122     public void setSubtitle(java.lang.String subtitle) {
123         this.subtitle = subtitle;
124     }
125
126     public java.lang.String getEdittitle() {
127         return this.edittitle;
128     }
129
130     public void setEdittitle(java.lang.String edittitle) {
131         this.edittitle = edittitle;
132     }
133
134     public java.lang.String getDate() {
135         return this.date;
136     }
137
138     public void setDate(java.lang.String date) {
139         this.date = date;
140     }
141
142     public java.lang.String getCreator() {
143         return this.creator;
144     }
145
146     public void setCreator(java.lang.String creator) {
147         this.creator = creator;
148     }
149
150     public java.lang.String getCreatorMainUrl() {
151         return this.creatorMainUrl;
152     }
153
154     public void setCreatorMainUrl(java.lang.String creatorMainUrl) {
155         this.creatorMainUrl = creatorMainUrl;
156     }
157
158     public java.lang.String getCreatorEmail() {
159         return this.creatorEmail;
160     }
161
162     public void setCreatorEmail(java.lang.String creatorEmail) {
163         this.creatorEmail = creatorEmail;
164     }
165
166     public java.lang.String getCreatorAddress() {
167         return this.creatorAddress;
168     }
169
170     public void setCreatorAddress(java.lang.String creatorAddress) {
171         this.creatorAddress = creatorAddress;
172     }
173
174     public java.lang.String getCreatorPhone() {
175         return this.creatorPhone;
176     }
177
178     public void setCreatorPhone(java.lang.String creatorPhone) {
179         this.creatorPhone = creatorPhone;
180     }
181
182     public java.lang.String getDescription() {
183         return this.description;
184     }
185
186     public void setDescription(java.lang.String description) {
187         this.description = description;
188     }
189
190     public java.lang.String getKeywords() {
191         return this.keywords;
192     }
193
194     public void setKeywords(java.lang.String keywords) {
195         this.keywords = keywords;
196     }
197
198     public java.lang.String getComment() {
199         return this.comment;
200     }
201
202     public void setComment(java.lang.String comment) {
203         this.comment = comment;
204     }
205
206     public java.lang.String getSource() {
207         return this.source;
208     }
209
210     public void setSource(java.lang.String source) {
211         this.source = source;
212     }
213
214     public java.util.Date getPublishDate() {
215         return this.publishDate;
216     }
217
218     public void setPublishDate(java.util.Date publishDate) {
219         this.publishDate = publishDate;
220     }
221
222     public java.lang.String getPublishServer() {
223         return this.publishServer;
224     }
225
226     public void setPublishServer(java.lang.String publishServer) {
227         this.publishServer = publishServer;
228     }
229
230     public java.lang.String getPublishPath() {
231         return this.publishPath;
232     }
233
234     public void setPublishPath(java.lang.String publishPath) {
235         this.publishPath = publishPath;
236     }
237
238     public boolean isIsPublished() {
239         return this.isPublished;
240     }
241
242     public void setIsPublished(boolean isPublished) {
243         this.isPublished = isPublished;
244     }
245
246     public boolean isIsProduced() {
247         return this.isProduced;
248     }
249
250     public void setIsProduced(boolean isProduced) {
251         this.isProduced = isProduced;
252     }
253
254     public java.util.Date getWebdbCreate() {
255         return this.webdbCreate;
256     }
257
258     public void setWebdbCreate(java.util.Date webdbCreate) {
259         this.webdbCreate = webdbCreate;
260     }
261
262     public java.util.Date getWebdbLastchange() {
263         return this.webdbLastchange;
264     }
265
266     public void setWebdbLastchange(java.util.Date webdbLastchange) {
267         this.webdbLastchange = webdbLastchange;
268     }
269
270     public mir.core.model.Feature getFeature() {
271         return this.feature;
272     }
273
274     public void setFeature(mir.core.model.Feature feature) {
275         this.feature = feature;
276     }
277
278     public mir.core.model.MediaFolder getMediaFolder() {
279         return this.mediaFolder;
280     }
281
282     public void setMediaFolder(mir.core.model.MediaFolder mediaFolder) {
283         this.mediaFolder = mediaFolder;
284     }
285
286     public mir.core.model.MediaType getMediaType() {
287         return this.mediaType;
288     }
289
290     public void setMediaType(mir.core.model.MediaType mediaType) {
291         this.mediaType = mediaType;
292     }
293
294     public mir.core.model.MirUser getPublisher() {
295         return this.publisher;
296     }
297
298     public void setPublisher(mir.core.model.MirUser publisher) {
299         this.publisher = publisher;
300     }
301
302     public mir.core.model.Language getLanguage() {
303         return this.language;
304     }
305
306     public void setLanguage(mir.core.model.Language language) {
307         this.language = language;
308     }
309
310     public mir.core.model.Rights getRights() {
311         return this.rights;
312     }
313
314     public void setRights(mir.core.model.Rights rights) {
315         this.rights = rights;
316     }
317
318                 /**
319                  * @return
320                  */
321                 public Set getContent() {
322                         return content;
323                 }
324
325                 /**
326                  * @param content
327                  */
328                 public void setContent(Set content) {
329                         this.content = content;
330                 }
331
332                 /**
333                  * @return
334                  */
335                 public boolean isProduced() {
336                         return isProduced;
337                 }
338
339                 /**
340                  * @param isProduced
341                  */
342                 public void setProduced(boolean isProduced) {
343                         this.isProduced = isProduced;
344                 }
345
346                 /**
347                  * @return
348                  */
349                 public boolean isPublished() {
350                         return isPublished;
351                 }
352
353                 /**
354                  * @param isPublished
355                  */
356                 public void setPublished(boolean isPublished) {
357                         this.isPublished = isPublished;
358                 }
359
360     public String toString() {
361         return new ToStringBuilder(this)
362             .append("id", getId())
363             .toString();
364     }
365
366     public boolean equals(Object other) {
367         if ( !(other instanceof Media) ) return false;
368         Media castOther = (Media) other;
369         return new EqualsBuilder()
370             .append(this.getId(), castOther.getId())
371             .isEquals();
372     }
373
374     public int hashCode() {
375         return new HashCodeBuilder()
376             .append(getId())
377             .toHashCode();
378     }
379
380 }