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
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
62
63
64 public String getWorkspace() {
65 return workspace;
66 }
67
68 public void setWorkspace(String workspace) {
69 this.workspace = workspace;
70 }
71
72
73
74
75 public String getRootPath() {
76 return rootPath;
77 }
78
79 public void setRootPath(String rootPath) {
80 this.rootPath = rootPath;
81 }
82
83
84
85
86
87
88 public int getDepth() {
89 return depth;
90 }
91
92 public void setDepth(int depth) {
93 this.depth = depth;
94 }
95
96
97
98
99
100
101 public boolean isIncludeSystemProperties() {
102 return includeSystemProperties;
103 }
104
105 public void setIncludeSystemProperties(boolean includeSystemProperties) {
106 this.includeSystemProperties = includeSystemProperties;
107 }
108
109 public List<String> getNodeTypes() {
110 return nodeTypes;
111 }
112
113 public void setNodeTypes(List<String> nodeTypes) {
114 this.nodeTypes = nodeTypes;
115 }
116
117 public List<String> getChildNodeTypes() {
118 return childNodeTypes;
119 }
120
121 public void setChildNodeTypes(List<String> childNodeTypes) {
122 this.childNodeTypes = childNodeTypes;
123 }
124
125
126
127
128
129
130 public long getLimit() {
131 return limit;
132 }
133
134 public void setLimit(long limit) {
135 this.limit = limit;
136 }
137
138
139
140
141
142
143
144
145
146 public boolean isBypassWorkspaceAcls() {
147 return bypassWorkspaceAcls;
148 }
149
150 public void setBypassWorkspaceAcls(boolean bypassWorkspaceAcls) {
151 this.bypassWorkspaceAcls = bypassWorkspaceAcls;
152 }
153
154 public List<ReferenceDefinition> getReferences() {
155 return references;
156 }
157
158 public void setReferences(List<ReferenceDefinition> references) {
159 this.references = references;
160 }
161 }