1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.internal.filter.output; |
21 |
|
|
22 |
|
import org.xwiki.filter.instance.output.InstanceOutputProperties; |
23 |
|
import org.xwiki.model.reference.DocumentReference; |
24 |
|
import org.xwiki.properties.annotation.PropertyDescription; |
25 |
|
import org.xwiki.properties.annotation.PropertyName; |
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 52.2% |
Uncovered Elements: 11 (23) |
Complexity: 11 |
Complexity Density: 0.92 |
|
31 |
|
public class UserInstanceOutputProperties extends InstanceOutputProperties |
32 |
|
{ |
33 |
|
|
34 |
|
@see |
35 |
|
|
36 |
|
private String saveComment = "Import"; |
37 |
|
|
38 |
|
|
39 |
|
@see |
40 |
|
|
41 |
|
private DocumentReference author; |
42 |
|
|
43 |
|
|
44 |
|
@see |
45 |
|
|
46 |
|
private boolean authorSet; |
47 |
|
|
48 |
|
|
49 |
|
@see |
50 |
|
|
51 |
|
private boolean versionPreserved; |
52 |
|
|
53 |
|
|
54 |
|
@see |
55 |
|
|
56 |
|
private String groupPrefix = ""; |
57 |
|
|
58 |
|
|
59 |
|
@see |
60 |
|
|
61 |
|
private String groupSuffix = ""; |
62 |
|
|
63 |
|
|
64 |
|
@return |
65 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
66 |
18 |
@PropertyName("Save comment")... |
67 |
|
@PropertyDescription("The comment to use when saving a user") |
68 |
|
public String getSaveComment() |
69 |
|
{ |
70 |
18 |
return this.saveComment; |
71 |
|
} |
72 |
|
|
73 |
|
|
74 |
|
@param |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0 |
public void setSaveComment(String saveComment)... |
77 |
|
{ |
78 |
0 |
this.saveComment = saveComment; |
79 |
|
} |
80 |
|
|
81 |
|
|
82 |
|
@return |
83 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
12 |
@PropertyName("Save author")... |
85 |
|
@PropertyDescription("The author to use when saving a user") |
86 |
|
public DocumentReference getAuthor() |
87 |
|
{ |
88 |
12 |
return this.author; |
89 |
|
} |
90 |
|
|
91 |
|
|
92 |
|
@param |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
94 |
0 |
public void setAuthor(DocumentReference author)... |
95 |
|
{ |
96 |
0 |
this.author = author; |
97 |
0 |
this.authorSet = true; |
98 |
|
} |
99 |
|
|
100 |
|
|
101 |
|
@return |
102 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
0 |
public boolean isAuthorSet()... |
104 |
|
{ |
105 |
0 |
return this.authorSet; |
106 |
|
} |
107 |
|
|
108 |
|
|
109 |
|
@return |
110 |
|
@since |
111 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
112 |
15 |
@PropertyName("Preserve version")... |
113 |
|
@PropertyDescription("Indicate if the versions related informations comming from the events should be kept") |
114 |
|
public boolean isVersionPreserved() |
115 |
|
{ |
116 |
15 |
return this.versionPreserved; |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
|
@param |
121 |
|
@since |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
2 |
public void setVersionPreserved(boolean versionPreserved)... |
124 |
|
{ |
125 |
2 |
this.versionPreserved = versionPreserved; |
126 |
|
} |
127 |
|
|
128 |
|
|
129 |
|
@return |
130 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
13 |
@PropertyName("Group name prefix")... |
132 |
|
@PropertyDescription("The prefix to add before each new group name") |
133 |
|
public String getGroupPrefix() |
134 |
|
{ |
135 |
13 |
return this.groupPrefix; |
136 |
|
} |
137 |
|
|
138 |
|
|
139 |
|
@param |
140 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
141 |
0 |
public void setGroupPrefix(String groupPrefix)... |
142 |
|
{ |
143 |
0 |
this.groupPrefix = groupPrefix; |
144 |
|
} |
145 |
|
|
146 |
|
|
147 |
|
@return |
148 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
149 |
13 |
@PropertyName("Group name suffix")... |
150 |
|
@PropertyDescription("The suffix to add after each new group name") |
151 |
|
public String getGroupSuffix() |
152 |
|
{ |
153 |
13 |
return this.groupSuffix; |
154 |
|
} |
155 |
|
|
156 |
|
|
157 |
|
@param |
158 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
159 |
0 |
public void setGroupSuffix(String groupSuffix)... |
160 |
|
{ |
161 |
0 |
this.groupSuffix = groupSuffix; |
162 |
|
} |
163 |
|
} |