View Javadoc
1   /*
2    * Copyright 2007 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  
17  package org.kuali.ole.coa.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.ole.sys.OLEPropertyConstants;
22  import org.kuali.rice.krad.bo.GlobalBusinessObjectDetailBase;
23  
24  /**
25   * 
26   */
27  public class ObjectCodeGlobalDetail extends GlobalBusinessObjectDetailBase {
28  
29      private Integer universityFiscalYear;
30      private String chartOfAccountsCode;
31      private String financialObjectCode;
32  
33      private Chart chartOfAccounts;
34  
35      /**
36       * Default constructor.
37       */
38      public ObjectCodeGlobalDetail() {
39  
40      }
41  
42      /**
43       * Gets the universityFiscalYear attribute.
44       * 
45       * @return Returns the universityFiscalYear
46       */
47      public Integer getUniversityFiscalYear() {
48          return universityFiscalYear;
49      }
50  
51      /**
52       * Sets the universityFiscalYear attribute.
53       * 
54       * @param universityFiscalYear The universityFiscalYear to set.
55       */
56      public void setUniversityFiscalYear(Integer universityFiscalYear) {
57          this.universityFiscalYear = universityFiscalYear;
58      }
59  
60  
61      /**
62       * Gets the chartOfAccountsCode attribute.
63       * 
64       * @return Returns the chartOfAccountsCode
65       */
66      public String getChartOfAccountsCode() {
67          return chartOfAccountsCode;
68      }
69  
70      /**
71       * Sets the chartOfAccountsCode attribute.
72       * 
73       * @param chartOfAccountsCode The chartOfAccountsCode to set.
74       */
75      public void setChartOfAccountsCode(String chartOfAccountsCode) {
76          this.chartOfAccountsCode = chartOfAccountsCode;
77      }
78  
79  
80      /**
81       * Gets the chartOfAccounts attribute.
82       * 
83       * @return Returns the chartOfAccounts
84       */
85      public Chart getChartOfAccounts() {
86          return chartOfAccounts;
87      }
88  
89      /**
90       * Sets the chartOfAccounts attribute.
91       * 
92       * @param chartOfAccounts The chartOfAccounts to set.
93       * @deprecated
94       */
95      public void setChartOfAccounts(Chart chartOfAccounts) {
96          this.chartOfAccounts = chartOfAccounts;
97      }
98  
99      /**
100      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
101      */
102     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
103         LinkedHashMap m = new LinkedHashMap();
104         m.put(OLEPropertyConstants.DOCUMENT_NUMBER, getDocumentNumber());
105         if (this.universityFiscalYear != null) {
106             m.put("universityFiscalYear", this.universityFiscalYear.toString());
107         }
108         m.put("chartOfAccountsCode", this.chartOfAccountsCode);
109         return m;
110     }
111 
112     public String getFinancialObjectCode() {
113         return financialObjectCode;
114     }
115 
116     public void setFinancialObjectCode(String financialObjectCode) {
117         this.financialObjectCode = financialObjectCode;
118     }
119 }