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.coa.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.rice.kns.bo.Inactivateable;
021 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
022
023 /**
024 *
025 */
026 public class HigherEducationFunction extends PersistableBusinessObjectBase implements Inactivateable {
027
028 private String financialHigherEdFunctionCd;
029 private String financialHigherEdFunctionNm;
030 private String finUnivBdgtOfficeFunctionCd;
031 private String finAicpaFunctionCode;
032 private String financialFederalFunctionCode;
033 private boolean active;
034
035 private UniversityBudgetOfficeFunction universityBudgetOfficeFunction;
036 private FederalFunction federalFunction;
037 private AICPAFunction aicpaFunction; // American Institute of Certified Public Accountants
038
039 /**
040 * Default no-arg constructor.
041 */
042 public HigherEducationFunction() {
043
044 }
045
046 /**
047 * Gets the financialHigherEdFunctionCd attribute.
048 *
049 * @return Returns the financialHigherEdFunctionCd
050 */
051 public String getFinancialHigherEdFunctionCd() {
052 return financialHigherEdFunctionCd;
053 }
054
055 /**
056 * Sets the financialHigherEdFunctionCd attribute.
057 *
058 * @param financialHigherEdFunctionCd The financialHigherEdFunctionCd to set.
059 */
060 public void setFinancialHigherEdFunctionCd(String financialHigherEdFunctionCd) {
061 this.financialHigherEdFunctionCd = financialHigherEdFunctionCd;
062 }
063
064 /**
065 * Gets the financialHigherEdFunctionNm attribute.
066 *
067 * @return Returns the financialHigherEdFunctionNm
068 */
069 public String getFinancialHigherEdFunctionNm() {
070 return financialHigherEdFunctionNm;
071 }
072
073 /**
074 * Sets the financialHigherEdFunctionNm attribute.
075 *
076 * @param financialHigherEdFunctionNm The financialHigherEdFunctionNm to set.
077 */
078 public void setFinancialHigherEdFunctionNm(String financialHigherEdFunctionNm) {
079 this.financialHigherEdFunctionNm = financialHigherEdFunctionNm;
080 }
081
082 /**
083 * Gets the finUnivBdgtOfficeFunctionCd attribute.
084 *
085 * @return Returns the finUnivBdgtOfficeFunctionCd
086 */
087 public String getFinUnivBdgtOfficeFunctionCd() {
088 return finUnivBdgtOfficeFunctionCd;
089 }
090
091 /**
092 * Sets the finUnivBdgtOfficeFunctionCd attribute.
093 *
094 * @param finUnivBdgtOfficeFunctionCd The finUnivBdgtOfficeFunctionCd to set.
095 */
096 public void setFinUnivBdgtOfficeFunctionCd(String finUnivBdgtOfficeFunctionCd) {
097 this.finUnivBdgtOfficeFunctionCd = finUnivBdgtOfficeFunctionCd;
098 }
099
100 /**
101 * Gets the finAicpaFunctionCode attribute.
102 *
103 * @return Returns the finAicpaFunctionCode
104 */
105 public String getFinAicpaFunctionCode() {
106 return finAicpaFunctionCode;
107 }
108
109 /**
110 * Sets the finAicpaFunctionCode attribute.
111 *
112 * @param finAicpaFunctionCode The finAicpaFunctionCode to set.
113 */
114 public void setFinAicpaFunctionCode(String finAicpaFunctionCode) {
115 this.finAicpaFunctionCode = finAicpaFunctionCode;
116 }
117
118 /**
119 * Gets the financialFederalFunctionCode attribute.
120 *
121 * @return Returns the financialFederalFunctionCode
122 */
123 public String getFinancialFederalFunctionCode() {
124 return financialFederalFunctionCode;
125 }
126
127 /**
128 * Sets the financialFederalFunctionCode attribute.
129 *
130 * @param financialFederalFunctionCode The financialFederalFunctionCode to set.
131 */
132 public void setFinancialFederalFunctionCode(String financialFederalFunctionCode) {
133 this.financialFederalFunctionCode = financialFederalFunctionCode;
134 }
135
136 /**
137 * @return Returns the universityBudgetOfficeFunction.
138 */
139 public UniversityBudgetOfficeFunction getUniversityBudgetOfficeFunction() {
140 return universityBudgetOfficeFunction;
141 }
142
143 /**
144 * @param universityBudgetOfficeFunction The universityBudgetOfficeFunction to set.
145 * @deprecated
146 */
147 public void setUniversityBudgetOfficeFunction(UniversityBudgetOfficeFunction universityBudgetOfficeFunction) {
148 this.universityBudgetOfficeFunction = universityBudgetOfficeFunction;
149 }
150
151 /**
152 * @return Returns the federalFunction.
153 */
154 public FederalFunction getFederalFunction() {
155 return federalFunction;
156 }
157
158 /**
159 * @param federalFunction The federalFunction to set.
160 * @deprecated
161 */
162 public void setFederalFunction(FederalFunction federalFunction) {
163 this.federalFunction = federalFunction;
164 }
165
166 /**
167 * @return Returns the aicpaFunction.
168 */
169 public AICPAFunction getAicpaFunction() {
170 return aicpaFunction;
171 }
172
173 /**
174 * @param aicpaFunction The aicpaFunction to set.
175 * @deprecated
176 */
177 public void setAicpaFunction(AICPAFunction aicpaFunction) {
178 this.aicpaFunction = aicpaFunction;
179 }
180
181 /**
182 * @return Returns the code and description in format: xx - xxxxxxxxxxxxxxxx
183 */
184 public String getCodeAndDescription() {
185 String theString = getFinancialHigherEdFunctionCd() + " - " + getFinancialHigherEdFunctionNm();
186 return theString;
187 }
188
189
190 /**
191 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
192 */
193 protected LinkedHashMap toStringMapper() {
194 LinkedHashMap m = new LinkedHashMap();
195 m.put("financialHigherEdFunctionCd", this.financialHigherEdFunctionCd);
196 return m;
197 }
198
199 /**
200 * Gets the active attribute.
201 * @return Returns the active.
202 */
203 public boolean isActive() {
204 return active;
205 }
206
207 /**
208 * Sets the active attribute value.
209 * @param active The active to set.
210 */
211 public void setActive(boolean active) {
212 this.active = active;
213 }
214
215
216 }