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
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 @XmlRootElement(name = "mailingList")
32 public class MailingList
33 implements Serializable
34 {
35
36
37
38 private String mainArchiveUrl;
39
40
41
42
43 private List<String> otherArchives;
44
45
46
47
48 private String name;
49
50
51
52
53 private String postAddress;
54
55
56
57
58 private String subscribeAddress;
59
60
61
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 }