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