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.Inactivateable;
023    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
024    import org.kuali.rice.kns.util.KualiInteger;
025    
026    /**
027     * This KemidAgreement class provides the documentation used to establish a KEMID.
028     */
029    public class KemidAgreement extends PersistableBusinessObjectBase implements Inactivateable {
030    
031        private String kemid;
032        private KualiInteger agreementId;
033        private String agreementTypeCode;
034        private String agreementStatusCode;
035        private boolean useTransactionRestrictionFromAgreement;
036        private Date agreementStatusDate;
037        private String otherAgreementDocumentation;
038        private String donorIntentFromAgreement;
039        private String comments;
040        private boolean active;
041    
042        private KEMID kemidObjRef;
043        private AgreementType agreementType;
044        private AgreementStatus agreementStatus;
045    
046        /**
047         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
048         */
049        @Override
050        protected LinkedHashMap toStringMapper() {
051            LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
052            m.put(EndowPropertyConstants.KEMID, this.kemid);
053            m.put(EndowPropertyConstants.KEMID_AGRMNT_ID, String.valueOf(agreementId));
054            return m;
055        }
056    
057    
058        /**
059         * @see org.kuali.rice.kns.bo.Inactivateable#isActive()
060         */
061        public boolean isActive() {
062            return active;
063        }
064    
065        /**
066         * @see org.kuali.rice.kns.bo.Inactivateable#setActive(boolean)
067         */
068        public void setActive(boolean active) {
069            this.active = active;
070        }
071    
072    
073        /**
074         * Gets the kemid.
075         * 
076         * @return kemid
077         */
078        public String getKemid() {
079            return kemid;
080        }
081    
082    
083        /**
084         * Sets the kemid.
085         * 
086         * @param kemid
087         */
088        public void setKemid(String kemid) {
089            this.kemid = kemid;
090        }
091    
092    
093        /**
094         * Gets the agreementId.
095         * 
096         * @return agreementId
097         */
098        public KualiInteger getAgreementId() {
099            return agreementId;
100        }
101    
102    
103        /**
104         * Sets the agreementId.
105         * 
106         * @param agreementId
107         */
108        public void setAgreementId(KualiInteger agreementId) {
109            this.agreementId = agreementId;
110        }
111    
112    
113        /**
114         * Gets the agreementTypeCode.
115         * 
116         * @return agreementTypeCode
117         */
118        public String getAgreementTypeCode() {
119            return agreementTypeCode;
120        }
121    
122    
123        /**
124         * Sets the agreementTypeCode.
125         * 
126         * @param agreementTypeCode
127         */
128        public void setAgreementTypeCode(String agreementTypeCode) {
129            this.agreementTypeCode = agreementTypeCode;
130        }
131    
132    
133        /**
134         * Gets the agreementStatusCode.
135         * 
136         * @return agreementStatusCode
137         */
138        public String getAgreementStatusCode() {
139            return agreementStatusCode;
140        }
141    
142    
143        /**
144         * Sets the agreementStatusCode.
145         * 
146         * @param agreementStatusCode
147         */
148        public void setAgreementStatusCode(String agreementStatusCode) {
149            this.agreementStatusCode = agreementStatusCode;
150        }
151    
152    
153        /**
154         * Gets the agreementStatusDate.
155         * 
156         * @return agreementStatusDate
157         */
158        public Date getAgreementStatusDate() {
159            return agreementStatusDate;
160        }
161    
162    
163        /**
164         * Sets the agreementStatusDate.
165         * 
166         * @param agreementStatusDate
167         */
168        public void setAgreementStatusDate(Date agreementStatusDate) {
169            this.agreementStatusDate = agreementStatusDate;
170        }
171    
172    
173        /**
174         * Gets the otherAgreementDocumentation.
175         * 
176         * @return otherAgreementDocumentation
177         */
178        public String getOtherAgreementDocumentation() {
179            return otherAgreementDocumentation;
180        }
181    
182    
183        /**
184         * Sets the otherAgreementDocumentation.
185         * 
186         * @param otherAgreementDocumentation
187         */
188        public void setOtherAgreementDocumentation(String otherAgreementDocumentation) {
189            this.otherAgreementDocumentation = otherAgreementDocumentation;
190        }
191    
192    
193        /**
194         * Gets the donorIntentFromAgreement.
195         * 
196         * @return donorIntentFromAgreement
197         */
198        public String getDonorIntentFromAgreement() {
199            return donorIntentFromAgreement;
200        }
201    
202    
203        /**
204         * Sets the donorIntentFromAgreement.
205         * 
206         * @param donorIntentFromAgreement
207         */
208        public void setDonorIntentFromAgreement(String donorIntentFromAgreement) {
209            this.donorIntentFromAgreement = donorIntentFromAgreement;
210        }
211    
212    
213        /**
214         * Gets the comments.
215         * 
216         * @return comments
217         */
218        public String getComments() {
219            return comments;
220        }
221    
222    
223        /**
224         * Sets the comments.
225         * 
226         * @param comments
227         */
228        public void setComments(String comments) {
229            this.comments = comments;
230        }
231    
232    
233        /**
234         * Gets the kemidObjRef.
235         * 
236         * @return kemidObjRef
237         */
238        public KEMID getKemidObjRef() {
239            return kemidObjRef;
240        }
241    
242    
243        /**
244         * Sets the kemidObjRef.
245         * 
246         * @param kemidObjRef
247         */
248        public void setKemidObjRef(KEMID kemidObjRef) {
249            this.kemidObjRef = kemidObjRef;
250        }
251    
252    
253        /**
254         * Gets the agreementType.
255         * 
256         * @return agreementType
257         */
258        public AgreementType getAgreementType() {
259            return agreementType;
260        }
261    
262    
263        /**
264         * Sets the agreementType.
265         * 
266         * @param agreementType
267         */
268        public void setAgreementType(AgreementType agreementType) {
269            this.agreementType = agreementType;
270        }
271    
272    
273        /**
274         * Gets the agreementStatus.
275         * 
276         * @return agreementStatus
277         */
278        public AgreementStatus getAgreementStatus() {
279            return agreementStatus;
280        }
281    
282    
283        /**
284         * Sets the agreementStatus.
285         * 
286         * @param agreementStatus
287         */
288        public void setAgreementStatus(AgreementStatus agreementStatus) {
289            this.agreementStatus = agreementStatus;
290        }
291    
292        /**
293         * Gets the useTransactionRestrictionFromAgreement.
294         * 
295         * @return useTransactionRestrictionFromAgreement
296         */
297        public boolean isUseTransactionRestrictionFromAgreement() {
298            return useTransactionRestrictionFromAgreement;
299        }
300    
301        /**
302         * Sets the useTransactionRestrictionFromAgreement.
303         * 
304         * @param useTransactionRestrictionFromAgreement
305         */
306        public void setUseTransactionRestrictionFromAgreement(boolean useTransactionRestrictionFromAgreement) {
307            this.useTransactionRestrictionFromAgreement = useTransactionRestrictionFromAgreement;
308        }
309    
310    }