1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
package info.magnolia.rest.delivery.jcr.v2; |
35 |
|
|
36 |
|
import info.magnolia.jcr.util.NodeTypes.Content; |
37 |
|
import info.magnolia.jcr.util.NodeTypes.ContentNode; |
38 |
|
import info.magnolia.rest.reference.ReferenceDefinition; |
39 |
|
import info.magnolia.rest.registry.ConfiguredEndpointDefinition; |
40 |
|
|
41 |
|
import java.util.ArrayList; |
42 |
|
import java.util.Collections; |
43 |
|
import java.util.List; |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
|
public class ConfiguredJcrDeliveryEndpointDefinition extends ConfiguredEndpointDefinition implements JcrDeliveryEndpointDefinition { |
49 |
|
|
50 |
|
private String workspace; |
51 |
|
private String rootPath; |
52 |
|
private List<String> nodeTypes = Collections.singletonList(Content.NAME); |
53 |
|
private List<String> childNodeTypes = Collections.singletonList(ContentNode.NAME); |
54 |
|
private int depth = 0; |
55 |
|
private long limit = 10; |
56 |
|
private boolean includeSystemProperties = true; |
57 |
|
private boolean bypassWorkspaceAcls = false; |
58 |
|
private List<ReferenceDefinition> references = new ArrayList<>(); |
59 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
60 |
3 |
public ConfiguredJcrDeliveryEndpointDefinition() {... |
61 |
3 |
setImplementationClass(JcrDeliveryEndpoint.class); |
62 |
|
} |
63 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
64 |
|
@Override... |
65 |
|
public String getWorkspace() { |
66 |
|
return workspace; |
67 |
|
} |
68 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
69 |
|
public void setWorkspace(String workspace) {... |
70 |
|
this.workspace = workspace; |
71 |
|
} |
72 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
73 |
|
@Override... |
74 |
|
public String getRootPath() { |
75 |
|
return rootPath; |
76 |
|
} |
77 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
78 |
|
public void setRootPath(String rootPath) {... |
79 |
|
this.rootPath = rootPath; |
80 |
|
} |
81 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
82 |
|
@Override... |
83 |
|
public List<String> getNodeTypes() { |
84 |
|
return nodeTypes; |
85 |
|
} |
86 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
87 |
|
public void setNodeTypes(List<String> nodeTypes) {... |
88 |
|
this.nodeTypes = nodeTypes; |
89 |
|
} |
90 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
91 |
|
@Override... |
92 |
|
public List<String> getChildNodeTypes() { |
93 |
|
return childNodeTypes; |
94 |
|
} |
95 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
96 |
|
public void setChildNodeTypes(List<String> childNodeTypes) {... |
97 |
|
this.childNodeTypes = childNodeTypes; |
98 |
|
} |
99 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
100 |
|
@Override... |
101 |
|
public int getDepth() { |
102 |
|
return depth; |
103 |
|
} |
104 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
105 |
|
public void setDepth(int depth) {... |
106 |
|
this.depth = depth; |
107 |
|
} |
108 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
109 |
|
@Override... |
110 |
|
public long getLimit() { |
111 |
|
return limit; |
112 |
|
} |
113 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
114 |
|
public void setLimit(long limit) {... |
115 |
|
this.limit = limit; |
116 |
|
} |
117 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
118 |
|
@Override... |
119 |
|
public boolean isIncludeSystemProperties() { |
120 |
|
return includeSystemProperties; |
121 |
|
} |
122 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
123 |
|
public void setIncludeSystemProperties(boolean includeSystemProperties) {... |
124 |
|
this.includeSystemProperties = includeSystemProperties; |
125 |
|
} |
126 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
127 |
|
@Override... |
128 |
|
public boolean isBypassWorkspaceAcls() { |
129 |
|
return bypassWorkspaceAcls; |
130 |
|
} |
131 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
132 |
|
public void setBypassWorkspaceAcls(boolean bypassWorkspaceAcls) {... |
133 |
|
this.bypassWorkspaceAcls = bypassWorkspaceAcls; |
134 |
|
} |
135 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
136 |
|
@Override... |
137 |
|
public List<ReferenceDefinition> getReferences() { |
138 |
|
return references; |
139 |
|
} |
140 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
141 |
|
public void setReferences(List<ReferenceDefinition> references) {... |
142 |
|
this.references = references; |
143 |
|
} |
144 |
|
|
145 |
|
} |