1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.plugin.diff; |
21 |
|
|
22 |
|
import java.util.List; |
23 |
|
|
24 |
|
import com.xpn.xwiki.XWikiContext; |
25 |
|
import com.xpn.xwiki.XWikiException; |
26 |
|
import com.xpn.xwiki.api.Api; |
27 |
|
|
28 |
|
|
29 |
|
@version |
30 |
|
@deprecated |
31 |
|
|
32 |
|
@Deprecated |
|
|
| 33.3% |
Uncovered Elements: 14 (21) |
Complexity: 9 |
Complexity Density: 0.82 |
|
33 |
|
public class DiffPluginApi extends Api |
34 |
|
{ |
35 |
|
private DiffPlugin plugin; |
36 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
37 |
2 |
public DiffPluginApi(DiffPlugin plugin, XWikiContext context)... |
38 |
|
{ |
39 |
2 |
super(context); |
40 |
2 |
setPlugin(plugin); |
41 |
|
} |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
43 |
0 |
public DiffPlugin getPlugin()... |
44 |
|
{ |
45 |
0 |
if (hasProgrammingRights()) { |
46 |
0 |
return this.plugin; |
47 |
|
} |
48 |
0 |
return null; |
49 |
|
} |
50 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
2 |
public void setPlugin(DiffPlugin plugin)... |
52 |
|
{ |
53 |
2 |
this.plugin = plugin; |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
@param |
60 |
|
@param |
61 |
|
@return |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0 |
public List getDifferencesAsList(String text1, String text2) throws XWikiException... |
64 |
|
{ |
65 |
0 |
return this.plugin.getDifferencesAsList(text1, text2); |
66 |
|
} |
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
@param |
72 |
|
@param |
73 |
|
@return |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0 |
public String getDifferencesAsHTML(String text1, String text2) throws XWikiException... |
76 |
|
{ |
77 |
0 |
return this.plugin.getDifferencesAsHTML(text1, text2); |
78 |
|
} |
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
@param |
84 |
|
@param |
85 |
|
@param |
86 |
|
@return |
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
2 |
public String getDifferencesAsHTML(String text1, String text2, boolean allDoc) throws XWikiException... |
89 |
|
{ |
90 |
2 |
return this.plugin.getDifferencesAsHTML(text1, text2, allDoc); |
91 |
|
} |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
@param |
97 |
|
@param |
98 |
|
@return |
99 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
0 |
public List getWordDifferencesAsList(String text1, String text2) throws XWikiException... |
101 |
|
{ |
102 |
0 |
return this.plugin.getWordDifferencesAsList(text1, text2); |
103 |
|
} |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
@param |
109 |
|
@param |
110 |
|
@return |
111 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
112 |
0 |
public String getWordDifferencesAsHTML(String text1, String text2) throws XWikiException... |
113 |
|
{ |
114 |
0 |
return this.plugin.getWordDifferencesAsHTML(text1, text2); |
115 |
|
} |
116 |
|
|
117 |
|
} |