001: /*
002: * Copyright 2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.gl.bo;
017:
018: import java.sql.Date;
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.Campus;
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.core.util.KualiDecimal;
024: import org.kuali.kfs.KFSPropertyConstants;
025: import org.kuali.module.chart.bo.Chart;
026: import org.kuali.module.chart.bo.Org;
027:
028: /**
029: * This class represents a unique header for use with a CollectorBatch class
030: */
031: public class CollectorHeader extends PersistableBusinessObjectBase {
032:
033: private String chartOfAccountsCode;
034: private String organizationCode;
035: private Date processTransmissionDate;
036: private Integer processBatchSequenceNumber;
037: private Integer processTotalRecordCount;
038: private KualiDecimal processTotalAmount;
039: private String campusCode;
040: private String contactPersonPhoneNumber;
041: private String contactMailingAddress;
042: private String contactDepartmentName;
043:
044: private Org organization;
045: private Chart chartOfAccounts;
046: private Campus campus;
047:
048: /**
049: * Default constructor.
050: */
051: public CollectorHeader() {
052:
053: }
054:
055: /**
056: * Gets the chartOfAccountsCode attribute.
057: *
058: * @return Returns the chartOfAccountsCode
059: */
060: public String getChartOfAccountsCode() {
061: return chartOfAccountsCode;
062: }
063:
064: /**
065: * Sets the chartOfAccountsCode attribute.
066: *
067: * @param chartOfAccountsCode The chartOfAccountsCode to set.
068: */
069: public void setChartOfAccountsCode(String chartOfAccountsCode) {
070: this .chartOfAccountsCode = chartOfAccountsCode;
071: }
072:
073: /**
074: * Gets the organizationCode attribute.
075: *
076: * @return Returns the organizationCode
077: */
078: public String getOrganizationCode() {
079: return organizationCode;
080: }
081:
082: /**
083: * Sets the organizationCode attribute.
084: *
085: * @param organizationCode The organizationCode to set.
086: */
087: public void setOrganizationCode(String organizationCode) {
088: this .organizationCode = organizationCode;
089: }
090:
091: /**
092: * Gets the processTransmissionDate attribute.
093: *
094: * @return Returns the processTransmissionDate
095: */
096: public Date getProcessTransmissionDate() {
097: return processTransmissionDate;
098: }
099:
100: /**
101: * Sets the processTransmissionDate attribute.
102: *
103: * @param processTransmissionDate The processTransmissionDate to set.
104: */
105: public void setProcessTransmissionDate(Date processTransmissionDate) {
106: this .processTransmissionDate = processTransmissionDate;
107: }
108:
109: /**
110: * Gets the processBatchSequenceNumber attribute.
111: *
112: * @return Returns the processBatchSequenceNumber
113: */
114: public Integer getProcessBatchSequenceNumber() {
115: return processBatchSequenceNumber;
116: }
117:
118: /**
119: * Sets the processBatchSequenceNumber attribute.
120: *
121: * @param processBatchSequenceNumber The processBatchSequenceNumber to set.
122: */
123: public void setProcessBatchSequenceNumber(
124: Integer processBatchSequenceNumber) {
125: this .processBatchSequenceNumber = processBatchSequenceNumber;
126: }
127:
128: /**
129: * Gets the processTotalRecordCount attribute.
130: *
131: * @return Returns the processTotalRecordCount
132: */
133: public Integer getProcessTotalRecordCount() {
134: return processTotalRecordCount;
135: }
136:
137: /**
138: * Sets the processTotalRecordCount attribute.
139: *
140: * @param processTotalRecordCount The processTotalRecordCount to set.
141: */
142: public void setProcessTotalRecordCount(
143: Integer processTotalRecordCount) {
144: this .processTotalRecordCount = processTotalRecordCount;
145: }
146:
147: /**
148: * Gets the processTotalAmount attribute.
149: *
150: * @return Returns the processTotalAmount
151: */
152: public KualiDecimal getProcessTotalAmount() {
153: return processTotalAmount;
154: }
155:
156: /**
157: * Sets the processTotalAmount attribute.
158: *
159: * @param processTotalAmount The processTotalAmount to set.
160: */
161: public void setProcessTotalAmount(KualiDecimal processTotalAmount) {
162: this .processTotalAmount = processTotalAmount;
163: }
164:
165: /**
166: * Gets the organization attribute.
167: *
168: * @return Returns the organization
169: */
170: public Org getOrganization() {
171: return organization;
172: }
173:
174: /**
175: * Sets the organization attribute.
176: *
177: * @param organization The organization to set.
178: * @deprecated
179: */
180: public void setOrganization(Org organization) {
181: this .organization = organization;
182: }
183:
184: /**
185: * Gets the chartOfAccounts attribute.
186: *
187: * @return Returns the chartOfAccounts
188: */
189: public Chart getChartOfAccounts() {
190: return chartOfAccounts;
191: }
192:
193: /**
194: * Sets the chartOfAccounts attribute.
195: *
196: * @param chartOfAccounts The chartOfAccounts to set.
197: * @deprecated
198: */
199: public void setChartOfAccounts(Chart chartOfAccounts) {
200: this .chartOfAccounts = chartOfAccounts;
201: }
202:
203: /**
204: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
205: */
206: protected LinkedHashMap toStringMapper() {
207: LinkedHashMap<String, String> m = new LinkedHashMap();
208: m.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE,
209: this .chartOfAccountsCode);
210: m.put(KFSPropertyConstants.ORGANIZATION_CODE,
211: this .organizationCode);
212: if (this .processTransmissionDate != null) {
213: m.put(KFSPropertyConstants.PROCESS_TRANSMISSION_DATE,
214: this .processTransmissionDate.toString());
215: }
216: if (this .processBatchSequenceNumber != null) {
217: m.put(KFSPropertyConstants.PROCESS_BATCH_SEQUENCE_NUMBER,
218: this .processBatchSequenceNumber.toString());
219: }
220: if (this .processTotalRecordCount != null) {
221: m.put(KFSPropertyConstants.PROCESS_TOTAL_RECORD_COUNT,
222: this .processTotalRecordCount.toString());
223: }
224: if (this .processTotalAmount != null) {
225: m.put(KFSPropertyConstants.PROCESS_TOTAL_AMOUNT,
226: this .processTotalAmount.toString());
227: }
228: return m;
229: }
230:
231: /**
232: * Gets the campusCode attribute.
233: *
234: * @return Returns the campusCode.
235: */
236: public String getCampusCode() {
237: return campusCode;
238: }
239:
240: /**
241: * Sets the campusCode attribute value.
242: *
243: * @param campusCode The campusCode to set.
244: */
245: public void setContactCampusCode(String campusCode) {
246: this .campusCode = campusCode;
247: }
248:
249: /**
250: * Gets the departmentName attribute.
251: *
252: * @return Returns the departmentName.
253: */
254: public String getContactDepartmentName() {
255: return contactDepartmentName;
256: }
257:
258: /**
259: * Sets the departmentName attribute value.
260: *
261: * @param departmentName The departmentName to set.
262: */
263: public void setContactDepartmentName(String contactDepartmentName) {
264: this .contactDepartmentName = contactDepartmentName;
265: }
266:
267: /**
268: * Gets the mailingAddress attribute.
269: *
270: * @return Returns the mailingAddress.
271: */
272: public String getContactMailingAddress() {
273: return contactMailingAddress;
274: }
275:
276: /**
277: * Sets the mailingAddress attribute value.
278: *
279: * @param mailingAddress The mailingAddress to set.
280: */
281: public void setContactMailingAddress(String contactMailingAddress) {
282: this .contactMailingAddress = contactMailingAddress;
283: }
284:
285: /**
286: * Gets the phoneNumber attribute.
287: *
288: * @return Returns the phoneNumber.
289: */
290: public String getContactPersonPhoneNumber() {
291: return contactPersonPhoneNumber;
292: }
293:
294: /**
295: * Sets the phoneNumber attribute value.
296: *
297: * @param phoneNumber The phoneNumber to set.
298: */
299: public void setContactPersonPhoneNumber(
300: String contactPersonPhoneNumber) {
301: this .contactPersonPhoneNumber = contactPersonPhoneNumber;
302: }
303:
304: /**
305: * Gets the campus attribute.
306: *
307: * @return Returns the campus.
308: */
309: public Campus getCampus() {
310: return campus;
311: }
312:
313: /**
314: * Sets the campus attribute value.
315: *
316: * @param campus The campus to set.
317: */
318: public void setCampus(Campus campus) {
319: this.campus = campus;
320: }
321: }
|