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