001/**
002 * Copyright 2005-2017 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.kew.actionlist;
017
018import java.io.Serializable;
019import java.util.Date;
020
021import org.kuali.rice.kew.api.KewApiConstants;
022
023
024/**
025 * model for the action list filter preferences
026 *
027 * @author Kuali Rice Team (rice.collab@kuali.org)
028 */
029public class ActionListFilter implements Serializable {
030
031    /**
032         *
033         */
034        private static final long serialVersionUID = -365729646389290478L;
035        private String filterLegend;
036    private String documentTitle = "";
037    private boolean excludeDocumentTitle;
038    private String docRouteStatus = KewApiConstants.ALL_CODE;
039    private boolean excludeRouteStatus;
040    private String actionRequestCd = KewApiConstants.ALL_CODE;
041    private boolean excludeActionRequestCd;
042    private String groupId;
043    private String groupIdString = KewApiConstants.NO_FILTERING;
044    private String groupName = "";
045    private boolean excludeGroupId;
046    private String documentType = "";
047    private boolean excludeDocumentType;
048    private Date createDateFrom;
049    private Date createDateTo;
050    private boolean excludeCreateDate;
051    private Date lastAssignedDateFrom;
052    private Date lastAssignedDateTo;
053    private boolean excludeLastAssignedDate;
054    private String delegatorId = "";
055    private String primaryDelegateId = "";
056    private boolean excludeDelegatorId;
057    private String delegationType;
058    private boolean excludeDelegationType;
059    private boolean filterOn;
060
061    public ActionListFilter() {}
062
063    public ActionListFilter(ActionListFilter another) {
064        this.filterLegend = another.filterLegend;
065        this.documentTitle = another.documentTitle;
066        this.excludeDocumentTitle = another.excludeDocumentTitle;
067        this.docRouteStatus = another.docRouteStatus;
068        this.excludeRouteStatus = another.excludeRouteStatus;
069        this.actionRequestCd = another.actionRequestCd ;
070        this.excludeActionRequestCd = another.excludeActionRequestCd ;
071        this.groupId = another.groupId ;
072        this.groupIdString = another.groupIdString ;
073        this.groupName = another.groupName ;
074        this.excludeGroupId = another.excludeGroupId ;
075        this.documentType = another.documentType ;
076        this.excludeDocumentType = another.excludeDocumentType ;
077        this.createDateFrom = another.createDateFrom ;
078        this.createDateTo = another.createDateTo ;
079        this.excludeCreateDate = another.excludeCreateDate ;
080        this.lastAssignedDateFrom = another.lastAssignedDateFrom ;
081        this.lastAssignedDateTo = another.lastAssignedDateTo ;
082        this.excludeLastAssignedDate = another.excludeLastAssignedDate ;
083        this.delegatorId = another.delegatorId ;
084        this.primaryDelegateId = another.primaryDelegateId ;
085        this.excludeDelegatorId = another.excludeDelegatorId ;
086        this.delegationType = another.delegationType ;
087        this.excludeDelegationType = another.excludeDelegationType ;
088        this.filterOn = another.filterOn ;
089    }
090
091    public String getActionRequestCd() {
092        return actionRequestCd;
093    }
094    public void setActionRequestCd(String actionRequestCd) {
095        this.actionRequestCd = actionRequestCd;
096    }
097    public Date getCreateDateFrom() {
098        return createDateFrom;
099    }
100    public void setCreateDateFrom(Date createDate) {
101        this.createDateFrom = createDate;
102    }
103    public String getDocRouteStatus() {
104        return docRouteStatus;
105    }
106    public void setDocRouteStatus(String docRouteStatus) {
107        this.docRouteStatus = docRouteStatus;
108    }
109    public String getDocumentTitle() {
110        return documentTitle;
111    }
112    public void setDocumentTitle(String documentTitle) {
113        this.documentTitle = documentTitle;
114    }
115    public String getDocumentType() {
116        return documentType;
117    }
118    public void setDocumentType(String documentType) {
119        this.documentType = documentType;
120    }
121    public boolean isExcludeCreateDate() {
122        return excludeCreateDate;
123    }
124    public void setExcludeCreateDate(boolean excludeCreateDate) {
125        this.excludeCreateDate = excludeCreateDate;
126    }
127    public boolean isExcludeDocumentType() {
128        return excludeDocumentType;
129    }
130    public void setExcludeDocumentType(boolean excludeDocument) {
131        this.excludeDocumentType = excludeDocument;
132    }
133    public boolean isExcludeDocumentTitle() {
134        return excludeDocumentTitle;
135    }
136    public void setExcludeDocumentTitle(boolean excludeDocumentTitle) {
137        this.excludeDocumentTitle = excludeDocumentTitle;
138    }
139    public boolean isExcludeLastAssignedDate() {
140        return excludeLastAssignedDate;
141    }
142    public void setExcludeLastAssignedDate(boolean excludeLastAssignedDate) {
143        this.excludeLastAssignedDate = excludeLastAssignedDate;
144    }
145    public boolean isExcludeActionRequestCd() {
146        return excludeActionRequestCd;
147    }
148    public void setExcludeActionRequestCd(boolean excludeRequestCd) {
149        this.excludeActionRequestCd = excludeRequestCd;
150    }
151    public boolean isExcludeRouteStatus() {
152        return excludeRouteStatus;
153    }
154    public void setExcludeRouteStatus(boolean excludeRouteStatus) {
155        this.excludeRouteStatus = excludeRouteStatus;
156    }
157    public boolean isExcludeGroupId() {
158        return excludeGroupId;
159    }
160    public void setExcludeGroupId(boolean excludeGroupId) {
161        this.excludeGroupId = excludeGroupId;
162    }
163    public Date getLastAssignedDateTo() {
164        return lastAssignedDateTo;
165    }
166    public void setLastAssignedDateTo(Date lastAssignedDate) {
167        this.lastAssignedDateTo = lastAssignedDate;
168    }
169    public String getGroupId() {
170        return groupId;
171    }
172
173    public void setGroupId(String groupId) {
174        this.groupId = groupId;
175    }
176
177    public Date getCreateDateTo() {
178        return createDateTo;
179    }
180    public void setCreateDateTo(Date createDateTo) {
181        this.createDateTo = createDateTo;
182    }
183    public Date getLastAssignedDateFrom() {
184        return lastAssignedDateFrom;
185    }
186    public void setLastAssignedDateFrom(Date lastAssignedDateFrom) {
187        this.lastAssignedDateFrom = lastAssignedDateFrom;
188    }
189    public String getDelegatorId() {
190        return delegatorId;
191    }
192    public void setDelegatorId(String delegatorId) {
193        this.delegatorId = delegatorId;
194    }
195
196    public String getPrimaryDelegateId() {
197                return this.primaryDelegateId;
198        }
199
200    public void setPrimaryDelegateId(String primaryDelegateId) {
201                this.primaryDelegateId = primaryDelegateId;
202        }
203
204    public String getGroupName() {
205        return groupName;
206    }
207
208    public void setGroupName(String groupName) {
209        this.groupName = groupName;
210    }
211
212    public String getFilterLegend() {
213        return filterLegend;
214    }
215
216    public void setFilterLegend(String filterLegend) {
217        this.filterLegend = filterLegend;
218    }
219
220    public String getGroupIdString() {
221        return groupIdString;
222    }
223
224    public void setGroupIdString(String groupIdString) {
225        this.groupIdString = groupIdString;
226    }
227
228    public boolean isExcludeDelegatorId() {
229        return excludeDelegatorId;
230    }
231
232    public void setExcludeDelegatorId(boolean excludeDelegatorId) {
233        this.excludeDelegatorId = excludeDelegatorId;
234    }
235
236    public String getDelegationType() {
237        return delegationType;
238    }
239
240    public void setDelegationType(String delegationType) {
241        this.delegationType = delegationType;
242    }
243
244    public boolean isExcludeDelegationType() {
245        return excludeDelegationType;
246    }
247
248    public void setExcludeDelegationType(boolean excludeDelegationType) {
249        this.excludeDelegationType = excludeDelegationType;
250    }
251
252    public boolean isFilterOn() {
253        return filterOn;
254    }
255
256    public void setFilterOn(boolean filterOn) {
257        this.filterOn = filterOn;
258    }
259}