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.io.Serializable;
18 /**
19 * RemoteStatus is a thin bean providing a remote view of a <code>Status</code>
20 * of the integration process managed by Join. This view only provides
21 * gettter 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.commons.Status
26 */
27 public class RemoteStatus implements Serializable{
28
29
30
31 /** This status unique key identifier */
32 private String key;
33 /** This status label for display */
34 private String label;
35 /** The type of process this status applies to */
36 private String type;
37
38
39
40
41 /**
42 * Creates a new instance of RemoteStatus
43 * @param key The unique key idenitifying status
44 * @param label The display label of status
45 * @param type The process type to whom status applies
46 */
47 public RemoteStatus(String key, String label, String type){
48 this.key = key;
49 this.label = label;
50 this.type = type;
51 }
52
53
54
55
56 /** @return This status unique key identifier */
57 public String getKey(){
58 return key;
59 }
60 /** @return This status label for display */
61 public String getLabel(){
62 return label;
63 }
64 /** @return The type of process this status applies to */
65 public String getType(){
66 return type;
67 }
68 }