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
017 package org.kuali.kfs.coa.businessobject;
018
019 import java.util.LinkedHashMap;
020
021 import org.kuali.kfs.sys.KFSPropertyConstants;
022 import org.kuali.rice.kns.bo.GlobalBusinessObjectDetailBase;
023
024 /**
025 *
026 */
027 public class ObjectCodeGlobalDetail extends GlobalBusinessObjectDetailBase {
028
029 private Integer universityFiscalYear;
030 private String chartOfAccountsCode;
031 private String financialObjectCode;
032
033 private Chart chartOfAccounts;
034
035 /**
036 * Default constructor.
037 */
038 public ObjectCodeGlobalDetail() {
039
040 }
041
042 /**
043 * Gets the universityFiscalYear attribute.
044 *
045 * @return Returns the universityFiscalYear
046 */
047 public Integer getUniversityFiscalYear() {
048 return universityFiscalYear;
049 }
050
051 /**
052 * Sets the universityFiscalYear attribute.
053 *
054 * @param universityFiscalYear The universityFiscalYear to set.
055 */
056 public void setUniversityFiscalYear(Integer universityFiscalYear) {
057 this.universityFiscalYear = universityFiscalYear;
058 }
059
060
061 /**
062 * Gets the chartOfAccountsCode attribute.
063 *
064 * @return Returns the chartOfAccountsCode
065 */
066 public String getChartOfAccountsCode() {
067 return chartOfAccountsCode;
068 }
069
070 /**
071 * Sets the chartOfAccountsCode attribute.
072 *
073 * @param chartOfAccountsCode The chartOfAccountsCode to set.
074 */
075 public void setChartOfAccountsCode(String chartOfAccountsCode) {
076 this.chartOfAccountsCode = chartOfAccountsCode;
077 }
078
079
080 /**
081 * Gets the chartOfAccounts attribute.
082 *
083 * @return Returns the chartOfAccounts
084 */
085 public Chart getChartOfAccounts() {
086 return chartOfAccounts;
087 }
088
089 /**
090 * Sets the chartOfAccounts attribute.
091 *
092 * @param chartOfAccounts The chartOfAccounts to set.
093 * @deprecated
094 */
095 public void setChartOfAccounts(Chart chartOfAccounts) {
096 this.chartOfAccounts = chartOfAccounts;
097 }
098
099 /**
100 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
101 */
102 protected LinkedHashMap toStringMapper() {
103 LinkedHashMap m = new LinkedHashMap();
104 m.put(KFSPropertyConstants.DOCUMENT_NUMBER, getDocumentNumber());
105 if (this.universityFiscalYear != null) {
106 m.put("universityFiscalYear", this.universityFiscalYear.toString());
107 }
108 m.put("chartOfAccountsCode", this.chartOfAccountsCode);
109 return m;
110 }
111
112 public String getFinancialObjectCode() {
113 return financialObjectCode;
114 }
115
116 public void setFinancialObjectCode(String financialObjectCode) {
117 this.financialObjectCode = financialObjectCode;
118 }
119 }