1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.wiki.user; |
21 |
|
|
22 |
|
import java.util.Date; |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@since |
27 |
|
@version |
28 |
|
|
|
|
| 39.6% |
Uncovered Elements: 32 (53) |
Complexity: 24 |
Complexity Density: 0.83 |
|
29 |
|
public class MemberCandidacy |
30 |
|
{ |
31 |
|
|
32 |
|
|
33 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
34 |
|
public enum CandidateType |
35 |
|
{ |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
INVITATION, |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
REQUEST |
44 |
|
} |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
49 |
|
public enum Status |
50 |
|
{ |
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
PENDING, |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
ACCEPTED, |
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
REJECTED |
63 |
|
} |
64 |
|
|
65 |
|
private int id; |
66 |
|
|
67 |
|
private String wikiId; |
68 |
|
|
69 |
|
private String userId; |
70 |
|
|
71 |
|
private String userComment; |
72 |
|
|
73 |
|
private String adminId; |
74 |
|
|
75 |
|
private String adminComment; |
76 |
|
|
77 |
|
private String adminPrivateComment; |
78 |
|
|
79 |
|
private CandidateType type; |
80 |
|
|
81 |
|
private Status status; |
82 |
|
|
83 |
|
private Date dateOfCreation; |
84 |
|
|
85 |
|
private Date dateOfClosure; |
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
90 |
3 |
public MemberCandidacy()... |
91 |
|
{ |
92 |
3 |
this.status = Status.PENDING; |
93 |
3 |
this.dateOfCreation = new Date(); |
94 |
|
} |
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
@param |
100 |
|
@param |
101 |
|
@param |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
103 |
22 |
public MemberCandidacy(String wikiId, String userId, CandidateType type)... |
104 |
|
{ |
105 |
22 |
this.wikiId = wikiId; |
106 |
22 |
this.userId = userId; |
107 |
22 |
this.type = type; |
108 |
22 |
this.status = Status.PENDING; |
109 |
22 |
this.dateOfCreation = new Date(); |
110 |
|
} |
111 |
|
|
112 |
|
|
113 |
|
@param |
114 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
3 |
public void setId(int id)... |
116 |
|
{ |
117 |
3 |
this.id = id; |
118 |
|
} |
119 |
|
|
120 |
|
|
121 |
|
@return |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
3 |
public int getId()... |
124 |
|
{ |
125 |
3 |
return id; |
126 |
|
} |
127 |
|
|
128 |
|
|
129 |
|
@return |
130 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
19 |
public String getWikiId()... |
132 |
|
{ |
133 |
19 |
return wikiId; |
134 |
|
} |
135 |
|
|
136 |
|
|
137 |
|
@param |
138 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
139 |
0 |
public void setWikiId(String wikiId)... |
140 |
|
{ |
141 |
0 |
this.wikiId = wikiId; |
142 |
|
} |
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
@return |
147 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
148 |
22 |
public String getUserId()... |
149 |
|
{ |
150 |
22 |
return userId; |
151 |
|
} |
152 |
|
|
153 |
|
|
154 |
|
@param |
155 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
156 |
0 |
public void setUserId(String userId)... |
157 |
|
{ |
158 |
0 |
this.userId = userId; |
159 |
|
} |
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
@return |
164 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
165 |
0 |
public String getAdminId()... |
166 |
|
{ |
167 |
0 |
return adminId; |
168 |
|
} |
169 |
|
|
170 |
|
|
171 |
|
@param |
172 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
173 |
0 |
public void setAdminId(String adminId)... |
174 |
|
{ |
175 |
0 |
this.adminId = adminId; |
176 |
|
} |
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
@return |
181 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
182 |
0 |
public String getUserComment()... |
183 |
|
{ |
184 |
0 |
return userComment; |
185 |
|
} |
186 |
|
|
187 |
|
|
188 |
|
@param |
189 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
190 |
0 |
public void setUserComment(String userComment)... |
191 |
|
{ |
192 |
0 |
this.userComment = userComment; |
193 |
|
} |
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
@return |
198 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
199 |
0 |
public String getAdminComment()... |
200 |
|
{ |
201 |
0 |
return adminComment; |
202 |
|
} |
203 |
|
|
204 |
|
|
205 |
|
@param |
206 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
207 |
0 |
public void setAdminComment(String adminComment)... |
208 |
|
{ |
209 |
0 |
this.adminComment = adminComment; |
210 |
|
} |
211 |
|
|
212 |
|
|
213 |
|
|
214 |
|
@return |
215 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
216 |
4 |
public String getAdminPrivateComment()... |
217 |
|
{ |
218 |
4 |
return adminPrivateComment; |
219 |
|
} |
220 |
|
|
221 |
|
|
222 |
|
@param |
223 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
224 |
7 |
public void setAdminPrivateComment(String adminPrivateComment)... |
225 |
|
{ |
226 |
7 |
this.adminPrivateComment = adminPrivateComment; |
227 |
|
} |
228 |
|
|
229 |
|
|
230 |
|
@param |
231 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
232 |
0 |
public void setType(CandidateType type)... |
233 |
|
{ |
234 |
0 |
this.type = type; |
235 |
|
} |
236 |
|
|
237 |
|
|
238 |
|
@return |
239 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
240 |
0 |
public CandidateType getType()... |
241 |
|
{ |
242 |
0 |
return type; |
243 |
|
} |
244 |
|
|
245 |
|
|
246 |
|
@return |
247 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
248 |
0 |
public Status getStatus()... |
249 |
|
{ |
250 |
0 |
return status; |
251 |
|
} |
252 |
|
|
253 |
|
|
254 |
|
@param |
255 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
256 |
0 |
public void setStatus(Status status)... |
257 |
|
{ |
258 |
0 |
this.status = status; |
259 |
|
} |
260 |
|
|
261 |
|
|
262 |
|
@return |
263 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
264 |
0 |
public Date getDateOfCreation()... |
265 |
|
{ |
266 |
0 |
return dateOfCreation; |
267 |
|
} |
268 |
|
|
269 |
|
|
270 |
|
@param |
271 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
272 |
0 |
public void setDateOfCreation(Date dateOfCreation)... |
273 |
|
{ |
274 |
0 |
this.dateOfCreation = dateOfCreation; |
275 |
|
} |
276 |
|
|
277 |
|
|
278 |
|
@return |
279 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
280 |
0 |
public Date getDateOfClosure()... |
281 |
|
{ |
282 |
0 |
return dateOfClosure; |
283 |
|
} |
284 |
|
|
285 |
|
|
286 |
|
@param |
287 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
288 |
0 |
public void setDateOfClosure(Date dateOfClosure)... |
289 |
|
{ |
290 |
0 |
this.dateOfClosure = dateOfClosure; |
291 |
|
} |
292 |
|
} |