Coverage Report - org.kuali.rice.kew.docsearch.StandardSearchCriteriaField
 
Classes in this File Line Coverage Branch Coverage Complexity
StandardSearchCriteriaField
0%
0/65
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007 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.docsearch;
 17  
 
 18  
 
 19  
 
 20  
 /**
 21  
  * This is a container object used by KEW Document Search 
 22  
  * 
 23  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 24  
  *
 25  
  */
 26  
 public class StandardSearchCriteriaField implements java.io.Serializable {
 27  
         
 28  
         private static final long serialVersionUID = -8499396401490695140L;
 29  
         
 30  
     public static final String TEXT = "text";
 31  
     public static final String DROPDOWN = "dropdown";
 32  
     public static final String DROPDOWN_HIDE_EMPTY = "dropdown_hide_empty";
 33  
 
 34  
     private String key;
 35  
         private String property;
 36  
         private String fieldType;
 37  0
         private boolean hidden = false;
 38  0
         private String displayOnlyPropertyName = null;
 39  0
         private String datePickerKey = null;
 40  0
         private String lookupableImplServiceName = null;
 41  0
         private boolean lookupTypeRequired = false;
 42  
         private String labelMessageKey;
 43  
         private String helpMessageKeyArgument;
 44  
         
 45  
         // values for field types with multiple options
 46  
         private String optionsCollectionProperty;
 47  
         private String collectionLabelProperty;
 48  
         private String collectionKeyProperty;
 49  
         private String emptyCollectionMessage;
 50  
 
 51  0
         public StandardSearchCriteriaField() {}
 52  
         
 53  0
     public StandardSearchCriteriaField(String fieldKey, String propertyName, String fieldType, String datePickerKey, String labelMessageKey, String helpMessageKeyArgument, boolean hidden, String displayOnlyPropertyName, String lookupableImplServiceName, boolean lookupTypeRequired) {
 54  0
             setupField(fieldKey, propertyName, fieldType, datePickerKey, labelMessageKey, helpMessageKeyArgument, hidden, displayOnlyPropertyName, lookupableImplServiceName, lookupTypeRequired);
 55  0
     }
 56  
 
 57  
     private void setupField(String fieldKey, String propertyName, String fieldType, String datePickerKey, String labelMessageKey, String helpMessageKeyArgument, boolean hidden, String displayOnlyPropertyName, String lookupableImplServiceName, boolean lookupTypeRequired) {
 58  0
             this.key = fieldKey;
 59  0
             this.property = propertyName;
 60  0
             this.fieldType = fieldType;
 61  0
             this.datePickerKey = datePickerKey;
 62  0
             this.labelMessageKey = labelMessageKey;
 63  0
             this.helpMessageKeyArgument = helpMessageKeyArgument;
 64  0
             this.hidden = hidden;
 65  0
             this.displayOnlyPropertyName = displayOnlyPropertyName;
 66  0
             this.lookupableImplServiceName = lookupableImplServiceName;
 67  0
             this.lookupTypeRequired = lookupTypeRequired;
 68  0
     }
 69  
 
 70  
     public String getKey() {
 71  0
                 return this.key;
 72  
         }
 73  
         public void setKey(String key) {
 74  0
                 this.key = key;
 75  0
         }
 76  
         public String getProperty() {
 77  0
                 return this.property;
 78  
         }
 79  
         public void setProperty(String property) {
 80  0
                 this.property = property;
 81  0
         }
 82  
         public String getFieldType() {
 83  0
                 return this.fieldType;
 84  
         }
 85  
         public void setFieldType(String fieldType) {
 86  0
                 this.fieldType = fieldType;
 87  0
         }
 88  
         public boolean isHidden() {
 89  0
                 return this.hidden;
 90  
         }
 91  
         public void setHidden(boolean hidden) {
 92  0
                 this.hidden = hidden;
 93  0
         }
 94  
         public String getDisplayOnlyPropertyName() {
 95  0
                 return this.displayOnlyPropertyName;
 96  
         }
 97  
         public void setDisplayOnlyPropertyName(String displayOnlyPropertyName) {
 98  0
                 this.displayOnlyPropertyName = displayOnlyPropertyName;
 99  0
         }
 100  
         public String getDatePickerKey() {
 101  0
                 return this.datePickerKey;
 102  
         }
 103  
         public void setDatePickerKey(String datePickerKey) {
 104  0
                 this.datePickerKey = datePickerKey;
 105  0
         }
 106  
         public String getLookupableImplServiceName() {
 107  0
                 return this.lookupableImplServiceName;
 108  
         }
 109  
         public void setLookupableImplServiceName(String lookupableImplServiceName) {
 110  0
                 this.lookupableImplServiceName = lookupableImplServiceName;
 111  0
         }
 112  
         public boolean isLookupTypeRequired() {
 113  0
                 return this.lookupTypeRequired;
 114  
         }
 115  
         public void setLookupTypeRequired(boolean lookupTypeRequired) {
 116  0
                 this.lookupTypeRequired = lookupTypeRequired;
 117  0
         }
 118  
         public String getLabelMessageKey() {
 119  0
                 return this.labelMessageKey;
 120  
         }
 121  
         public void setLabelMessageKey(String labelMessageKey) {
 122  0
                 this.labelMessageKey = labelMessageKey;
 123  0
         }
 124  
         public String getHelpMessageKeyArgument() {
 125  0
                 return this.helpMessageKeyArgument;
 126  
         }
 127  
         public void setHelpMessageKeyArgument(String helpMessageKeyArgument) {
 128  0
                 this.helpMessageKeyArgument = helpMessageKeyArgument;
 129  0
         }
 130  
 
 131  
     public String getOptionsCollectionProperty() {
 132  0
                 return this.optionsCollectionProperty;
 133  
         }
 134  
 
 135  
         public void setOptionsCollectionProperty(String optionsCollectionProperty) {
 136  0
                 this.optionsCollectionProperty = optionsCollectionProperty;
 137  0
         }
 138  
 
 139  
         public String getCollectionLabelProperty() {
 140  0
                 return this.collectionLabelProperty;
 141  
         }
 142  
 
 143  
         public void setCollectionLabelProperty(String collectionLabelProperty) {
 144  0
                 this.collectionLabelProperty = collectionLabelProperty;
 145  0
         }
 146  
 
 147  
         public String getCollectionKeyProperty() {
 148  0
                 return this.collectionKeyProperty;
 149  
         }
 150  
 
 151  
         public void setCollectionKeyProperty(String collectionKeyProperty) {
 152  0
                 this.collectionKeyProperty = collectionKeyProperty;
 153  0
         }
 154  
 
 155  
         public String getEmptyCollectionMessage() {
 156  0
                 return this.emptyCollectionMessage;
 157  
         }
 158  
 
 159  
         public void setEmptyCollectionMessage(String emptyCollectionMessage) {
 160  0
                 this.emptyCollectionMessage = emptyCollectionMessage;
 161  0
         }
 162  
 
 163  
         /**
 164  
      * @return the tEXT
 165  
      */
 166  
     public String getTEXT() {
 167  0
         return TEXT;
 168  
     }
 169  
     
 170  
     /**
 171  
      * @return the dROPDOWN
 172  
      */
 173  
     public String getDROPDOWN() {
 174  0
         return DROPDOWN;
 175  
     }
 176  
 
 177  
     /**
 178  
      * @return the dROPDOWN
 179  
      */
 180  
     public String getDROPDOWN_HIDE_EMPTY() {
 181  0
         return DROPDOWN_HIDE_EMPTY;
 182  
     }
 183  
 
 184  
 }