1 /**
2 * Copyright 2005-2006 the original author or authors.
3 *
4 * Licensed under the Gnu General Pubic License, Version 2.0 (the
5 * "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/gpl-license.php
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the Gnu General Public License for more details.
14 */
15 package org.figure8.join.services.remoting.beans;
16
17 import java.util.Date;
18 import java.io.Serializable;
19 /**
20 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
21 * @version $Revision: 1.1 $
22 */
23 public class RemoteMessage implements Serializable{
24
25
26
27 /** The title of this message. */
28 private String title;
29 /** The content of this message. */
30 private String content;
31 /** A link to reference from this message. */
32 private String link;
33 /** The date of first publication of this message. */
34 private Date publicationDate;
35 /** Expiration date (ie. end of publication) for this message. */
36 private Date expiryDate;
37
38 /** The release this message is attached to. */
39 private RemoteRelease release = null;
40
41
42
43
44
45
46
47 /** @return This message title. */
48 public String getTitle(){
49 return title;
50 }
51 /** @param title This message title. */
52 public void setTitle(String title){
53 this.title = title;
54 }
55
56 /** @return This message content. */
57 public String getContent(){
58 return content;
59 }
60 /** @param content This message content. */
61 public void setContent(String content){
62 this.content = content;
63 }
64
65 /** @return A link to reference from message. */
66 public String getLink(){
67 return link;
68 }
69 /** @param link The link to reference from message. */
70 public void setLink(String link){
71 this.link = link;
72 }
73
74 /** @return This message publication date */
75 public Date getPublicationDate(){
76 return publicationDate;
77 }
78 /** @param publicationDate This message publication date */
79 public void setPublicationDate(Date publicationDate){
80 this.publicationDate = publicationDate;
81 }
82
83 /** @return This message expiry date */
84 public Date getExpiryDate(){
85 return expiryDate;
86 }
87 /** @param expiryDate This message expiry date */
88 public void setExpiryDate(Date expiryDate){
89 this.expiryDate = expiryDate;
90 }
91 }
92