This project has retired. For details please refer to its Attic page.
MailingList xref
View Javadoc
1   package org.apache.archiva.metadata.model;
2   
3   import javax.xml.bind.annotation.XmlRootElement;
4   import java.io.Serializable;
5   import java.util.List;
6   
7   /*
8    * Licensed to the Apache Software Foundation (ASF) under one
9    * or more contributor license agreements.  See the NOTICE file
10   * distributed with this work for additional information
11   * regarding copyright ownership.  The ASF licenses this file
12   * to you under the Apache License, Version 2.0 (the
13   * "License"); you may not use this file except in compliance
14   * with the License.  You may obtain a copy of the License at
15   *
16   *   http://www.apache.org/licenses/LICENSE-2.0
17   *
18   * Unless required by applicable law or agreed to in writing,
19   * software distributed under the License is distributed on an
20   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21   * KIND, either express or implied.  See the License for the
22   * specific language governing permissions and limitations
23   * under the License.
24   */
25  
26  /**
27   * Information about the available mailing lists for communicating with the project.
28   *
29   * TODO considering moving this to a facet - avoid referring to it externally
30   */
31  @XmlRootElement(name = "mailingList")
32  public class MailingList
33      implements Serializable
34  {
35      /**
36       * The primary archive URL for this mailing list.
37       */
38      private String mainArchiveUrl;
39  
40      /**
41       * A list of other URLs to archives of the mailing list.
42       */
43      private List<String> otherArchives;
44  
45      /**
46       * The name of the mailing list, eg. <i>Archiva Developers List</i>.
47       */
48      private String name;
49  
50      /**
51       * The email address to post a new message to the mailing list, if applicable.
52       */
53      private String postAddress;
54  
55      /**
56       * The email address to send a message to to subscribe to the mailing list, if applicable.
57       */
58      private String subscribeAddress;
59  
60      /**
61       * The email address to send a message to to unsubscribe from the mailing list, if applicable.
62       */
63      private String unsubscribeAddress;
64  
65      public void setMainArchiveUrl( String mainArchiveUrl )
66      {
67          this.mainArchiveUrl = mainArchiveUrl;
68      }
69  
70      public String getMainArchiveUrl()
71      {
72          return mainArchiveUrl;
73      }
74  
75      public void setOtherArchives( List<String> otherArchives )
76      {
77          this.otherArchives = otherArchives;
78      }
79  
80      public List<String> getOtherArchives()
81      {
82          return otherArchives;
83      }
84  
85      public void setName( String name )
86      {
87          this.name = name;
88      }
89  
90      public void setPostAddress( String postAddress )
91      {
92          this.postAddress = postAddress;
93      }
94  
95      public void setSubscribeAddress( String subscribeAddress )
96      {
97          this.subscribeAddress = subscribeAddress;
98      }
99  
100     public void setUnsubscribeAddress( String unsubscribeAddress )
101     {
102         this.unsubscribeAddress = unsubscribeAddress;
103     }
104 
105     public String getSubscribeAddress()
106     {
107         return subscribeAddress;
108     }
109 
110     public String getUnsubscribeAddress()
111     {
112         return unsubscribeAddress;
113     }
114 
115     public String getPostAddress()
116     {
117         return postAddress;
118     }
119 
120     public String getName()
121     {
122         return name;
123     }
124 
125     @Override
126     public String toString()
127     {
128         return "MailingList{" +
129             "mainArchiveUrl='" + mainArchiveUrl + '\'' +
130             ", otherArchives=" + otherArchives +
131             ", name='" + name + '\'' +
132             ", postAddress='" + postAddress + '\'' +
133             ", subscribeAddress='" + subscribeAddress + '\'' +
134             ", unsubscribeAddress='" + unsubscribeAddress + '\'' +
135             '}';
136     }
137 }