1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.dto;
17
18 import org.kuali.rice.core.api.util.ConcreteKeyValue;
19 import org.kuali.rice.kew.util.KEWConstants;
20
21 import java.io.Serializable;
22 import java.util.ArrayList;
23 import java.util.List;
24
25
26
27
28
29
30 public class DocumentSearchCriteriaDTO implements Serializable {
31
32 private static final long serialVersionUID = -220572344702126103L;
33
34 private String documentId;
35 private String docRouteStatus;
36 private String docTitle;
37 private String appDocId;
38 private String initiator;
39 private String viewer;
40 private String groupViewerName;
41 private String approver;
42 private String docRouteNodeName;
43 private String docRouteNodeLogic = KEWConstants.DOC_SEARCH_ROUTE_STATUS_QUALIFIER_EXACT;
44 private String docVersion;
45 private String docTypeFullName;
46
47
48 private String fromDateCreated;
49 private String fromDateLastModified;
50 private String fromDateApproved;
51 private String fromDateFinalized;
52 private String toDateCreated;
53 private String toDateLastModified;
54 private String toDateApproved;
55 private String toDateFinalized;
56
57
58 private List<ConcreteKeyValue> searchAttributeValues = new ArrayList<ConcreteKeyValue>();
59
60
61 private boolean advancedSearch = false;
62 private boolean superUserSearch = false;
63 private Integer threshold = null;
64 private Integer fetchLimit = null;
65 private boolean saveSearchForUser = false;
66
67 public void findDocsBeforeSpecifiedRouteNode() {
68 setDocRouteNodeLogic(KEWConstants.DOC_SEARCH_ROUTE_STATUS_QUALIFIER_BEFORE);
69 }
70
71 public void findDocsAfterSpecifiedRouteNode() {
72 setDocRouteNodeLogic(KEWConstants.DOC_SEARCH_ROUTE_STATUS_QUALIFIER_AFTER);
73 }
74
75 public void findDocsAtExactSpecifiedRouteNode() {
76 setDocRouteNodeLogic(KEWConstants.DOC_SEARCH_ROUTE_STATUS_QUALIFIER_EXACT);
77 }
78
79 public String getDocumentId() {
80 return this.documentId;
81 }
82
83 public void setDocumentId(String documentId) {
84 this.documentId = documentId;
85 }
86
87 public String getDocRouteStatus() {
88 return this.docRouteStatus;
89 }
90
91 public void setDocRouteStatus(String docRouteStatus) {
92 this.docRouteStatus = docRouteStatus;
93 }
94
95 public String getDocTitle() {
96 return this.docTitle;
97 }
98
99 public void setDocTitle(String docTitle) {
100 this.docTitle = docTitle;
101 }
102
103 public String getAppDocId() {
104 return this.appDocId;
105 }
106
107 public void setAppDocId(String appDocId) {
108 this.appDocId = appDocId;
109 }
110
111 public String getInitiator() {
112 return this.initiator;
113 }
114
115 public void setInitiator(String initiator) {
116 this.initiator = initiator;
117 }
118
119 public String getViewer() {
120 return this.viewer;
121 }
122
123 public void setViewer(String viewer) {
124 this.viewer = viewer;
125 }
126
127 public String getGroupViewerName() {
128 return this.groupViewerName;
129 }
130
131 public void setGroupViewerName(String groupViewerName) {
132 this.groupViewerName = groupViewerName;
133 }
134
135 public String getApprover() {
136 return this.approver;
137 }
138
139 public void setApprover(String approver) {
140 this.approver = approver;
141 }
142
143 public String getDocRouteNodeName() {
144 return this.docRouteNodeName;
145 }
146
147 public void setDocRouteNodeName(String docRouteNodeName) {
148 this.docRouteNodeName = docRouteNodeName;
149 }
150
151 public String getDocRouteNodeLogic() {
152 return this.docRouteNodeLogic;
153 }
154
155 public void setDocRouteNodeLogic(String docRouteNodeLogic) {
156 this.docRouteNodeLogic = docRouteNodeLogic;
157 }
158
159 public String getDocVersion() {
160 return this.docVersion;
161 }
162
163 public void setDocVersion(String docVersion) {
164 this.docVersion = docVersion;
165 }
166
167 public String getDocTypeFullName() {
168 return this.docTypeFullName;
169 }
170
171 public void setDocTypeFullName(String docTypeFullName) {
172 this.docTypeFullName = docTypeFullName;
173 }
174
175 public String getFromDateCreated() {
176 return this.fromDateCreated;
177 }
178
179 public void setFromDateCreated(String fromDateCreated) {
180 this.fromDateCreated = fromDateCreated;
181 }
182
183 public String getFromDateLastModified() {
184 return this.fromDateLastModified;
185 }
186
187 public void setFromDateLastModified(String fromDateLastModified) {
188 this.fromDateLastModified = fromDateLastModified;
189 }
190
191 public String getFromDateApproved() {
192 return this.fromDateApproved;
193 }
194
195 public void setFromDateApproved(String fromDateApproved) {
196 this.fromDateApproved = fromDateApproved;
197 }
198
199 public String getFromDateFinalized() {
200 return this.fromDateFinalized;
201 }
202
203 public void setFromDateFinalized(String fromDateFinalized) {
204 this.fromDateFinalized = fromDateFinalized;
205 }
206
207 public String getToDateCreated() {
208 return this.toDateCreated;
209 }
210
211 public void setToDateCreated(String toDateCreated) {
212 this.toDateCreated = toDateCreated;
213 }
214
215 public String getToDateLastModified() {
216 return this.toDateLastModified;
217 }
218
219 public void setToDateLastModified(String toDateLastModified) {
220 this.toDateLastModified = toDateLastModified;
221 }
222
223 public String getToDateApproved() {
224 return this.toDateApproved;
225 }
226
227 public void setToDateApproved(String toDateApproved) {
228 this.toDateApproved = toDateApproved;
229 }
230
231 public String getToDateFinalized() {
232 return this.toDateFinalized;
233 }
234
235 public void setToDateFinalized(String toDateFinalized) {
236 this.toDateFinalized = toDateFinalized;
237 }
238
239 public List<ConcreteKeyValue> getSearchAttributeValues() {
240 return this.searchAttributeValues;
241 }
242
243 public void setSearchAttributeValues(List<ConcreteKeyValue> searchAttributeValues) {
244 this.searchAttributeValues = searchAttributeValues;
245 }
246
247 public boolean isAdvancedSearch() {
248 return this.advancedSearch;
249 }
250
251 public void setAdvancedSearch(boolean advancedSearch) {
252 this.advancedSearch = advancedSearch;
253 }
254
255 public boolean isSuperUserSearch() {
256 return this.superUserSearch;
257 }
258
259 public void setSuperUserSearch(boolean superUserSearch) {
260 this.superUserSearch = superUserSearch;
261 }
262
263 public Integer getThreshold() {
264 return this.threshold;
265 }
266
267 public void setThreshold(Integer threshold) {
268 this.threshold = threshold;
269 }
270
271 public boolean isSaveSearchForUser() {
272 return this.saveSearchForUser;
273 }
274
275 public void setSaveSearchForUser(boolean saveSearchForUser) {
276 this.saveSearchForUser = saveSearchForUser;
277 }
278
279 }