View Javadoc
1   /*
2    * Copyright 2005 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.coa.businessobject;
17  
18  import java.util.LinkedHashMap;
19  
20  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  /**
24   * 
25   */
26  public class HigherEducationFunction extends PersistableBusinessObjectBase implements MutableInactivatable {
27  
28      private String financialHigherEdFunctionCd;
29      private String financialHigherEdFunctionNm;
30      private String finUnivBdgtOfficeFunctionCd;
31      private String finAicpaFunctionCode;
32      private String financialFederalFunctionCode;
33      private boolean active;
34  
35      private UniversityBudgetOfficeFunction universityBudgetOfficeFunction;
36      private FederalFunction federalFunction;
37      private AICPAFunction aicpaFunction; // American Institute of Certified Public Accountants
38  
39      /**
40       * Default no-arg constructor.
41       */
42      public HigherEducationFunction() {
43  
44      }
45  
46      /**
47       * Gets the financialHigherEdFunctionCd attribute.
48       * 
49       * @return Returns the financialHigherEdFunctionCd
50       */
51      public String getFinancialHigherEdFunctionCd() {
52          return financialHigherEdFunctionCd;
53      }
54  
55      /**
56       * Sets the financialHigherEdFunctionCd attribute.
57       * 
58       * @param financialHigherEdFunctionCd The financialHigherEdFunctionCd to set.
59       */
60      public void setFinancialHigherEdFunctionCd(String financialHigherEdFunctionCd) {
61          this.financialHigherEdFunctionCd = financialHigherEdFunctionCd;
62      }
63  
64      /**
65       * Gets the financialHigherEdFunctionNm attribute.
66       * 
67       * @return Returns the financialHigherEdFunctionNm
68       */
69      public String getFinancialHigherEdFunctionNm() {
70          return financialHigherEdFunctionNm;
71      }
72  
73      /**
74       * Sets the financialHigherEdFunctionNm attribute.
75       * 
76       * @param financialHigherEdFunctionNm The financialHigherEdFunctionNm to set.
77       */
78      public void setFinancialHigherEdFunctionNm(String financialHigherEdFunctionNm) {
79          this.financialHigherEdFunctionNm = financialHigherEdFunctionNm;
80      }
81  
82      /**
83       * Gets the finUnivBdgtOfficeFunctionCd attribute.
84       * 
85       * @return Returns the finUnivBdgtOfficeFunctionCd
86       */
87      public String getFinUnivBdgtOfficeFunctionCd() {
88          return finUnivBdgtOfficeFunctionCd;
89      }
90  
91      /**
92       * Sets the finUnivBdgtOfficeFunctionCd attribute.
93       * 
94       * @param finUnivBdgtOfficeFunctionCd The finUnivBdgtOfficeFunctionCd to set.
95       */
96      public void setFinUnivBdgtOfficeFunctionCd(String finUnivBdgtOfficeFunctionCd) {
97          this.finUnivBdgtOfficeFunctionCd = finUnivBdgtOfficeFunctionCd;
98      }
99  
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.krad.bo.BusinessObjectBase#toStringMapper()
192      */
193     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
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 }