1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.internal.configuration; |
21 |
|
|
22 |
|
import javax.inject.Named; |
23 |
|
import javax.inject.Singleton; |
24 |
|
|
25 |
|
import org.xwiki.component.annotation.Component; |
26 |
|
import org.xwiki.configuration.internal.AbstractDocumentConfigurationSource; |
27 |
|
import org.xwiki.model.reference.DocumentReference; |
28 |
|
import org.xwiki.model.reference.LocalDocumentReference; |
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
@version |
36 |
|
@since |
37 |
|
|
38 |
|
@Component |
39 |
|
@Named("rendering") |
40 |
|
@Singleton |
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 3 |
Complexity Density: 1 |
|
41 |
|
public class RenderingConfigClassDocumentConfigurationSource extends AbstractDocumentConfigurationSource |
42 |
|
{ |
43 |
|
private static final String RENDERING_SPACE = "Rendering"; |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
private static final LocalDocumentReference CLASS_REFERENCE = |
49 |
|
new LocalDocumentReference(RENDERING_SPACE, "RenderingConfigClass"); |
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
private static final LocalDocumentReference DOC_REFERENCE = |
55 |
|
new LocalDocumentReference(RENDERING_SPACE, "RenderingConfig"); |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
540 |
@Override... |
58 |
|
protected String getCacheId() |
59 |
|
{ |
60 |
540 |
return "configuration.document.rendering"; |
61 |
|
} |
62 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
10 |
@Override... |
64 |
|
protected DocumentReference getDocumentReference() |
65 |
|
{ |
66 |
10 |
return new DocumentReference(DOC_REFERENCE, getCurrentWikiReference()); |
67 |
|
} |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
47 |
@Override... |
70 |
|
protected LocalDocumentReference getClassReference() |
71 |
|
{ |
72 |
47 |
return CLASS_REFERENCE; |
73 |
|
} |
74 |
|
} |