1package org.apache.archiva.metadata.model;
23import javax.xml.bind.annotation.XmlRootElement;
4import java.io.Serializable;
5import java.util.List;
67/*8 * Licensed to the Apache Software Foundation (ASF) under one9 * or more contributor license agreements. See the NOTICE file10 * distributed with this work for additional information11 * regarding copyright ownership. The ASF licenses this file12 * to you under the Apache License, Version 2.0 (the13 * "License"); you may not use this file except in compliance14 * with the License. You may obtain a copy of the License at15 *16 * http://www.apache.org/licenses/LICENSE-2.017 *18 * Unless required by applicable law or agreed to in writing,19 * software distributed under the License is distributed on an20 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY21 * KIND, either express or implied. See the License for the22 * specific language governing permissions and limitations23 * under the License.24 */2526/**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 externally30 */31 @XmlRootElement(name = "mailingList")
32publicclassMailingList33implements Serializable
34 {
35/**36 * The primary archive URL for this mailing list.37 */38private String mainArchiveUrl;
3940/**41 * A list of other URLs to archives of the mailing list.42 */43private List<String> otherArchives;
4445/**46 * The name of the mailing list, eg. <i>Archiva Developers List</i>.47 */48private String name;
4950/**51 * The email address to post a new message to the mailing list, if applicable.52 */53private String postAddress;
5455/**56 * The email address to send a message to to subscribe to the mailing list, if applicable.57 */58private String subscribeAddress;
5960/**61 * The email address to send a message to to unsubscribe from the mailing list, if applicable.62 */63private String unsubscribeAddress;
6465publicvoid setMainArchiveUrl( String mainArchiveUrl )
66 {
67this.mainArchiveUrl = mainArchiveUrl;
68 }
6970public String getMainArchiveUrl()
71 {
72return mainArchiveUrl;
73 }
7475publicvoid setOtherArchives( List<String> otherArchives )
76 {
77this.otherArchives = otherArchives;
78 }
7980public List<String> getOtherArchives()
81 {
82return otherArchives;
83 }
8485publicvoid setName( String name )
86 {
87this.name = name;
88 }
8990publicvoid setPostAddress( String postAddress )
91 {
92this.postAddress = postAddress;
93 }
9495publicvoid setSubscribeAddress( String subscribeAddress )
96 {
97this.subscribeAddress = subscribeAddress;
98 }
99100publicvoid setUnsubscribeAddress( String unsubscribeAddress )
101 {
102this.unsubscribeAddress = unsubscribeAddress;
103 }
104105public String getSubscribeAddress()
106 {
107return subscribeAddress;
108 }
109110public String getUnsubscribeAddress()
111 {
112return unsubscribeAddress;
113 }
114115public String getPostAddress()
116 {
117return postAddress;
118 }
119120public String getName()
121 {
122return name;
123 }
124125 @Override
126public String toString()
127 {
128return"MailingList{" +
129"mainArchiveUrl='" + mainArchiveUrl + '\'' +
130", otherArchives=" + otherArchives +
131", name='" + name + '\'' +
132", postAddress='" + postAddress + '\'' +
133", subscribeAddress='" + subscribeAddress + '\'' +
134", unsubscribeAddress='" + unsubscribeAddress + '\'' +
135 '}';
136 }
137 }