001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.kuali.kfs.coa.businessobject;
018    
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.rice.kns.bo.Inactivateable;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    
024    /**
025     * 
026     */
027    public class SubFundGroup extends PersistableBusinessObjectBase implements Inactivateable {
028    
029        /**
030         * Default no-arg constructor.
031         */
032        public SubFundGroup() {
033    
034        }
035    
036        private static final long serialVersionUID = 3304324942061886270L;
037    
038        private String subFundGroupCode;
039        private String subFundGroupDescription;
040        private boolean active;
041        private String subFundGroupTypeCode;
042        private String financialReportingSortCode;
043        private boolean subFundGroupWagesIndicator;
044        private String fundGroupCode;
045        private String fundGroupBudgetAdjustmentRestrictionLevelCode;
046        private String accountRestrictedStatusCode;
047    
048        private FundGroup fundGroup;
049        private SubFundGroupType subFundGroupType;
050        private RestrictedStatus accountRestrictedStatus;
051    
052        /**
053         * Gets the subFundGroupCode attribute.
054         * 
055         * @return Returns the subFundGroupCode
056         */
057        public String getSubFundGroupCode() {
058            return subFundGroupCode;
059        }
060    
061        /**
062         * Sets the subFundGroupCode attribute.
063         * 
064         * @param subFundGroupCode The subFundGroupCode to set.
065         */
066        public void setSubFundGroupCode(String subFundGroupCode) {
067            this.subFundGroupCode = subFundGroupCode;
068        }
069    
070        /**
071         * Gets the subFundGroupDescription attribute.
072         * 
073         * @return Returns the subFundGroupDescription
074         */
075        public String getSubFundGroupDescription() {
076            return subFundGroupDescription;
077        }
078    
079        /**
080         * Sets the subFundGroupDescription attribute.
081         * 
082         * @param subFundGroupDescription The subFundGroupDescription to set.
083         */
084        public void setSubFundGroupDescription(String subFundGroupDescription) {
085            this.subFundGroupDescription = subFundGroupDescription;
086        }
087    
088        /**
089         * Gets the _active_ attribute.
090         * 
091         * @return Returns the _active_
092         */
093        public boolean isActive() {
094            return active;
095        }
096    
097        /**
098         * Sets the _active_ attribute.
099         * 
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.kns.bo.BusinessObjectBase#toStringMapper()
275         */
276        protected LinkedHashMap toStringMapper() {
277            LinkedHashMap m = new LinkedHashMap();
278    
279            m.put("subFundGroupCode", this.subFundGroupCode);
280    
281    
282            return m;
283        }
284    
285    }