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.module.bc.businessobject;
018    
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.kfs.coa.businessobject.SubFundGroup;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    
024    /**
025     * Business Object that represents selected/unselected sub fund group code for a user.
026     */
027    public class BudgetConstructionSubFundPick extends PersistableBusinessObjectBase {
028    
029        private String principalId;
030        private String subFundGroupCode;
031        private Integer reportFlag;
032    
033        private SubFundGroup subFundGroup;
034    
035        /**
036         * Default constructor.
037         */
038        public BudgetConstructionSubFundPick() {
039            reportFlag = new Integer(0);
040        }
041    
042        /**
043         * Gets the principalId attribute.
044         * 
045         * @return Returns the principalId
046         */
047        public String getPrincipalId() {
048            return principalId;
049        }
050    
051        /**
052         * Sets the principalId attribute.
053         * 
054         * @param principalId The principalId to set.
055         */
056        public void setPrincipalId(String principalId) {
057            this.principalId = principalId;
058        }
059    
060    
061        /**
062         * Gets the subFundGroupCode attribute.
063         * 
064         * @return Returns the subFundGroupCode
065         */
066        public String getSubFundGroupCode() {
067            return subFundGroupCode;
068        }
069    
070        /**
071         * Sets the subFundGroupCode attribute.
072         * 
073         * @param subFundGroupCode The subFundGroupCode to set.
074         */
075        public void setSubFundGroupCode(String subFundGroupCode) {
076            this.subFundGroupCode = subFundGroupCode;
077        }
078    
079    
080        /**
081         * Gets the reportFlag attribute.
082         * 
083         * @return Returns the reportFlag
084         */
085        public Integer getReportFlag() {
086            return reportFlag;
087        }
088    
089        /**
090         * Sets the reportFlag attribute.
091         * 
092         * @param reportFlag The reportFlag to set.
093         */
094        public void setReportFlag(Integer reportFlag) {
095            this.reportFlag = reportFlag;
096        }
097    
098        /**
099         * Gets the subFundGroup attribute.
100         * 
101         * @return Returns the subFundGroup.
102         */
103        public SubFundGroup getSubFundGroup() {
104            return subFundGroup;
105        }
106    
107        /**
108         * Sets the subFundGroup attribute value.
109         * 
110         * @param subFundGroup The subFundGroup to set.
111         * @deprecated
112         */
113        public void setSubFundGroup(SubFundGroup subFundGroup) {
114            this.subFundGroup = subFundGroup;
115        }
116    
117        /**
118         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
119         */
120        protected LinkedHashMap toStringMapper() {
121            LinkedHashMap m = new LinkedHashMap();
122            m.put("principalId", this.principalId);
123            m.put("subFundGroupCode", this.subFundGroupCode);
124            return m;
125        }
126    
127    }
128