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.v1; |
35 |
|
|
36 |
|
import info.magnolia.jcr.util.NodeTypes; |
37 |
|
import info.magnolia.rest.reference.ReferenceDefinition; |
38 |
|
|
39 |
|
import java.util.ArrayList; |
40 |
|
import java.util.Collections; |
41 |
|
import java.util.List; |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
46 |
|
public class WorkspaceParameters { |
47 |
|
|
48 |
|
private String workspace; |
49 |
|
private String rootPath; |
50 |
|
private int depth = 0; |
51 |
|
private boolean includeSystemProperties = true; |
52 |
|
private List<String> nodeTypes = Collections.singletonList(NodeTypes.Content.NAME); |
53 |
|
private List<String> childNodeTypes = Collections.singletonList(NodeTypes.ContentNode.NAME); |
54 |
|
private long limit = 10; |
55 |
|
private boolean bypassWorkspaceAcls = false; |
56 |
|
private List<ReferenceDefinition> references = new ArrayList<>(); |
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
@return@link |
62 |
|
|
63 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
64 |
|
public String getWorkspace() {... |
65 |
|
return workspace; |
66 |
|
} |
67 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
68 |
|
public void setWorkspace(String workspace) {... |
69 |
|
this.workspace = workspace; |
70 |
|
} |
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
75 |
|
public String getRootPath() {... |
76 |
|
return rootPath; |
77 |
|
} |
78 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
79 |
|
public void setRootPath(String rootPath) {... |
80 |
|
this.rootPath = rootPath; |
81 |
|
} |
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
@return |
87 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
88 |
|
public int getDepth() {... |
89 |
|
return depth; |
90 |
|
} |
91 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
92 |
|
public void setDepth(int depth) {... |
93 |
|
this.depth = depth; |
94 |
|
} |
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
@return |
100 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
101 |
|
public boolean isIncludeSystemProperties() {... |
102 |
|
return includeSystemProperties; |
103 |
|
} |
104 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
105 |
|
public void setIncludeSystemProperties(boolean includeSystemProperties) {... |
106 |
|
this.includeSystemProperties = includeSystemProperties; |
107 |
|
} |
108 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
109 |
|
public List<String> getNodeTypes() {... |
110 |
|
return nodeTypes; |
111 |
|
} |
112 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
113 |
|
public void setNodeTypes(List<String> nodeTypes) {... |
114 |
|
this.nodeTypes = nodeTypes; |
115 |
|
} |
116 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
117 |
|
public List<String> getChildNodeTypes() {... |
118 |
|
return childNodeTypes; |
119 |
|
} |
120 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
121 |
|
public void setChildNodeTypes(List<String> childNodeTypes) {... |
122 |
|
this.childNodeTypes = childNodeTypes; |
123 |
|
} |
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
@return |
129 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
130 |
|
public long getLimit() {... |
131 |
|
return limit; |
132 |
|
} |
133 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
134 |
|
public void setLimit(long limit) {... |
135 |
|
this.limit = limit; |
136 |
|
} |
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
146 |
|
public boolean isBypassWorkspaceAcls() {... |
147 |
|
return bypassWorkspaceAcls; |
148 |
|
} |
149 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
150 |
|
public void setBypassWorkspaceAcls(boolean bypassWorkspaceAcls) {... |
151 |
|
this.bypassWorkspaceAcls = bypassWorkspaceAcls; |
152 |
|
} |
153 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
154 |
|
public List<ReferenceDefinition> getReferences() {... |
155 |
|
return references; |
156 |
|
} |
157 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
158 |
|
public void setReferences(List<ReferenceDefinition> references) {... |
159 |
|
this.references = references; |
160 |
|
} |
161 |
|
} |