001 /** 002 * Copyright 2004-2013 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.coa.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.rice.core.api.mo.common.active.Inactivatable; 021 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 022 023 /** 024 * 025 */ 026 public class ObjectCode extends PersistableBusinessObjectBase implements Inactivatable { 027 028 029 /* static { 030 PersistenceStructureServiceImpl.referenceConversionMap.put(ObjectCode.class, ObjectCodeCurrent.class); 031 }*/ 032 033 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(ObjectCode.class); 034 035 private static final long serialVersionUID = -965833141452795485L; 036 private Integer universityFiscalYear; 037 private String chartOfAccountsCode; 038 private String financialObjectCode; 039 private String financialObjectCodeName; 040 private String financialObjectCodeShortName; 041 private boolean active; 042 private String financialObjectLevelCode; 043 private transient Chart chartOfAccounts; 044 045 046 /** 047 * This method is only for use by the framework 048 */ 049 public void setUniversityFiscalYear(Integer i) { 050 this.universityFiscalYear = i; 051 } 052 053 054 /** 055 * Gets the financialObjectCode attribute. 056 * 057 * @return Returns the financialObjectCode 058 */ 059 public String getFinancialObjectCode() { 060 return financialObjectCode; 061 } 062 063 /** 064 * Sets the financialObjectCode attribute. 065 * 066 * @param financialObjectCode The financialObjectCode to set. 067 */ 068 public void setFinancialObjectCode(String financialObjectCode) { 069 this.financialObjectCode = financialObjectCode; 070 } 071 072 /** 073 * Gets the financialObjectCodeName attribute. 074 * 075 * @return Returns the financialObjectCodeName 076 */ 077 public String getFinancialObjectCodeName() { 078 return financialObjectCodeName; 079 } 080 081 /** 082 * Sets the financialObjectCodeName attribute. 083 * 084 * @param financialObjectCodeName The financialObjectCodeName to set. 085 */ 086 public void setFinancialObjectCodeName(String financialObjectCodeName) { 087 this.financialObjectCodeName = financialObjectCodeName; 088 } 089 090 /** 091 * Gets the financialObjectCodeShortName attribute. 092 * 093 * @return Returns the financialObjectCodeShortName 094 */ 095 public String getFinancialObjectCodeShortName() { 096 return financialObjectCodeShortName; 097 } 098 099 /** 100 * Sets the financialObjectCodeShortName attribute. 101 * 102 * @param financialObjectCodeShortName The financialObjectCodeShortName to set. 103 */ 104 public void setFinancialObjectCodeShortName(String financialObjectCodeShortName) { 105 this.financialObjectCodeShortName = financialObjectCodeShortName; 106 } 107 108 /** 109 * Gets the financialObjectActiveCode attribute. 110 * 111 * @return Returns the financialObjectActiveCode 112 */ 113 public boolean isFinancialObjectActiveCode() { 114 return active; 115 } 116 117 /** 118 * Sets the financialObjectActiveCode attribute. 119 * 120 */ 121 public void setFinancialObjectActiveCode(boolean active) { 122 this.active = active; 123 } 124 125 /** 126 * Gets the financialBudgetAggregationCd attribute. 127 * 128 * @return Returns the financialBudgetAggregationCd 129 */ 130 /* 131 * public BudgetAggregationCode getFinancialBudgetAggregation() { return financialBudgetAggregation; } 132 */ 133 134 /** 135 * Sets the financialBudgetAggregationCd attribute. 136 * 137 * @param financialBudgetAggregationCd The financialBudgetAggregationCd to set. 138 * @deprecated 139 */ 140 /* 141 * public void setFinancialBudgetAggregation(BudgetAggregationCode financialBudgetAggregationCd) { 142 * this.financialBudgetAggregation = financialBudgetAggregationCd; } 143 */ 144 145 146 /** 147 * Gets the chartOfAccounts attribute. 148 * 149 * @return Returns the chartOfAccounts 150 */ 151 public Chart getChartOfAccounts() { 152 return chartOfAccounts; 153 } 154 155 /** 156 * Sets the chartOfAccounts attribute. 157 * 158 * @param chartOfAccounts The chartOfAccounts to set. 159 * @deprecated 160 */ 161 public void setChartOfAccounts(Chart chartOfAccounts) { 162 this.chartOfAccounts = chartOfAccounts; 163 } 164 165 /** 166 */ 167 public void setChartOfAccountsCode(String string) { 168 this.chartOfAccountsCode = string; 169 } 170 171 /** 172 * 173 */ 174 public String getChartOfAccountsCode() { 175 return this.chartOfAccountsCode; 176 } 177 178 /** 179 * 180 */ 181 public Integer getUniversityFiscalYear() { 182 return this.universityFiscalYear; 183 } 184 185 /** 186 * @return Returns the financialObjectLevelCode. 187 */ 188 public String getFinancialObjectLevelCode() { 189 return financialObjectLevelCode; 190 } 191 192 /** 193 * @param financialObjectLevelCode The financialObjectLevelCode to set. 194 */ 195 public void setFinancialObjectLevelCode(String financialObjectLevelCode) { 196 this.financialObjectLevelCode = financialObjectLevelCode; 197 } 198 199 200 /** 201 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 202 */ 203 protected LinkedHashMap toStringMapper() { 204 205 LinkedHashMap m = new LinkedHashMap(); 206 m.put("chartOfAccountsCode", this.chartOfAccountsCode); 207 m.put("financialObjectCode", this.financialObjectCode); 208 209 return m; 210 } 211 212 public boolean isActive() { 213 return this.active; 214 } 215 216 public void setActive(boolean a) { 217 this.active = a; 218 } 219 220 public void setCode(String code) { 221 this.chartOfAccountsCode = code; 222 } 223 224 public void setName(String name) { 225 this.financialObjectCodeName = name; 226 } 227 228 public String getCode() { 229 return this.financialObjectCode; 230 } 231 232 public String getName() { 233 return this.financialObjectCodeName; 234 } 235 236 }