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>Release</code>
21 * managed for the software project. This view only provides getter methods.
22 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
23 * @version $Revision: 1.2 $
24 *
25 * @see org.figure8.join.businessobjects.commons.Release
26 */
27 public class RemoteRelease implements Serializable{
28
29
30
31 /** This release unique name */
32 private String name;
33 /** This release sipping date */
34 private Date shippingDate;
35
36
37
38
39 /**
40 * Creates an instance of RemoteRelease from a Release domain object fields
41 * @param name The Release name
42 * @param shippingDate The Release shipping date
43 */
44 public RemoteRelease(String name, Date shippingDate){
45 this.name = name;
46 this.shippingDate = shippingDate;
47 }
48
49
50
51
52 /** @return This release unique name */
53 public String getName(){
54 return name;
55 }
56 /** @return This release shipping date */
57 public Date getShippingDate(){
58 return shippingDate;
59 }
60 }