View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 1.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/ecl1.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.student.r2.common.datadictionary;
17  
18  import org.kuali.rice.core.impl.datetime.DateTimeServiceImpl;
19  
20  
21  /**
22   * Class that can be configured directly by spring instead of by the KNS configurer
23   * 
24   * @author nwright
25   */
26  public class SpringConfigurableDateTimeServiceImpl extends DateTimeServiceImpl {
27  
28      public String getDateToStringFormatForFileName() {
29          return dateToStringFormatForFileName;
30      }
31  
32      public void setDateToStringFormatForFileName(String dateToStringFormatForFileName) {
33          this.dateToStringFormatForFileName = dateToStringFormatForFileName;
34      }
35  
36      public String getDateToStringFormatForUserInterface() {
37          return dateToStringFormatForUserInterface;
38      }
39  
40      public void setDateToStringFormatForUserInterface(String dateToStringFormatForUserInterface) {
41          this.dateToStringFormatForUserInterface = dateToStringFormatForUserInterface;
42      }
43  
44      public String[] getStringToDateFormats() {
45          return stringToDateFormats;
46      }
47  
48      public void setStringToDateFormats(String[] stringToDateFormats) {
49          this.stringToDateFormats = stringToDateFormats.clone();
50      }
51  
52      public String[] getStringToTimestampFormats() {
53          return stringToTimestampFormats;
54      }
55  
56      public void setStringToTimestampFormats(String[] stringToTimestampFormats) {
57          this.stringToTimestampFormats = stringToTimestampFormats.clone();
58      }
59  
60      public String getTimestampToStringFormatForFileName() {
61          return timestampToStringFormatForFileName;
62      }
63  
64      public void setTimestampToStringFormatForFileName(String timestampToStringFormatForFileName) {
65          this.timestampToStringFormatForFileName = timestampToStringFormatForFileName;
66      }
67  
68      public String getTimestampToStringFormatForUserInterface() {
69          return timestampToStringFormatForUserInterface;
70      }
71  
72      public void setTimestampToStringFormatForUserInterface(String timestampToStringFormatForUserInterface) {
73          this.timestampToStringFormatForUserInterface = timestampToStringFormatForUserInterface;
74      }
75  
76  
77  }