1 /**
2 * Copyright 2005-2007 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 RemoteResourceVersion implements Serializable{
24
25
26
27 /** This resource version name (should be unique) */
28 private String name;
29 /** This resource version description */
30 private String description;
31 /** This resource version creation date */
32 private Date creationDate;
33 /** The key of corresponding resource type */
34 private String resourceTypeKey;
35
36
37
38
39 /**
40 * Creates a new instance of RemoteResourceVersion
41 * @param name The resource version name
42 * @param description The resource version description
43 * @paramt resourceTypeKey The resource type this version applies to
44 */
45 public RemoteResourceVersion(String name, String description, String resourceTypeKey){
46 this.name = name;
47 this.description = description;
48 this.resourceTypeKey = resourceTypeKey;
49 }
50
51
52
53
54 /** @return This resource version name */
55 public String getName(){
56 return name;
57 }
58 /** @param name This resource version name */
59 public void setName(String name){
60 this.name = name;
61 }
62
63 /** @return This resource version description */
64 public String getDescription(){
65 return description;
66 }
67 /** @param description This resource version description */
68 public void setDescription(String description){
69 this.description = description;
70 }
71
72 /** @return This resource version type unique key */
73 public String getResourceTypeKey(){
74 return resourceTypeKey;
75 }
76 }