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, Comparable<MailingList>
34 {
35
36 private Integer index;
37
38
39
40
41 private String mainArchiveUrl;
42
43
44
45
46 private List<String> otherArchives;
47
48
49
50
51 private String name;
52
53
54
55
56 private String postAddress;
57
58
59
60
61 private String subscribeAddress;
62
63
64
65
66 private String unsubscribeAddress;
67
68 public void setMainArchiveUrl( String mainArchiveUrl )
69 {
70 this.mainArchiveUrl = mainArchiveUrl;
71 }
72
73 public String getMainArchiveUrl()
74 {
75 return mainArchiveUrl;
76 }
77
78 public void setOtherArchives( List<String> otherArchives )
79 {
80 this.otherArchives = otherArchives;
81 }
82
83 public List<String> getOtherArchives()
84 {
85 return otherArchives;
86 }
87
88 public void setName( String name )
89 {
90 this.name = name;
91 }
92
93 public void setPostAddress( String postAddress )
94 {
95 this.postAddress = postAddress;
96 }
97
98 public void setSubscribeAddress( String subscribeAddress )
99 {
100 this.subscribeAddress = subscribeAddress;
101 }
102
103 public void setUnsubscribeAddress( String unsubscribeAddress )
104 {
105 this.unsubscribeAddress = unsubscribeAddress;
106 }
107
108 public String getSubscribeAddress()
109 {
110 return subscribeAddress;
111 }
112
113 public String getUnsubscribeAddress()
114 {
115 return unsubscribeAddress;
116 }
117
118 public String getPostAddress()
119 {
120 return postAddress;
121 }
122
123 public String getName()
124 {
125 return name;
126 }
127
128 @Override
129 public String toString()
130 {
131 return "MailingList{" +
132 "mainArchiveUrl='" + mainArchiveUrl + '\'' +
133 ", otherArchives=" + otherArchives +
134 ", name='" + name + '\'' +
135 ", postAddress='" + postAddress + '\'' +
136 ", subscribeAddress='" + subscribeAddress + '\'' +
137 ", unsubscribeAddress='" + unsubscribeAddress + '\'' +
138 '}';
139 }
140
141 public Integer getIndex() {
142 return index;
143 }
144
145 public void setIndex(Integer index) {
146 this.index = index;
147 }
148
149 @Override
150 public int compareTo(MailingList o) {
151 return this.index.compareTo(o.getIndex());
152 }
153 }