View Javadoc

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   * This is a thin bean for providing a remote view of <code>MailingList</code>
20   * managed for the software project. This view only provides getter methods.
21   * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
22   * @version $Revision: 1.1 $
23   *
24   * @see org.figure8.join.businessobjects.reporting.MailingList
25   */
26  public class RemoteMailingList implements Serializable{
27  
28     // Attributes ---------------------------------------------------------------
29  
30     /** The name of this mailing list */
31     private String name;
32     /** A string representing template for generating messages title */
33     private String msgTitleTemplate;
34     /** A string representing template for generating messages content */
35     private String msgContentTemplate;
36  
37  
38     // Constructors -------------------------------------------------------------
39  
40     /**
41      * Creates a new instance of RemoteMailingList.
42      * @param name
43      * @param msgTitleTemplate
44      * @param msgContentTemplate
45      */
46     public RemoteMailingList(String name, String msgTitleTemplate, String msgContentTemplate){
47        this.name = name;
48        this.msgTitleTemplate = msgTitleTemplate;
49        this.msgContentTemplate = msgContentTemplate;
50     }
51  
52  
53     // Public -------------------------------------------------------------------
54  
55     /** @return The name identifying this mailing list */
56     public String getName(){
57        return name;
58     }
59     /** @return A string representing template for generating messages title */
60     public String getMsgTitleTemplate(){
61        return msgTitleTemplate;
62     }
63     /** @return A string representing template for generating messages content */
64     public String getMsgContentTemplate(){
65        return msgContentTemplate;
66     }
67  }
68