View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.module.ec.businessobject;
20  
21  import java.util.HashMap;
22  import java.util.LinkedHashMap;
23  import java.util.Map;
24  
25  import org.kuali.kfs.coa.businessobject.Chart;
26  import org.kuali.kfs.coa.businessobject.Organization;
27  import org.kuali.kfs.module.ec.EffortPropertyConstants;
28  import org.kuali.kfs.sys.KFSPropertyConstants;
29  import org.kuali.kfs.sys.businessobject.SystemOptions;
30  import org.kuali.kfs.sys.context.SpringContext;
31  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
32  import org.kuali.rice.krad.service.BusinessObjectService;
33  
34  public class OutstandingCertificationsByReport extends PersistableBusinessObjectBase {
35  
36      private Integer universityFiscalYear;
37      private String effortCertificationReportNumber;
38      private String chartOfAccountsCode;
39      private String organizationCode;
40      private Integer outstandingCertificationCount;
41  
42      private SystemOptions options;
43      private EffortCertificationReportDefinition effortCertificationReportDefinition;
44      private Chart chart;
45      private Organization organization;
46  
47      /**
48       * Return the chartOfAccountsCode
49       * 
50       * @return
51       */
52      public String getChartOfAccountsCode() {
53          return chartOfAccountsCode;
54      }
55  
56      /**
57       * Sets chartOfAccountsCode
58       * 
59       * @param chartOfAccountsCode
60       */
61      public void setChartOfAccountsCode(String chartOfAccountsCode) {
62          this.chartOfAccountsCode = chartOfAccountsCode;
63      }
64  
65      /**
66       * Gets effortCertificationReportNumber
67       * 
68       * @return
69       */
70      public String getEffortCertificationReportNumber() {
71          return effortCertificationReportNumber;
72      }
73  
74      /**
75       * Sets effortCertificationReportNumber
76       * 
77       * @param effortCertificationReportNumber
78       */
79      public void setEffortCertificationReportNumber(String effortCertificationReportNumber) {
80          this.effortCertificationReportNumber = effortCertificationReportNumber;
81      }
82  
83      /**
84       * Gets organizationCode
85       * 
86       * @return
87       */
88      public String getOrganizationCode() {
89          return organizationCode;
90      }
91  
92      /**
93       * Sets organizationCode
94       * 
95       * @param organizationCode
96       */
97      public void setOrganizationCode(String organizationCode) {
98          this.organizationCode = organizationCode;
99      }
100 
101     /**
102      * Gets outstandingCertificationCount
103      * 
104      * @return
105      */
106     public Integer getOutstandingCertificationCount() {
107         return outstandingCertificationCount;
108     }
109 
110     /**
111      * Sets outstandingCertificationCount
112      * 
113      * @param outstandingCertificationCount
114      */
115     public void setOutstandingCertificationCount(Integer outstandingCertificationCount) {
116         this.outstandingCertificationCount = outstandingCertificationCount;
117     }
118 
119     /**
120      * Gets universityFiscalYear
121      * 
122      * @return
123      */
124     public Integer getUniversityFiscalYear() {
125         return universityFiscalYear;
126     }
127 
128     /**
129      * Sets universityFiscalYear
130      * 
131      * @param universityFiscalYear
132      */
133     public void setUniversityFiscalYear(Integer universityFiscalYear) {
134         this.universityFiscalYear = universityFiscalYear;
135     }
136 
137     /**
138      * Gets the options attribute.
139      * 
140      * @return Returns the options.
141      */
142     public SystemOptions getOptions() {
143         return options;
144     }
145 
146     /**
147      * Sets the options attribute value.
148      * 
149      * @param options The options to set.
150      */
151     public void setOptions(SystemOptions options) {
152         this.options = options;
153     }
154 
155     
156     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
157         LinkedHashMap m = new LinkedHashMap();
158         m.put(KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR, this.universityFiscalYear);
159         m.put(EffortPropertyConstants.EFFORT_CERTIFICATION_REPORT_NUMBER, this.effortCertificationReportNumber);
160         m.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, this.chartOfAccountsCode);
161         m.put(KFSPropertyConstants.ORGANIZATION_CODE, this.organizationCode);
162 
163         return m;
164     }
165 
166     /**
167      * Gets the effort certification report definition
168      * 
169      * @return
170      */
171     public EffortCertificationReportDefinition getEffortCertificationReportDefinition() {
172         return effortCertificationReportDefinition;
173     }
174 
175     /**
176      * Sets effort certification report definition
177      * 
178      * @param effortCertificationReportDefinition
179      */
180     public void setEffortCertificationReportDefinition(EffortCertificationReportDefinition effortCertificationReportDefinition) {
181         this.effortCertificationReportDefinition = effortCertificationReportDefinition;
182     }
183 
184     /**
185      * Gets the organization
186      * 
187      * @return
188      */
189     public Organization getOrganization() {
190         return organization;
191     }
192 
193     /**
194      * Sets organization
195      * 
196      * @param organization
197      */
198     public void setOrganization(Organization organization) {
199         this.organization = organization;
200     }
201 
202     /**
203      * Gets the chart
204      * 
205      * @return
206      */
207     public Chart getChart() {
208         Map objectKeys = new HashMap();
209         objectKeys.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, this.getChartOfAccountsCode());
210 
211         return (Chart) SpringContext.getBean(BusinessObjectService.class).findByPrimaryKey(Chart.class, objectKeys);
212     }
213 
214     /**
215      * Sets the chart
216      * 
217      * @param chart
218      */
219     public void setChart(Chart chart) {
220         this.chart = chart;
221     }
222 
223 }