View Javadoc
1   /**
2    * Copyright 2005-2015 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.krad.uif.util;
17  
18  import java.util.Collection;
19  import java.util.Collections;
20  
21  import org.kuali.rice.coreservice.api.parameter.Parameter;
22  import org.kuali.rice.coreservice.framework.parameter.ParameterService;
23  
24  /**
25   * TODO mark don't forget to fill this in. 
26   * 
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  public class MockParameterService implements ParameterService {
30  
31      /**
32       * {@inheritDoc}
33       */
34      @Override
35      public Parameter createParameter(Parameter parameter) {
36          return parameter;
37      }
38  
39      /**
40       * {@inheritDoc}
41       */
42      @Override
43      public Parameter updateParameter(Parameter parameter) {
44          return parameter;
45      }
46  
47      /**
48       * {@inheritDoc}
49       */
50      @Override
51      public Parameter getParameter(String namespaceCode, String componentCode, String parameterName) {
52          return null;
53      }
54  
55      /**
56       * {@inheritDoc}
57       */
58      @Override
59      public Parameter getParameter(Class<?> componentClass, String parameterName) {
60          return null;
61      }
62  
63      /**
64       * {@inheritDoc}
65       */
66      @Override
67      public Boolean parameterExists(String namespaceCode, String componentCode, String parameterName) {
68          return false;
69      }
70  
71      /**
72       * {@inheritDoc}
73       */
74      @Override
75      public Boolean parameterExists(Class<?> componentClass, String parameterName) {
76          return false;
77      }
78  
79      /**
80       * {@inheritDoc}
81       */
82      @Override
83      public Boolean getParameterValueAsBoolean(String namespaceCode, String componentCode, String parameterName) {
84          return false;
85      }
86  
87      /**
88       * {@inheritDoc}
89       */
90      @Override
91      public Boolean getParameterValueAsBoolean(String namespaceCode, String componentCode, String parameterName, Boolean defaultValue) {
92          return false;
93      }
94  
95      /**
96       * {@inheritDoc}
97       */
98      @Override
99      public Boolean getParameterValueAsBoolean(Class<?> componentClass, String parameterName) {
100         return false;
101     }
102 
103     /**
104      * {@inheritDoc}
105      */
106     @Override
107     public Boolean getParameterValueAsBoolean(Class<?> componentClass, String parameterName, Boolean defaultValue) {
108         return false;
109     }
110 
111     /**
112      * {@inheritDoc}
113      */
114     @Override
115     public String getParameterValueAsString(String namespaceCode, String componentCode, String parameterName) {
116         return null;
117     }
118 
119     /**
120      * {@inheritDoc}
121      */
122     @Override
123     public String getParameterValueAsString(String namespaceCode, String componentCode, String parameterName, String defaultValue) {
124         return null;
125     }
126 
127     /**
128      * {@inheritDoc}
129      */
130     @Override
131     public String getParameterValueAsString(Class<?> componentClass, String parameterName) {
132         return null;
133     }
134 
135     /**
136      * {@inheritDoc}
137      */
138     @Override
139     public String getParameterValueAsString(Class<?> componentClass, String parameterName, String defaultValue) {
140         return null;
141     }
142 
143     /**
144      * {@inheritDoc}
145      */
146     @Override
147     public String getParameterValueAsFilteredString(String namespaceCode, String componentCode, String parameterName) {
148         return null;
149     }
150 
151     /**
152      * {@inheritDoc}
153      */
154     @Override
155     public String getParameterValueAsFilteredString(String namespaceCode, String componentCode, String parameterName, String defaultValue) {
156         return null;
157     }
158 
159     /**
160      * {@inheritDoc}
161      */
162     @Override
163     public String getParameterValueAsFilteredString(Class<?> componentClass, String parameterName) {
164         return null;
165     }
166 
167     /**
168      * {@inheritDoc}
169      */
170     @Override
171     public String getParameterValueAsFilteredString(Class<?> componentClass, String parameterName, String defaultValue) {
172         return null;
173     }
174 
175     /**
176      * {@inheritDoc}
177      */
178     @Override
179     public Collection<String> getParameterValuesAsString(String namespaceCode, String componentCode, String parameterName) {
180         return Collections.emptyList();
181     }
182 
183     /**
184      * {@inheritDoc}
185      */
186     @Override
187     public Collection<String> getParameterValuesAsString(Class<?> componentClass, String parameterName) {
188         return Collections.emptyList();
189     }
190 
191     /**
192      * {@inheritDoc}
193      */
194     @Override
195     public Collection<String> getParameterValuesAsFilteredString(String namespaceCode, String componentCode, String parameterName) {
196         return Collections.emptyList();
197     }
198 
199     /**
200      * {@inheritDoc}
201      */
202     @Override
203     public Collection<String> getParameterValuesAsFilteredString(Class<?> componentClass, String parameterName) {
204         return Collections.emptyList();
205     }
206 
207     /**
208      * {@inheritDoc}
209      */
210     @Override
211     public String getSubParameterValueAsString(String namespaceCode, String componentCode, String parameterName, String subParameterName) {
212         return null;
213     }
214 
215     /**
216      * {@inheritDoc}
217      */
218     @Override
219     public String getSubParameterValueAsString(Class<?> componentClass, String parameterName, String subParameterName) {
220         return null;
221     }
222 
223     /**
224      * {@inheritDoc}
225      */
226     @Override
227     public String getSubParameterValueAsFilteredString(String namespaceCode, String componentCode, String parameterName, String subParameterName) {
228         return null;
229     }
230 
231     /**
232      * {@inheritDoc}
233      */
234     @Override
235     public String getSubParameterValueAsFilteredString(Class<?> componentClass, String parameterName, String subParameterName) {
236         return null;
237     }
238 
239     /**
240      * {@inheritDoc}
241      */
242     @Override
243     public Collection<String> getSubParameterValuesAsString(Class<?> componentClass, String parameterName, String subParameterName) {
244         return Collections.emptyList();
245     }
246 
247     /**
248      * {@inheritDoc}
249      */
250     @Override
251     public Collection<String> getSubParameterValuesAsString(String namespaceCode, String componentCode, String parameterName, String subParameterName) {
252         return Collections.emptyList();
253     }
254 
255     /**
256      * {@inheritDoc}
257      */
258     @Override
259     public Collection<String> getSubParameterValuesAsFilteredString(String namespaceCode, String componentCode, String parameterName, String subParameterName) {
260         return Collections.emptyList();
261     }
262 
263     /**
264      * {@inheritDoc}
265      */
266     @Override
267     public Collection<String> getSubParameterValuesAsFilteredString(Class<?> componentClass, String parameterName, String subParameterName) {
268         return Collections.emptyList();
269     }
270 
271 }