1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.filter.confluence.input; |
21 |
|
|
22 |
|
import java.util.Locale; |
23 |
|
|
24 |
|
import org.xwiki.filter.DefaultFilterStreamProperties; |
25 |
|
import org.xwiki.filter.input.InputSource; |
26 |
|
import org.xwiki.properties.annotation.PropertyDescription; |
27 |
|
import org.xwiki.properties.annotation.PropertyMandatory; |
28 |
|
import org.xwiki.properties.annotation.PropertyName; |
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
@version |
34 |
|
@since |
35 |
|
|
|
|
| 62.5% |
Uncovered Elements: 6 (16) |
Complexity: 8 |
Complexity Density: 1 |
|
36 |
|
public class ConfluenceInputProperties extends DefaultFilterStreamProperties |
37 |
|
{ |
38 |
|
|
39 |
|
@see |
40 |
|
|
41 |
|
private InputSource source; |
42 |
|
|
43 |
|
|
44 |
|
@see |
45 |
|
|
46 |
|
private Locale defaultLocale; |
47 |
|
|
48 |
|
|
49 |
|
@see |
50 |
|
|
51 |
|
private boolean convertToXWiki = true; |
52 |
|
|
53 |
|
|
54 |
|
@see |
55 |
|
|
56 |
|
private String spacePageName = "WebHome"; |
57 |
|
|
58 |
|
|
59 |
|
@return |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
9 |
@PropertyName("The source")... |
62 |
|
@PropertyDescription("The source to load the wiki from") |
63 |
|
@PropertyMandatory |
64 |
|
public InputSource getSource() |
65 |
|
{ |
66 |
9 |
return this.source; |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
@param |
71 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
3 |
public void setSource(InputSource source)... |
73 |
|
{ |
74 |
3 |
this.source = source; |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
@return |
79 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
27 |
@PropertyName("Default locale")... |
81 |
|
@PropertyDescription("The locale of the documents") |
82 |
|
public Locale getDefaultLocale() |
83 |
|
{ |
84 |
27 |
return defaultLocale; |
85 |
|
} |
86 |
|
|
87 |
|
|
88 |
|
@param |
89 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
0 |
public void setDefaultLocale(Locale defaultLocale)... |
91 |
|
{ |
92 |
0 |
this.defaultLocale = defaultLocale; |
93 |
|
} |
94 |
|
|
95 |
|
|
96 |
|
@return |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
30 |
@PropertyName("XWiki conversion")... |
99 |
|
@PropertyDescription("Convert various Confluence standards to XWiki standard (the name of the admin group, etc.)") |
100 |
|
public boolean isConvertToXWiki() |
101 |
|
{ |
102 |
30 |
return this.convertToXWiki; |
103 |
|
} |
104 |
|
|
105 |
|
|
106 |
|
@param |
107 |
|
|
108 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
109 |
0 |
public void setConvertToXWiki(boolean convertToXWiki)... |
110 |
|
{ |
111 |
0 |
this.convertToXWiki = convertToXWiki; |
112 |
|
} |
113 |
|
|
114 |
|
|
115 |
|
@return |
116 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
117 |
8 |
@PropertyName("Space home page")... |
118 |
|
@PropertyDescription("The name to use for space home page") |
119 |
|
public String getSpacePageName() |
120 |
|
{ |
121 |
8 |
return this.spacePageName; |
122 |
|
} |
123 |
|
|
124 |
|
|
125 |
|
@param |
126 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
127 |
0 |
public void setSpacePageName(String spacePageName)... |
128 |
|
{ |
129 |
0 |
this.spacePageName = spacePageName; |
130 |
|
} |
131 |
|
} |