View Javadoc
1   /*
2    * Copyright 2008 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.ArrayList;
19  import java.util.LinkedHashMap;
20  import java.util.List;
21  
22  import org.kuali.ole.sys.OLEPropertyConstants;
23  import org.kuali.ole.sys.businessobject.FiscalYearBasedBusinessObject;
24  import org.kuali.ole.sys.businessobject.SystemOptions;
25  import org.kuali.ole.sys.context.SpringContext;
26  import org.kuali.ole.sys.service.UniversityDateService;
27  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
28  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
29  
30  public class IndirectCostRecoveryRate extends PersistableBusinessObjectBase implements MutableInactivatable, FiscalYearBasedBusinessObject {
31      
32      private Integer universityFiscalYear;
33      private String financialIcrSeriesIdentifier;
34      private boolean active;
35      private List indirectCostRecoveryRateDetails;
36      
37      private SystemOptions universityFiscal;
38      
39      public IndirectCostRecoveryRate() {
40          universityFiscalYear = SpringContext.getBean(UniversityDateService.class).getCurrentFiscalYear();
41          indirectCostRecoveryRateDetails = new ArrayList<IndirectCostRecoveryRateDetail>();
42      }
43      
44      
45      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
46  
47          LinkedHashMap m = new LinkedHashMap();
48          m.put(OLEPropertyConstants.UNIVERSITY_FISCAL_YEAR, this.universityFiscalYear);
49          m.put(OLEPropertyConstants.FINANCIAL_ICR_SERIES_IDENTIFIER, this.financialIcrSeriesIdentifier);
50  
51          return m;
52      }
53  
54      public Integer getUniversityFiscalYear() {
55          return universityFiscalYear;
56      }
57  
58      public void setUniversityFiscalYear(Integer universityFiscalYear) {
59          this.universityFiscalYear = universityFiscalYear;
60      }
61  
62      public SystemOptions getUniversityFiscal() {
63          return universityFiscal;
64      }
65  
66      public void setUniversityFiscal(SystemOptions universityFiscal) {
67          this.universityFiscal = universityFiscal;
68      }
69  
70      public List getIndirectCostRecoveryRateDetails() {
71          return indirectCostRecoveryRateDetails;
72      }
73  
74      public void setIndirectCostRecoveryRateDetails(List indirectCostRecoveryRateDetails) {
75          this.indirectCostRecoveryRateDetails = indirectCostRecoveryRateDetails;
76      }
77  
78      public String getFinancialIcrSeriesIdentifier() {
79          return financialIcrSeriesIdentifier;
80      }
81  
82      public void setFinancialIcrSeriesIdentifier(String financialIcrSeriesIdentifier) {
83          this.financialIcrSeriesIdentifier = financialIcrSeriesIdentifier;
84      }
85  
86      public boolean isActive() {
87          return active;
88      }
89  
90      public void setActive(boolean active) {
91          this.active = active;
92      }
93      
94  }