1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki; |
21 |
|
|
22 |
|
import javax.inject.Inject; |
23 |
|
import javax.inject.Singleton; |
24 |
|
|
25 |
|
import org.xwiki.bridge.SkinAccessBridge; |
26 |
|
import org.xwiki.component.annotation.Component; |
27 |
|
import org.xwiki.context.Execution; |
28 |
|
|
29 |
|
|
30 |
|
@link |
31 |
|
|
32 |
|
@see |
33 |
|
@version |
34 |
|
@since |
35 |
|
|
36 |
|
@Component |
37 |
|
@Singleton |
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 3 |
Complexity Density: 0.43 |
|
38 |
|
public class DefaultSkinAccessBridge implements SkinAccessBridge |
39 |
|
{ |
40 |
|
|
41 |
|
@Inject |
42 |
|
private Execution execution; |
43 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
20 |
private XWikiContext getContext()... |
45 |
|
{ |
46 |
20 |
return (XWikiContext) this.execution.getContext().getProperty("xwikicontext"); |
47 |
|
} |
48 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
49 |
1 |
@Override... |
50 |
|
public String getSkinFile(String fileName) |
51 |
|
{ |
52 |
1 |
XWikiContext xcontext = getContext(); |
53 |
1 |
XWiki xwiki = xcontext.getWiki(); |
54 |
1 |
return xwiki.getSkinFile(fileName, xcontext); |
55 |
|
} |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
57 |
19 |
@Override... |
58 |
|
public String getIconURL(String iconName) |
59 |
|
{ |
60 |
19 |
XWikiContext xcontext = getContext(); |
61 |
19 |
XWiki xwiki = xcontext.getWiki(); |
62 |
19 |
return xwiki.getIconURL(iconName, xcontext); |
63 |
|
} |
64 |
|
} |