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 20 package org.kuali.kfs.module.bc.businessobject; 21 22 import java.util.LinkedHashMap; 23 24 import org.kuali.kfs.coa.businessobject.SubFundGroup; 25 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 26 27 /** 28 * Business Object that represents selected/unselected sub fund group code for a user. 29 */ 30 public class BudgetConstructionSubFundPick extends PersistableBusinessObjectBase { 31 32 private String principalId; 33 private String subFundGroupCode; 34 private Integer reportFlag; 35 36 private SubFundGroup subFundGroup; 37 38 /** 39 * Default constructor. 40 */ 41 public BudgetConstructionSubFundPick() { 42 reportFlag = new Integer(0); 43 } 44 45 /** 46 * Gets the principalId attribute. 47 * 48 * @return Returns the principalId 49 */ 50 public String getPrincipalId() { 51 return principalId; 52 } 53 54 /** 55 * Sets the principalId attribute. 56 * 57 * @param principalId The principalId to set. 58 */ 59 public void setPrincipalId(String principalId) { 60 this.principalId = principalId; 61 } 62 63 64 /** 65 * Gets the subFundGroupCode attribute. 66 * 67 * @return Returns the subFundGroupCode 68 */ 69 public String getSubFundGroupCode() { 70 return subFundGroupCode; 71 } 72 73 /** 74 * Sets the subFundGroupCode attribute. 75 * 76 * @param subFundGroupCode The subFundGroupCode to set. 77 */ 78 public void setSubFundGroupCode(String subFundGroupCode) { 79 this.subFundGroupCode = subFundGroupCode; 80 } 81 82 83 /** 84 * Gets the reportFlag attribute. 85 * 86 * @return Returns the reportFlag 87 */ 88 public Integer getReportFlag() { 89 return reportFlag; 90 } 91 92 /** 93 * Sets the reportFlag attribute. 94 * 95 * @param reportFlag The reportFlag to set. 96 */ 97 public void setReportFlag(Integer reportFlag) { 98 this.reportFlag = reportFlag; 99 } 100 101 /** 102 * Gets the subFundGroup attribute. 103 * 104 * @return Returns the subFundGroup. 105 */ 106 public SubFundGroup getSubFundGroup() { 107 return subFundGroup; 108 } 109 110 /** 111 * Sets the subFundGroup attribute value. 112 * 113 * @param subFundGroup The subFundGroup to set. 114 * @deprecated 115 */ 116 public void setSubFundGroup(SubFundGroup subFundGroup) { 117 this.subFundGroup = subFundGroup; 118 } 119 120 /** 121 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() 122 */ 123 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 124 LinkedHashMap m = new LinkedHashMap(); 125 m.put("principalId", this.principalId); 126 m.put("subFundGroupCode", this.subFundGroupCode); 127 return m; 128 } 129 130 } 131