Coverage Report - org.kuali.rice.kew.dto.DocumentSearchCriteriaDTO
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentSearchCriteriaDTO
0%
0/89
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2008 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kew.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.List;
 21  
 
 22  
 import org.kuali.rice.core.util.ConcreteKeyValue;
 23  
 import org.kuali.rice.kew.util.KEWConstants;
 24  
 
 25  
 /**
 26  
  * This is a virtual object representing the DocSearchCriteriaDTO class
 27  
  * 
 28  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 29  
  */
 30  0
 public class DocumentSearchCriteriaDTO implements Serializable {
 31  
 
 32  
     private static final long serialVersionUID = -220572344702126103L;
 33  
 
 34  
     private String routeHeaderId; // id generated by KEW
 35  
     private String docRouteStatus; // route status of the document
 36  
     private String docTitle; // document title provided by the application
 37  
     private String appDocId; // application provided ID - defaults to routeHeaderId
 38  
     private String initiator; // network Id of the person who initiated the document
 39  
     private String viewer; // network Id of the person who is currently viewing the document
 40  
     private String groupViewerName; // group Id that has had an action request to the document
 41  
     private String approver; // network Id of the person who is approving the document
 42  
     private String docRouteNodeName; // current level of routing, i.e. which route method is the document currently in
 43  0
     private String docRouteNodeLogic = KEWConstants.DOC_SEARCH_ROUTE_STATUS_QUALIFIER_EXACT; // exactly, before or after
 44  
     private String docVersion; // document version
 45  
     private String docTypeFullName; // the fullname for the document's docType
 46  
 
 47  
     // date range properties
 48  
     private String fromDateCreated; // the begin range for DateCreated
 49  
     private String fromDateLastModified; // the begin range for LastModified
 50  
     private String fromDateApproved; // the begin range for Approved
 51  
     private String fromDateFinalized; // the begin range for Finalized
 52  
     private String toDateCreated; // the end range for created
 53  
     private String toDateLastModified; // the end range for last modified
 54  
     private String toDateApproved; // the end range for approved
 55  
     private String toDateFinalized; // the end range for finalized
 56  
 
 57  
     // searchable attribute properties
 58  0
     private List<ConcreteKeyValue> searchAttributeValues = new ArrayList<ConcreteKeyValue>();
 59  
 
 60  
     // below used only in specialized cases
 61  0
     private boolean advancedSearch = false;
 62  0
     private boolean superUserSearch = false;
 63  0
     private Integer threshold = null;
 64  0
     private Integer fetchLimit = null;
 65  0
     private boolean saveSearchForUser = false;
 66  
 
 67  
     public void findDocsBeforeSpecifiedRouteNode() {
 68  0
         setDocRouteNodeLogic(KEWConstants.DOC_SEARCH_ROUTE_STATUS_QUALIFIER_BEFORE);
 69  0
     }
 70  
 
 71  
     public void findDocsAfterSpecifiedRouteNode() {
 72  0
         setDocRouteNodeLogic(KEWConstants.DOC_SEARCH_ROUTE_STATUS_QUALIFIER_AFTER);
 73  0
     }
 74  
 
 75  
     public void findDocsAtExactSpecifiedRouteNode() {
 76  0
         setDocRouteNodeLogic(KEWConstants.DOC_SEARCH_ROUTE_STATUS_QUALIFIER_EXACT);
 77  0
     }
 78  
 
 79  
     public String getRouteHeaderId() {
 80  0
         return this.routeHeaderId;
 81  
     }
 82  
 
 83  
     public void setRouteHeaderId(String routeHeaderId) {
 84  0
         this.routeHeaderId = routeHeaderId;
 85  0
     }
 86  
 
 87  
     public String getDocRouteStatus() {
 88  0
         return this.docRouteStatus;
 89  
     }
 90  
 
 91  
     public void setDocRouteStatus(String docRouteStatus) {
 92  0
         this.docRouteStatus = docRouteStatus;
 93  0
     }
 94  
 
 95  
     public String getDocTitle() {
 96  0
         return this.docTitle;
 97  
     }
 98  
 
 99  
     public void setDocTitle(String docTitle) {
 100  0
         this.docTitle = docTitle;
 101  0
     }
 102  
 
 103  
     public String getAppDocId() {
 104  0
         return this.appDocId;
 105  
     }
 106  
 
 107  
     public void setAppDocId(String appDocId) {
 108  0
         this.appDocId = appDocId;
 109  0
     }
 110  
 
 111  
     public String getInitiator() {
 112  0
         return this.initiator;
 113  
     }
 114  
 
 115  
     public void setInitiator(String initiator) {
 116  0
         this.initiator = initiator;
 117  0
     }
 118  
 
 119  
     public String getViewer() {
 120  0
         return this.viewer;
 121  
     }
 122  
 
 123  
     public void setViewer(String viewer) {
 124  0
         this.viewer = viewer;
 125  0
     }
 126  
 
 127  
     public String getGroupViewerName() {
 128  0
         return this.groupViewerName;
 129  
     }
 130  
 
 131  
     public void setGroupViewerName(String groupViewerName) {
 132  0
         this.groupViewerName = groupViewerName;
 133  0
     }
 134  
 
 135  
     public String getApprover() {
 136  0
         return this.approver;
 137  
     }
 138  
 
 139  
     public void setApprover(String approver) {
 140  0
         this.approver = approver;
 141  0
     }
 142  
 
 143  
     public String getDocRouteNodeName() {
 144  0
         return this.docRouteNodeName;
 145  
     }
 146  
 
 147  
     public void setDocRouteNodeName(String docRouteNodeName) {
 148  0
         this.docRouteNodeName = docRouteNodeName;
 149  0
     }
 150  
 
 151  
     public String getDocRouteNodeLogic() {
 152  0
         return this.docRouteNodeLogic;
 153  
     }
 154  
 
 155  
     public void setDocRouteNodeLogic(String docRouteNodeLogic) {
 156  0
         this.docRouteNodeLogic = docRouteNodeLogic;
 157  0
     }
 158  
 
 159  
     public String getDocVersion() {
 160  0
         return this.docVersion;
 161  
     }
 162  
 
 163  
     public void setDocVersion(String docVersion) {
 164  0
         this.docVersion = docVersion;
 165  0
     }
 166  
 
 167  
     public String getDocTypeFullName() {
 168  0
         return this.docTypeFullName;
 169  
     }
 170  
 
 171  
     public void setDocTypeFullName(String docTypeFullName) {
 172  0
         this.docTypeFullName = docTypeFullName;
 173  0
     }
 174  
 
 175  
     public String getFromDateCreated() {
 176  0
         return this.fromDateCreated;
 177  
     }
 178  
 
 179  
     public void setFromDateCreated(String fromDateCreated) {
 180  0
         this.fromDateCreated = fromDateCreated;
 181  0
     }
 182  
 
 183  
     public String getFromDateLastModified() {
 184  0
         return this.fromDateLastModified;
 185  
     }
 186  
 
 187  
     public void setFromDateLastModified(String fromDateLastModified) {
 188  0
         this.fromDateLastModified = fromDateLastModified;
 189  0
     }
 190  
 
 191  
     public String getFromDateApproved() {
 192  0
         return this.fromDateApproved;
 193  
     }
 194  
 
 195  
     public void setFromDateApproved(String fromDateApproved) {
 196  0
         this.fromDateApproved = fromDateApproved;
 197  0
     }
 198  
 
 199  
     public String getFromDateFinalized() {
 200  0
         return this.fromDateFinalized;
 201  
     }
 202  
 
 203  
     public void setFromDateFinalized(String fromDateFinalized) {
 204  0
         this.fromDateFinalized = fromDateFinalized;
 205  0
     }
 206  
 
 207  
     public String getToDateCreated() {
 208  0
         return this.toDateCreated;
 209  
     }
 210  
 
 211  
     public void setToDateCreated(String toDateCreated) {
 212  0
         this.toDateCreated = toDateCreated;
 213  0
     }
 214  
 
 215  
     public String getToDateLastModified() {
 216  0
         return this.toDateLastModified;
 217  
     }
 218  
 
 219  
     public void setToDateLastModified(String toDateLastModified) {
 220  0
         this.toDateLastModified = toDateLastModified;
 221  0
     }
 222  
 
 223  
     public String getToDateApproved() {
 224  0
         return this.toDateApproved;
 225  
     }
 226  
 
 227  
     public void setToDateApproved(String toDateApproved) {
 228  0
         this.toDateApproved = toDateApproved;
 229  0
     }
 230  
 
 231  
     public String getToDateFinalized() {
 232  0
         return this.toDateFinalized;
 233  
     }
 234  
 
 235  
     public void setToDateFinalized(String toDateFinalized) {
 236  0
         this.toDateFinalized = toDateFinalized;
 237  0
     }
 238  
 
 239  
     public List<ConcreteKeyValue> getSearchAttributeValues() {
 240  0
         return this.searchAttributeValues;
 241  
     }
 242  
 
 243  
     public void setSearchAttributeValues(List<ConcreteKeyValue> searchAttributeValues) {
 244  0
         this.searchAttributeValues = searchAttributeValues;
 245  0
     }
 246  
 
 247  
     public boolean isAdvancedSearch() {
 248  0
         return this.advancedSearch;
 249  
     }
 250  
 
 251  
     public void setAdvancedSearch(boolean advancedSearch) {
 252  0
         this.advancedSearch = advancedSearch;
 253  0
     }
 254  
 
 255  
     public boolean isSuperUserSearch() {
 256  0
         return this.superUserSearch;
 257  
     }
 258  
 
 259  
     public void setSuperUserSearch(boolean superUserSearch) {
 260  0
         this.superUserSearch = superUserSearch;
 261  0
     }
 262  
 
 263  
     public Integer getThreshold() {
 264  0
         return this.threshold;
 265  
     }
 266  
 
 267  
     public void setThreshold(Integer threshold) {
 268  0
         this.threshold = threshold;
 269  0
     }
 270  
 
 271  
         public boolean isSaveSearchForUser() {
 272  0
                 return this.saveSearchForUser;
 273  
         }
 274  
 
 275  
         public void setSaveSearchForUser(boolean saveSearchForUser) {
 276  0
                 this.saveSearchForUser = saveSearchForUser;
 277  0
         }
 278  
 
 279  
 }