View Javadoc

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  	private boolean hidden = false;
38  	private String displayOnlyPropertyName = null;
39  	private String datePickerKey = null;
40  	private String lookupableImplServiceName = null;
41  	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  	public StandardSearchCriteriaField() {}
52  	
53      public StandardSearchCriteriaField(String fieldKey, String propertyName, String fieldType, String datePickerKey, String labelMessageKey, String helpMessageKeyArgument, boolean hidden, String displayOnlyPropertyName, String lookupableImplServiceName, boolean lookupTypeRequired) {
54      	setupField(fieldKey, propertyName, fieldType, datePickerKey, labelMessageKey, helpMessageKeyArgument, hidden, displayOnlyPropertyName, lookupableImplServiceName, lookupTypeRequired);
55      }
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      	this.key = fieldKey;
59      	this.property = propertyName;
60      	this.fieldType = fieldType;
61      	this.datePickerKey = datePickerKey;
62      	this.labelMessageKey = labelMessageKey;
63      	this.helpMessageKeyArgument = helpMessageKeyArgument;
64      	this.hidden = hidden;
65      	this.displayOnlyPropertyName = displayOnlyPropertyName;
66      	this.lookupableImplServiceName = lookupableImplServiceName;
67      	this.lookupTypeRequired = lookupTypeRequired;
68      }
69  
70      public String getKey() {
71  		return this.key;
72  	}
73  	public void setKey(String key) {
74  		this.key = key;
75  	}
76  	public String getProperty() {
77  		return this.property;
78  	}
79  	public void setProperty(String property) {
80  		this.property = property;
81  	}
82  	public String getFieldType() {
83  		return this.fieldType;
84  	}
85  	public void setFieldType(String fieldType) {
86  		this.fieldType = fieldType;
87  	}
88  	public boolean isHidden() {
89  		return this.hidden;
90  	}
91  	public void setHidden(boolean hidden) {
92  		this.hidden = hidden;
93  	}
94  	public String getDisplayOnlyPropertyName() {
95  		return this.displayOnlyPropertyName;
96  	}
97  	public void setDisplayOnlyPropertyName(String displayOnlyPropertyName) {
98  		this.displayOnlyPropertyName = displayOnlyPropertyName;
99  	}
100 	public String getDatePickerKey() {
101 		return this.datePickerKey;
102 	}
103 	public void setDatePickerKey(String datePickerKey) {
104 		this.datePickerKey = datePickerKey;
105 	}
106 	public String getLookupableImplServiceName() {
107 		return this.lookupableImplServiceName;
108 	}
109 	public void setLookupableImplServiceName(String lookupableImplServiceName) {
110 		this.lookupableImplServiceName = lookupableImplServiceName;
111 	}
112 	public boolean isLookupTypeRequired() {
113 		return this.lookupTypeRequired;
114 	}
115 	public void setLookupTypeRequired(boolean lookupTypeRequired) {
116 		this.lookupTypeRequired = lookupTypeRequired;
117 	}
118 	public String getLabelMessageKey() {
119 		return this.labelMessageKey;
120 	}
121 	public void setLabelMessageKey(String labelMessageKey) {
122 		this.labelMessageKey = labelMessageKey;
123 	}
124 	public String getHelpMessageKeyArgument() {
125 		return this.helpMessageKeyArgument;
126 	}
127 	public void setHelpMessageKeyArgument(String helpMessageKeyArgument) {
128 		this.helpMessageKeyArgument = helpMessageKeyArgument;
129 	}
130 
131     public String getOptionsCollectionProperty() {
132 		return this.optionsCollectionProperty;
133 	}
134 
135 	public void setOptionsCollectionProperty(String optionsCollectionProperty) {
136 		this.optionsCollectionProperty = optionsCollectionProperty;
137 	}
138 
139 	public String getCollectionLabelProperty() {
140 		return this.collectionLabelProperty;
141 	}
142 
143 	public void setCollectionLabelProperty(String collectionLabelProperty) {
144 		this.collectionLabelProperty = collectionLabelProperty;
145 	}
146 
147 	public String getCollectionKeyProperty() {
148 		return this.collectionKeyProperty;
149 	}
150 
151 	public void setCollectionKeyProperty(String collectionKeyProperty) {
152 		this.collectionKeyProperty = collectionKeyProperty;
153 	}
154 
155 	public String getEmptyCollectionMessage() {
156 		return this.emptyCollectionMessage;
157 	}
158 
159 	public void setEmptyCollectionMessage(String emptyCollectionMessage) {
160 		this.emptyCollectionMessage = emptyCollectionMessage;
161 	}
162 
163 	/**
164      * @return the tEXT
165      */
166     public String getTEXT() {
167         return TEXT;
168     }
169     
170     /**
171      * @return the dROPDOWN
172      */
173     public String getDROPDOWN() {
174         return DROPDOWN;
175     }
176 
177     /**
178      * @return the dROPDOWN
179      */
180     public String getDROPDOWN_HIDE_EMPTY() {
181         return DROPDOWN_HIDE_EMPTY;
182     }
183 
184 }