View Javadoc

1   /**
2    * Copyright 2004-2012 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.kfs.coa.businessobject;
17  
18  import java.util.LinkedHashMap;
19  
20  import org.kuali.rice.core.api.mo.common.active.Inactivatable;
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  /**
24   *
25   */
26  public class ObjectCode extends PersistableBusinessObjectBase implements Inactivatable {
27  
28  
29  /*    static {
30          PersistenceStructureServiceImpl.referenceConversionMap.put(ObjectCode.class, ObjectCodeCurrent.class);
31      }*/
32  
33      private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(ObjectCode.class);
34  
35      private static final long serialVersionUID = -965833141452795485L;
36      private Integer universityFiscalYear;
37      private String chartOfAccountsCode;
38      private String financialObjectCode;
39      private String financialObjectCodeName;
40      private String financialObjectCodeShortName;
41      private boolean active;
42      private String financialObjectLevelCode;
43      private transient Chart chartOfAccounts;
44  
45  
46      /**
47       * This method is only for use by the framework
48       */
49      public void setUniversityFiscalYear(Integer i) {
50          this.universityFiscalYear = i;
51      }
52  
53  
54      /**
55       * Gets the financialObjectCode attribute.
56       *
57       * @return Returns the financialObjectCode
58       */
59      public String getFinancialObjectCode() {
60          return financialObjectCode;
61      }
62  
63      /**
64       * Sets the financialObjectCode attribute.
65       *
66       * @param financialObjectCode The financialObjectCode to set.
67       */
68      public void setFinancialObjectCode(String financialObjectCode) {
69          this.financialObjectCode = financialObjectCode;
70      }
71  
72      /**
73       * Gets the financialObjectCodeName attribute.
74       *
75       * @return Returns the financialObjectCodeName
76       */
77      public String getFinancialObjectCodeName() {
78          return financialObjectCodeName;
79      }
80  
81      /**
82       * Sets the financialObjectCodeName attribute.
83       *
84       * @param financialObjectCodeName The financialObjectCodeName to set.
85       */
86      public void setFinancialObjectCodeName(String financialObjectCodeName) {
87          this.financialObjectCodeName = financialObjectCodeName;
88      }
89  
90      /**
91       * Gets the financialObjectCodeShortName attribute.
92       *
93       * @return Returns the financialObjectCodeShortName
94       */
95      public String getFinancialObjectCodeShortName() {
96          return financialObjectCodeShortName;
97      }
98  
99      /**
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 }