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 * This is a thin bean for providing a remote view of <code>User</code>
21 * that has subsribed to a given mailing list. This view only provides getter methods.
22 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
23 * @version $Revision: 1.1 $
24 *
25 * @see org.figure8.join.businessobjects.security.User
26 * @see org.figure8.join.businessobjects.reporting.MailingList
27 * @see org.figure8.join.businessobjects.reporting.Subscription
28 */
29 public class RemoteSubscriber implements Serializable{
30
31
32
33 /** This subscriber lastname */
34 private String lastname;
35 /** This subscriber firstname */
36 private String firstname;
37 /** This subscriber mail address */
38 private String mailAddress;
39 /** This subsriber subscription date */
40 private Date subscriptionDate;
41
42
43
44
45 /**
46 * Creates a new RemoteSubscriber
47 * @param lastname This subscriber lastname
48 * @param firstname This subscriber firstname
49 * @param mailAddress This subscriber mail address
50 * @param subscriptionDate This subscription date
51 */
52 public RemoteSubscriber(String lastname, String firstname, String mailAddress, Date subscriptionDate){
53 this.lastname = lastname;
54 this.firstname = firstname;
55 this.mailAddress = mailAddress;
56 this.subscriptionDate = subscriptionDate;
57 }
58
59
60
61
62 /** @return This subscriber lastname */
63 public String getLastname(){
64 return lastname;
65 }
66 /** @return This subscriber firstname */
67 public String getFirstname(){
68 return firstname;
69 }
70 /** @return This subscriber mail address */
71 public String getMailAddress(){
72 return mailAddress;
73 }
74 /** @return This subscriber subscription date */
75 public Date getSubscriptionDate(){
76 return subscriptionDate;
77 }
78 }