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.kfs.sys.businessobject.SystemOptions; 023 import org.kuali.rice.kns.bo.GlobalBusinessObjectDetailBase; 024 025 /** 026 * 027 */ 028 public class SubObjectCodeGlobalDetail extends GlobalBusinessObjectDetailBase { 029 030 private String documentNumber; 031 private Integer universityFiscalYear; 032 private String chartOfAccountsCode; 033 private String financialObjectCode; 034 035 private ObjectCode financialObject; 036 private SystemOptions universityFiscal; 037 private Chart chartOfAccounts; 038 039 /** 040 * Default constructor. 041 */ 042 public SubObjectCodeGlobalDetail() { 043 044 } 045 046 /** 047 * Gets the documentNumber attribute. 048 * 049 * @return Returns the documentNumber 050 */ 051 public String getDocumentNumber() { 052 return documentNumber; 053 } 054 055 /** 056 * Sets the documentNumber attribute. 057 * 058 * @param documentNumber The documentNumber to set. 059 */ 060 public void setDocumentNumber(String documentNumber) { 061 this.documentNumber = documentNumber; 062 } 063 064 065 /** 066 * Gets the universityFiscalYear attribute. 067 * 068 * @return Returns the universityFiscalYear 069 */ 070 public Integer getUniversityFiscalYear() { 071 return universityFiscalYear; 072 } 073 074 /** 075 * Sets the universityFiscalYear attribute. 076 * 077 * @param universityFiscalYear The universityFiscalYear to set. 078 */ 079 public void setUniversityFiscalYear(Integer universityFiscalYear) { 080 this.universityFiscalYear = universityFiscalYear; 081 } 082 083 084 /** 085 * Gets the chartOfAccountsCode attribute. 086 * 087 * @return Returns the chartOfAccountsCode 088 */ 089 public String getChartOfAccountsCode() { 090 return chartOfAccountsCode; 091 } 092 093 /** 094 * Sets the chartOfAccountsCode attribute. 095 * 096 * @param chartOfAccountsCode The chartOfAccountsCode to set. 097 */ 098 public void setChartOfAccountsCode(String chartOfAccountsCode) { 099 this.chartOfAccountsCode = chartOfAccountsCode; 100 } 101 102 103 /** 104 * Gets the financialObjectCode attribute. 105 * 106 * @return Returns the financialObjectCode 107 */ 108 public String getFinancialObjectCode() { 109 return financialObjectCode; 110 } 111 112 /** 113 * Sets the financialObjectCode attribute. 114 * 115 * @param financialObjectCode The financialObjectCode to set. 116 */ 117 public void setFinancialObjectCode(String financialObjectCode) { 118 this.financialObjectCode = financialObjectCode; 119 } 120 121 122 /** 123 * Gets the financialObject attribute. 124 * 125 * @return Returns the financialObject 126 */ 127 public ObjectCode getFinancialObject() { 128 return financialObject; 129 } 130 131 /** 132 * Sets the financialObject attribute. 133 * 134 * @param financialObject The financialObject to set. 135 * @deprecated 136 */ 137 public void setFinancialObject(ObjectCode financialObject) { 138 this.financialObject = financialObject; 139 } 140 141 public Chart getChartOfAccounts() { 142 return chartOfAccounts; 143 } 144 145 public void setChartOfAccounts(Chart chartOfAccounts) { 146 this.chartOfAccounts = chartOfAccounts; 147 } 148 149 public SystemOptions getUniversityFiscal() { 150 return universityFiscal; 151 } 152 153 public void setUniversityFiscal(SystemOptions universityFiscal) { 154 this.universityFiscal = universityFiscal; 155 } 156 157 /** 158 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 159 */ 160 protected LinkedHashMap toStringMapper() { 161 LinkedHashMap m = new LinkedHashMap(); 162 m.put(KFSPropertyConstants.DOCUMENT_NUMBER, getDocumentNumber()); 163 if (this.universityFiscalYear != null) { 164 m.put("universityFiscalYear", this.universityFiscalYear.toString()); 165 } 166 m.put("chartOfAccountsCode", this.chartOfAccountsCode); 167 m.put("financialObjectCode", this.financialObjectCode); 168 return m; 169 } 170 }