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 package org.kuali.kfs.module.endow.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.kfs.module.endow.EndowPropertyConstants;
021 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
022 import org.kuali.rice.kns.util.KualiDecimal;
023
024 /**
025 * This EndowmentCorpusValues class provides the relevant values for monitoring the Endowment.
026 */
027 public class EndowmentCorpusValues extends PersistableBusinessObjectBase {
028
029 private String kemid;
030 private KualiDecimal endowmentCorpus;
031 private KualiDecimal currentPrincipalMarketValue;
032 private KualiDecimal priorFYEndCorpusValue;
033 private KualiDecimal priorFYEndPrincipalMarketValue;
034
035 private KEMID kemidObjRef;
036
037 /**
038 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
039 */
040 @Override
041 protected LinkedHashMap toStringMapper() {
042 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
043 m.put(EndowPropertyConstants.KEMID, this.kemid);
044 return m;
045 }
046
047
048 /**
049 * Gets the currentPrincipalMarketValue.
050 *
051 * @return currentPrincipalMarketValue
052 */
053 public KualiDecimal getCurrentPrincipalMarketValue() {
054 return currentPrincipalMarketValue;
055 }
056
057
058 /**
059 * Sets the currentPrincipalMarketValue.
060 *
061 * @param currentPrincipalMarketValue
062 */
063 public void setCurrentPrincipalMarketValue(KualiDecimal currentPrincipalMarketValue) {
064 this.currentPrincipalMarketValue = currentPrincipalMarketValue;
065 }
066
067
068 /**
069 * Gets the endowmentCorpus.
070 *
071 * @return endowmentCorpus
072 */
073 public KualiDecimal getEndowmentCorpus() {
074 return endowmentCorpus;
075 }
076
077
078 /**
079 * Sets the endowmentCorpus.
080 *
081 * @param endowmentCorpus
082 */
083 public void setEndowmentCorpus(KualiDecimal endowmentCorpus) {
084 this.endowmentCorpus = endowmentCorpus;
085 }
086
087
088 /**
089 * Gets the kemid.
090 *
091 * @return kemid
092 */
093 public String getKemid() {
094 return kemid;
095 }
096
097
098 /**
099 * Sets the kemid.
100 *
101 * @param kemid
102 */
103 public void setKemid(String kemid) {
104 this.kemid = kemid;
105 }
106
107
108 /**
109 * Gets the priorFYEndCorpusValue.
110 *
111 * @return priorFYEndCorpusValue
112 */
113 public KualiDecimal getPriorFYEndCorpusValue() {
114 return priorFYEndCorpusValue;
115 }
116
117
118 /**
119 * Sets the priorFYEndCorpusValue.
120 *
121 * @param priorFYEndCorpusValue
122 */
123 public void setPriorFYEndCorpusValue(KualiDecimal priorFYEndCorpusValue) {
124 this.priorFYEndCorpusValue = priorFYEndCorpusValue;
125 }
126
127
128 /**
129 * Gets the priorFYEndCorpusValue.
130 *
131 * @return priorFYEndCorpusValue
132 */
133 public KualiDecimal getPriorFYEndPrincipalMarketValue() {
134 return priorFYEndPrincipalMarketValue;
135 }
136
137
138 /**
139 * Sets the priorFYEndCorpusValue.
140 *
141 * @param priorFYEndPrincipalMarketValue
142 */
143 public void setPriorFYEndPrincipalMarketValue(KualiDecimal priorFYEndPrincipalMarketValue) {
144 this.priorFYEndPrincipalMarketValue = priorFYEndPrincipalMarketValue;
145 }
146
147
148 /**
149 * Gets the kemidObjRef.
150 *
151 * @return kemidObjRef
152 */
153 public KEMID getKemidObjRef() {
154 return kemidObjRef;
155 }
156
157
158 /**
159 * Sets the kemidObjRef.
160 *
161 * @param kemidObjRef
162 */
163 public void setKemidObjRef(KEMID kemidObjRef) {
164 this.kemidObjRef = kemidObjRef;
165 }
166
167
168 }