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  
17  package org.kuali.ole.coa.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  /**
25   * 
26   */
27  public class SubFundGroup extends PersistableBusinessObjectBase implements MutableInactivatable {
28  
29      /**
30       * Default no-arg constructor.
31       */
32      public SubFundGroup() {
33  
34      }
35  
36      private static final long serialVersionUID = 3304324942061886270L;
37  
38      private String subFundGroupCode;
39      private String subFundGroupDescription;
40      private boolean active;
41      private String subFundGroupTypeCode;
42      private String financialReportingSortCode;
43      private boolean subFundGroupWagesIndicator;
44      private String fundGroupCode;
45      private String fundGroupBudgetAdjustmentRestrictionLevelCode;
46      private String accountRestrictedStatusCode;
47  
48      private FundGroup fundGroup;
49      private SubFundGroupType subFundGroupType;
50      private RestrictedStatus accountRestrictedStatus;
51  
52      /**
53       * Gets the subFundGroupCode attribute.
54       * 
55       * @return Returns the subFundGroupCode
56       */
57      public String getSubFundGroupCode() {
58          return subFundGroupCode;
59      }
60  
61      /**
62       * Sets the subFundGroupCode attribute.
63       * 
64       * @param subFundGroupCode The subFundGroupCode to set.
65       */
66      public void setSubFundGroupCode(String subFundGroupCode) {
67          this.subFundGroupCode = subFundGroupCode;
68      }
69  
70      /**
71       * Gets the subFundGroupDescription attribute.
72       * 
73       * @return Returns the subFundGroupDescription
74       */
75      public String getSubFundGroupDescription() {
76          return subFundGroupDescription;
77      }
78  
79      /**
80       * Sets the subFundGroupDescription attribute.
81       * 
82       * @param subFundGroupDescription The subFundGroupDescription to set.
83       */
84      public void setSubFundGroupDescription(String subFundGroupDescription) {
85          this.subFundGroupDescription = subFundGroupDescription;
86      }
87  
88      /**
89       * Gets the _active_ attribute.
90       * 
91       * @return Returns the _active_
92       */
93      public boolean isActive() {
94          return active;
95      }
96  
97      /**
98       * Sets the _active_ attribute.
99       * 
100      * @param _active_ The _active_ to set.
101      */
102     public void setActive(boolean active) {
103         this.active = active;
104     }
105 
106     /**
107      * Gets the subFundGroupTypeCode attribute.
108      * 
109      * @return Returns the subFundGroupTypeCode
110      */
111     public String getSubFundGroupTypeCode() {
112         return subFundGroupTypeCode;
113     }
114 
115     /**
116      * Sets the subFundGroupTypeCode attribute.
117      * 
118      * @param subFundGroupTypeCode The subFundGroupTypeCode to set.
119      */
120     public void setSubFundGroupTypeCode(String subFundGroupTypeCode) {
121         this.subFundGroupTypeCode = subFundGroupTypeCode;
122     }
123 
124     /**
125      * Gets the financialReportingSortCode attribute.
126      * 
127      * @return Returns the financialReportingSortCode
128      */
129     public String getFinancialReportingSortCode() {
130         return financialReportingSortCode;
131     }
132 
133     /**
134      * Sets the financialReportingSortCode attribute.
135      * 
136      * @param financialReportingSortCode The financialReportingSortCode to set.
137      */
138     public void setFinancialReportingSortCode(String financialReportingSortCode) {
139         this.financialReportingSortCode = financialReportingSortCode;
140     }
141 
142     /**
143      * Gets the subFundGroupWagesIndicator attribute.
144      * 
145      * @return Returns the subFundGroupWagesIndicator
146      */
147     public boolean isSubFundGroupWagesIndicator() {
148         return subFundGroupWagesIndicator;
149     }
150 
151     /**
152      * Sets the subFundGroupWagesIndicator attribute.
153      * 
154      * @param subFundGroupWagesIndicator The subFundGroupWagesIndicator to set.
155      */
156     public void setSubFundGroupWagesIndicator(boolean subFundGroupWagesIndicator) {
157         this.subFundGroupWagesIndicator = subFundGroupWagesIndicator;
158     }
159 
160     /**
161      * @return Returns the fundGroup.
162      */
163     public FundGroup getFundGroup() {
164         return fundGroup;
165     }
166 
167 
168     /**
169      * @param fundGroup The fundGroup to set.
170      */
171     public void setFundGroup(FundGroup fundGroup) {
172         this.fundGroup = fundGroup;
173     }
174 
175 
176     /**
177      * @return Returns the fundGroupCode.
178      */
179     public String getFundGroupCode() {
180         return fundGroupCode;
181     }
182 
183     /**
184      * @param fundGroupCode The fundGroupCode to set.
185      */
186     public void setFundGroupCode(String fundGroupCode) {
187         this.fundGroupCode = fundGroupCode;
188     }
189 
190     /**
191      * Gets the fundGroupBudgetAdjustmentRestrictionLevelCode attribute.
192      * 
193      * @return Returns the fundGroupBudgetAdjustmentRestrictionLevelCode.
194      */
195     public String getFundGroupBudgetAdjustmentRestrictionLevelCode() {
196         return fundGroupBudgetAdjustmentRestrictionLevelCode;
197     }
198 
199     /**
200      * Sets the fundGroupBudgetAdjustmentRestrictionLevelCode attribute value.
201      * 
202      * @param fundGroupBudgetAdjustmentRestrictionLevelCode The fundGroupBudgetAdjustmentRestrictionLevelCode to set.
203      */
204     public void setFundGroupBudgetAdjustmentRestrictionLevelCode(String fundGroupBudgetAdjustmentRestrictionLevelCode) {
205         this.fundGroupBudgetAdjustmentRestrictionLevelCode = fundGroupBudgetAdjustmentRestrictionLevelCode;
206     }
207 
208     /**
209      * Gets the accountRestrictedStatusCode attribute.
210      * 
211      * @return Returns the accountRestrictedStatusCode.
212      */
213     public String getAccountRestrictedStatusCode() {
214         return accountRestrictedStatusCode;
215     }
216 
217     /**
218      * Sets the accountRestrictedStatusCode attribute value.
219      * 
220      * @param accountRestrictedStatusCode The accountRestrictedStatusCode to set.
221      */
222     public void setAccountRestrictedStatusCode(String accountRestrictedStatusCode) {
223         this.accountRestrictedStatusCode = accountRestrictedStatusCode;
224     }
225 
226     /**
227      * Gets the subFundGroupType attribute.
228      * 
229      * @return Returns the subFundGroupType.
230      */
231     public SubFundGroupType getSubFundGroupType() {
232         return subFundGroupType;
233     }
234 
235     /**
236      * Sets the subFundGroupType attribute value.
237      * 
238      * @param subFundGroupType The subFundGroupType to set.
239      * @deprecated
240      */
241     public void setSubFundGroupType(SubFundGroupType subFundGroupType) {
242         this.subFundGroupType = subFundGroupType;
243     }
244 
245 
246     /**
247      * Gets the accountRestrictedStatus attribute.
248      * 
249      * @return Returns the accountRestrictedStatus.
250      */
251     public RestrictedStatus getAccountRestrictedStatus() {
252         return accountRestrictedStatus;
253     }
254 
255     /**
256      * Sets the accountRestrictedStatus attribute value.
257      * 
258      * @param accountRestrictedStatus The accountRestrictedStatus to set.
259      */
260     public void setAccountRestrictedStatus(RestrictedStatus accountRestrictedStatus) {
261         this.accountRestrictedStatus = accountRestrictedStatus;
262     }
263 
264     /**
265      * @return Returns the code and description in format: xx - xxxxxxxxxxxxxxxx
266      */
267     public String getCodeAndDescription() {
268         String theString = getSubFundGroupCode() + " - " + getSubFundGroupDescription();
269         return theString;
270     }
271 
272 
273     /**
274      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
275      */
276     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
277         LinkedHashMap m = new LinkedHashMap();
278 
279         m.put("subFundGroupCode", this.subFundGroupCode);
280 
281 
282         return m;
283     }
284 
285 }