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 KemidSpecialInstruction class provides the various special instructions coded by the organization that apply to the KEMID.
027 */
028 public class KemidSpecialInstruction extends PersistableBusinessObjectBase {
029
030 private String kemid;
031 private KualiInteger instructionSeq;
032 private String agreementSpecialInstructionCode;
033 private String comments;
034 private Date instructionStartDate;
035 private Date instructionEndDate;
036
037 private KEMID kemidObjRef;
038 private AgreementSpecialInstruction agreementSpecialInstruction;
039
040 /**
041 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
042 */
043 @Override
044 protected LinkedHashMap toStringMapper() {
045 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
046 m.put(EndowPropertyConstants.KEMID, this.kemid);
047 m.put(EndowPropertyConstants.KEMID_SPEC_INSTR_SEQ, String.valueOf(instructionSeq));
048 m.put(EndowPropertyConstants.KEMID_SPEC_INSTR_CD, String.valueOf(agreementSpecialInstructionCode));
049 return m;
050 }
051
052 /**
053 * Gets the agreementSpecialInstruction.
054 *
055 * @return agreementSpecialInstruction
056 */
057 public AgreementSpecialInstruction getAgreementSpecialInstruction() {
058 return agreementSpecialInstruction;
059 }
060
061 /**
062 * Sets the agreementSpecialInstruction.
063 *
064 * @param agreementSpecialInstruction
065 */
066 public void setAgreementSpecialInstruction(AgreementSpecialInstruction agreementSpecialInstruction) {
067 this.agreementSpecialInstruction = agreementSpecialInstruction;
068 }
069
070 /**
071 * Gets the agreementSpecialInstructionCode.
072 *
073 * @return agreementSpecialInstructionCode
074 */
075 public String getAgreementSpecialInstructionCode() {
076 return agreementSpecialInstructionCode;
077 }
078
079 /**
080 * Sets the agreementSpecialInstructionCode.
081 *
082 * @param agreementSpecialInstructionCode
083 */
084 public void setAgreementSpecialInstructionCode(String agreementSpecialInstructionCode) {
085 this.agreementSpecialInstructionCode = agreementSpecialInstructionCode;
086 }
087
088 /**
089 * Gets the comments.
090 *
091 * @return comments
092 */
093 public String getComments() {
094 return comments;
095 }
096
097 /**
098 * Sets the comments.
099 *
100 * @param comments
101 */
102 public void setComments(String comments) {
103 this.comments = comments;
104 }
105
106 /**
107 * Gets the instructionEndDate.
108 *
109 * @return instructionEndDate
110 */
111 public Date getInstructionEndDate() {
112 return instructionEndDate;
113 }
114
115 /**
116 * Sets the instructionEndDate.
117 *
118 * @param instructionEndDate
119 */
120 public void setInstructionEndDate(Date instructionEndDate) {
121 this.instructionEndDate = instructionEndDate;
122 }
123
124 /**
125 * Gets the instructionSeq.
126 *
127 * @return instructionSeq
128 */
129 public KualiInteger getInstructionSeq() {
130 return instructionSeq;
131 }
132
133 /**
134 * Sets the instructionSeq.
135 *
136 * @param instructionSeq
137 */
138 public void setInstructionSeq(KualiInteger instructionSeq) {
139 this.instructionSeq = instructionSeq;
140 }
141
142 /**
143 * Gets the instructionStartDate.
144 *
145 * @return instructionStartDate
146 */
147 public Date getInstructionStartDate() {
148 return instructionStartDate;
149 }
150
151 /**
152 * Sets the instructionStartDate.
153 *
154 * @param instructionStartDate
155 */
156 public void setInstructionStartDate(Date instructionStartDate) {
157 this.instructionStartDate = instructionStartDate;
158 }
159
160 /**
161 * Gets the kemid.
162 *
163 * @return kemid
164 */
165 public String getKemid() {
166 return kemid;
167 }
168
169 /**
170 * Sets the kemid.
171 *
172 * @param kemid
173 */
174 public void setKemid(String kemid) {
175 this.kemid = kemid;
176 }
177
178 /**
179 * Gets the kemidObjRef.
180 *
181 * @return kemidObjRef
182 */
183 public KEMID getKemidObjRef() {
184 return kemidObjRef;
185 }
186
187 /**
188 * Sets the kemidObjRef.
189 *
190 * @param kemidObjRef
191 */
192 public void setKemidObjRef(KEMID kemidObjRef) {
193 this.kemidObjRef = kemidObjRef;
194 }
195
196 }