001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.kfs.sys.businessobject;
017
018 import java.sql.Date;
019 import java.util.LinkedHashMap;
020
021 import org.kuali.kfs.coa.businessobject.AccountingPeriod;
022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023
024 /**
025 * Represents a specific university date
026 *
027 */
028 public class UniversityDate extends PersistableBusinessObjectBase {
029 static final long serialVersionUID = 2587833750168955556L;
030
031 private Date universityDate;
032 private Integer universityFiscalYear;
033 private String universityFiscalAccountingPeriod;
034
035 private AccountingPeriod accountingPeriod;
036 private SystemOptions options;
037
038 /*
039 * (non-Javadoc)
040 *
041 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
042 */
043 protected LinkedHashMap toStringMapper() {
044 LinkedHashMap map = new LinkedHashMap();
045 map.put("universityDate", getUniversityDate());
046 return map;
047 }
048
049 /**
050 * @return Returns the universityDate.
051 */
052 public Date getUniversityDate() {
053 return universityDate;
054 }
055
056 /**
057 * @param universityDate The universityDate to set.
058 */
059 public void setUniversityDate(Date universityDate) {
060 this.universityDate = universityDate;
061 }
062
063 /**
064 * @return Returns the universityFiscalAccountingPeriod.
065 */
066 public String getUniversityFiscalAccountingPeriod() {
067 return universityFiscalAccountingPeriod;
068 }
069
070 /**
071 * @param universityFiscalAccountingPeriod The universityFiscalAccountingPeriod to set.
072 */
073 public void setUniversityFiscalAccountingPeriod(String universityFiscalAccountingPeriod) {
074 this.universityFiscalAccountingPeriod = universityFiscalAccountingPeriod;
075 }
076
077 /**
078 * @return Returns the universityFiscalYear.
079 */
080 public Integer getUniversityFiscalYear() {
081 return universityFiscalYear;
082 }
083
084 /**
085 * @param universityFiscalYear The universityFiscalYear to set.
086 */
087 public void setUniversityFiscalYear(Integer universityFiscalYear) {
088 this.universityFiscalYear = universityFiscalYear;
089 }
090
091 /**
092 * @return Returns the accountingPeriod.
093 */
094 public AccountingPeriod getAccountingPeriod() {
095 return accountingPeriod;
096 }
097
098 /**
099 * @param accountingPeriod The accountingPeriod to set.
100 * @deprecated
101 */
102 public void setAccountingPeriod(AccountingPeriod accountingPeriod) {
103 this.accountingPeriod = accountingPeriod;
104 }
105
106 /**
107 * Gets the options attribute.
108 *
109 * @return Returns the options.
110 */
111 public SystemOptions getOptions() {
112 return options;
113 }
114
115 /**
116 * Sets the options attribute value.
117 *
118 * @param options The options to set.
119 * @deprecated
120 */
121 public void setOptions(SystemOptions options) {
122 this.options = options;
123 }
124
125 }