blob: 141fdd5cd8753109c1fdeeefd6ba4587467d608c (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
package com.p4square.ccbapi.model;
/**
* SearchGroupsRequest is the set of options for the group_search API.
*/
public class SearchGroupsRequest {
// Criteria
private int areaId;
private int campusId;
private boolean hasChildcare;
private int meetingDayId;
private int meetingTimeId;
private int departmentId;
private int groupTypeId;
private int udfPulldown1ValueId;
private int udfPulldown2ValueId;
private int udfPulldown3ValueId;
// Controls
private int limitRecordsStart;
private int limitRecordsPerPage;
private OrderByCriterion[] orderBy = new OrderByCriterion[0];
public int getAreaId() {
return areaId;
}
public SearchGroupsRequest withAreaId(int areaId) {
this.areaId = areaId;
return this;
}
public int getCampusId() {
return campusId;
}
public SearchGroupsRequest withCampusId(int campusId) {
this.campusId = campusId;
return this;
}
public boolean hasChildcare() {
return hasChildcare;
}
public SearchGroupsRequest withChildcare(boolean hasChildcare) {
this.hasChildcare = hasChildcare;
return this;
}
public int getMeetingDayId() {
return meetingDayId;
}
public SearchGroupsRequest withMeetingDayId(int meetingDayId) {
this.meetingDayId = meetingDayId;
return this;
}
public int getMeetingTimeId() {
return meetingTimeId;
}
public SearchGroupsRequest withMeetingTimeId(int meetingTimeId) {
this.meetingTimeId = meetingTimeId;
return this;
}
public int getDepartmentId() {
return departmentId;
}
public SearchGroupsRequest withDepartmentId(int departmentId) {
this.departmentId = departmentId;
return this;
}
public int getGroupTypeId() {
return groupTypeId;
}
public SearchGroupsRequest withGroupTypeId(int groupTypeId) {
this.groupTypeId = groupTypeId;
return this;
}
public int getUdfPulldown1ValueId() {
return udfPulldown1ValueId;
}
public SearchGroupsRequest withUdfPulldown1ValueId(int udfPulldown1ValueId) {
this.udfPulldown1ValueId = udfPulldown1ValueId;
return this;
}
public int getUdfPulldown2ValueId() {
return udfPulldown2ValueId;
}
public SearchGroupsRequest withUdfPulldown2ValueId(int udfPulldown2ValueId) {
this.udfPulldown2ValueId = udfPulldown2ValueId;
return this;
}
public int getUdfPulldown3ValueId() {
return udfPulldown3ValueId;
}
public SearchGroupsRequest withUdfPulldown3ValueId(int udfPulldown3ValueId) {
this.udfPulldown3ValueId = udfPulldown3ValueId;
return this;
}
public int getLimitRecordsStart() {
return limitRecordsStart;
}
public SearchGroupsRequest withLimitRecordsStart(int limitRecordsStart) {
this.limitRecordsStart = limitRecordsStart;
return this;
}
public int getLimitRecordsPerPage() {
return limitRecordsPerPage;
}
public SearchGroupsRequest withLimitRecordsPerPage(int limitRecordsPerPage) {
this.limitRecordsPerPage = limitRecordsPerPage;
return this;
}
public OrderByCriterion[] getOrderBy() {
return orderBy;
}
public SearchGroupsRequest withOrderBy(OrderByCriterion[] orderBy) {
if (orderBy == null) {
this.orderBy = new OrderByCriterion[0];
} else if (orderBy.length > 3) {
throw new IllegalArgumentException("At most 3 orderBy criteria are allowed.");
} else {
this.orderBy = orderBy;
}
return this;
}
public final class OrderByCriterion {
private SearchGroupsCriteriaFields field;
private SortOrder order = SortOrder.ASCENDING;
public SearchGroupsCriteriaFields getField() {
return field;
}
public OrderByCriterion withField(SearchGroupsCriteriaFields field) {
this.field = field;
return this;
}
public SortOrder getOrder() {
return order;
}
public OrderByCriterion withOrder(SortOrder order) {
this.order = order;
return this;
}
}
}
|