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.sql.Date;
019 import java.util.LinkedHashMap;
020
021 import org.kuali.kfs.module.endow.EndowPropertyConstants;
022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023 import org.kuali.rice.kns.util.KualiInteger;
024
025 /**
026 * This KemidReportGroup class provides the report group for consolidated reporting to which the KEMID belongs.
027 */
028 public class KemidReportGroup extends PersistableBusinessObjectBase {
029
030 private String kemid;
031 private KualiInteger combineGroupSeq;
032 private String combineGroupCode;
033 private Date dateAdded;
034 private Date dateTerminated;
035
036 private KEMID kemidObjRef;
037 private CombineGroupCode combineGroup;
038
039 /**
040 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
041 */
042 @Override
043 protected LinkedHashMap toStringMapper() {
044 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
045 m.put(EndowPropertyConstants.KEMID, this.kemid);
046 m.put(EndowPropertyConstants.KEMID_REPORT_GRP_SEQ, String.valueOf(combineGroupSeq));
047 m.put(EndowPropertyConstants.KEMID_REPORT_GRP_CD, combineGroupCode);
048 return m;
049 }
050
051 /**
052 * Gets the combineGroup.
053 *
054 * @return combineGroup
055 */
056 public CombineGroupCode getCombineGroup() {
057 return combineGroup;
058 }
059
060 /**
061 * Sets the combineGroup.
062 *
063 * @param combineGroup
064 */
065 public void setCombineGroup(CombineGroupCode combineGroup) {
066 this.combineGroup = combineGroup;
067 }
068
069 /**
070 * Gets the combineGroupCode.
071 *
072 * @return combineGroupCode
073 */
074 public String getCombineGroupCode() {
075 return combineGroupCode;
076 }
077
078 /**
079 * Sets the combineGroupCode.
080 *
081 * @param combineGroupCode
082 */
083 public void setCombineGroupCode(String combineGroupCode) {
084 this.combineGroupCode = combineGroupCode;
085 }
086
087 /**
088 * Gets the combineGroupSeq.
089 *
090 * @return combineGroupSeq
091 */
092 public KualiInteger getCombineGroupSeq() {
093 return combineGroupSeq;
094 }
095
096 /**
097 * Sets the combineGroupSeq.
098 *
099 * @param combineGroupSeq
100 */
101 public void setCombineGroupSeq(KualiInteger combineGroupSeq) {
102 this.combineGroupSeq = combineGroupSeq;
103 }
104
105 /**
106 * Gets the dateAdded.
107 *
108 * @return dateAdded
109 */
110 public Date getDateAdded() {
111 return dateAdded;
112 }
113
114 /**
115 * Sets the dateAdded.
116 *
117 * @param dateAdded
118 */
119 public void setDateAdded(Date dateAdded) {
120 this.dateAdded = dateAdded;
121 }
122
123 /**
124 * Gets the dateTerminated.
125 *
126 * @return dateTerminated
127 */
128 public Date getDateTerminated() {
129 return dateTerminated;
130 }
131
132 /**
133 * Sets the dateTerminated.
134 *
135 * @param dateTerminated
136 */
137 public void setDateTerminated(Date dateTerminated) {
138 this.dateTerminated = dateTerminated;
139 }
140
141 /**
142 * Gets the kemid.
143 *
144 * @return kemid
145 */
146 public String getKemid() {
147 return kemid;
148 }
149
150 /**
151 * Sets the kemid.
152 *
153 * @param kemid
154 */
155 public void setKemid(String kemid) {
156 this.kemid = kemid;
157 }
158
159 /**
160 * Gets the kemidObjRef.
161 *
162 * @return kemidObjRef
163 */
164 public KEMID getKemidObjRef() {
165 return kemidObjRef;
166 }
167
168 /**
169 * Sets the kemidObjRef.
170 *
171 * @param kemidObjRef
172 */
173 public void setKemidObjRef(KEMID kemidObjRef) {
174 this.kemidObjRef = kemidObjRef;
175 }
176
177 }