001: /*
002: * Copyright 2006-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:
017: package org.kuali.module.kra.routingform.bo;
018:
019: import java.sql.Date;
020: import java.util.LinkedHashMap;
021: import java.util.List;
022:
023: import org.kuali.core.bo.PersistableBusinessObjectBase;
024: import org.kuali.core.util.TypedArrayList;
025: import org.kuali.kfs.KFSPropertyConstants;
026: import org.kuali.module.cg.bo.Agency;
027:
028: /**
029: *
030: */
031: public class RoutingFormAgency extends PersistableBusinessObjectBase {
032:
033: private String documentNumber;
034: private String agencyAddressDescription;
035: private String agencyContactName;
036: private String agencyCountryCode;
037: private String agencyCityName;
038: private boolean agencyDiskAccompanyIndicator;
039: private boolean agencyElectronicSubmissionIndicator;
040: private String agencyLine1Address;
041: private String agencyLine2Address;
042: private String agencyLine3Address;
043: private String agencyLine4Address;
044: private String agencyLine5Address;
045: private String agencyLine6Address;
046: private String agencyLine7Address;
047: private String agencyLine8Address;
048: private String agencyNumber;
049: private String agencyShippingInstructionsDescription;
050: private String agencyStateCode;
051: private String agencyZipCode;
052: private String routingFormDueDateTypeCode;
053: private Date routingFormDueDate;
054: private String routingFormDueTime;
055: private String routingFormRequiredCopyText;
056: private Date routingFormSubmitDate;
057:
058: private List<RoutingFormDueDateType> routingFormDueDateTypes;
059: private Agency agency;
060: private DueDateType dueDateType;
061:
062: /**
063: * Default constructor.
064: */
065: public RoutingFormAgency() {
066: routingFormDueDateTypes = new TypedArrayList(
067: RoutingFormDueDateType.class);
068: }
069:
070: /**
071: * Gets the documentNumber attribute.
072: *
073: * @return Returns the documentNumber
074: */
075: public String getDocumentNumber() {
076: return documentNumber;
077: }
078:
079: /**
080: * Sets the documentNumber attribute.
081: *
082: * @param documentNumber The documentNumber to set.
083: */
084: public void setDocumentNumber(String documentNumber) {
085: this .documentNumber = documentNumber;
086: }
087:
088: /**
089: * Gets the agencyAddressDescription attribute.
090: *
091: * @return Returns the agencyAddressDescription
092: */
093: public String getAgencyAddressDescription() {
094: return agencyAddressDescription;
095: }
096:
097: /**
098: * Sets the agencyAddressDescription attribute.
099: *
100: * @param agencyAddressDescription The agencyAddressDescription to set.
101: */
102: public void setAgencyAddressDescription(
103: String agencyAddressDescription) {
104: this .agencyAddressDescription = agencyAddressDescription;
105: }
106:
107: /**
108: * Gets the agencyContactName attribute.
109: *
110: * @return Returns the agencyContactName
111: */
112: public String getAgencyContactName() {
113: return agencyContactName;
114: }
115:
116: /**
117: * Sets the agencyContactName attribute.
118: *
119: * @param agencyContactName The agencyContactName to set.
120: */
121: public void setAgencyContactName(String agencyContactName) {
122: this .agencyContactName = agencyContactName;
123: }
124:
125: /**
126: * Gets the agencyCountryCode attribute.
127: *
128: * @return Returns the agencyCountryCode
129: */
130: public String getAgencyCountryCode() {
131: return agencyCountryCode;
132: }
133:
134: /**
135: * Sets the agencyCountryCode attribute.
136: *
137: * @param agencyCountryCode The agencyCountryCode to set.
138: */
139: public void setAgencyCountryCode(String agencyCountryCode) {
140: this .agencyCountryCode = agencyCountryCode;
141: }
142:
143: /**
144: * Gets the agencyCityName attribute.
145: *
146: * @return Returns the agencyCityName
147: */
148: public String getAgencyCityName() {
149: return agencyCityName;
150: }
151:
152: /**
153: * Sets the agencyCityName attribute.
154: *
155: * @param agencyCityName The agencyCityName to set.
156: */
157: public void setAgencyCityName(String agencyCityName) {
158: this .agencyCityName = agencyCityName;
159: }
160:
161: /**
162: * Gets the agencyDiskAccompanyIndicator attribute.
163: *
164: * @return Returns the agencyDiskAccompanyIndicator
165: */
166: public boolean getAgencyDiskAccompanyIndicator() {
167: return agencyDiskAccompanyIndicator;
168: }
169:
170: /**
171: * Sets the agencyDiskAccompanyIndicator attribute.
172: *
173: * @param agencyDiskAccompanyIndicator The agencyDiskAccompanyIndicator to set.
174: */
175: public void setAgencyDiskAccompanyIndicator(
176: boolean agencyDiskAccompanyIndicator) {
177: this .agencyDiskAccompanyIndicator = agencyDiskAccompanyIndicator;
178: }
179:
180: /**
181: * Gets the agencyElectronicSubmissionIndicator attribute.
182: *
183: * @return Returns the agencyElectronicSubmissionIndicator
184: */
185: public boolean getAgencyElectronicSubmissionIndicator() {
186: return agencyElectronicSubmissionIndicator;
187: }
188:
189: /**
190: * Sets the agencyElectronicSubmissionIndicator attribute.
191: *
192: * @param agencyElectronicSubmissionIndicator The agencyElectronicSubmissionIndicator to set.
193: */
194: public void setAgencyElectronicSubmissionIndicator(
195: boolean agencyElectronicSubmissionIndicator) {
196: this .agencyElectronicSubmissionIndicator = agencyElectronicSubmissionIndicator;
197: }
198:
199: /**
200: * Gets the agencyLine1Address attribute.
201: *
202: * @return Returns the agencyLine1Address
203: */
204: public String getAgencyLine1Address() {
205: return agencyLine1Address;
206: }
207:
208: /**
209: * Sets the agencyLine1Address attribute.
210: *
211: * @param agencyLine1Address The agencyLine1Address to set.
212: */
213: public void setAgencyLine1Address(String agencyLine1Address) {
214: this .agencyLine1Address = agencyLine1Address;
215: }
216:
217: /**
218: * Gets the agencyLine2Address attribute.
219: *
220: * @return Returns the agencyLine2Address
221: */
222: public String getAgencyLine2Address() {
223: return agencyLine2Address;
224: }
225:
226: /**
227: * Sets the agencyLine2Address attribute.
228: *
229: * @param agencyLine2Address The agencyLine2Address to set.
230: */
231: public void setAgencyLine2Address(String agencyLine2Address) {
232: this .agencyLine2Address = agencyLine2Address;
233: }
234:
235: /**
236: * Gets the agencyLine3Address attribute.
237: *
238: * @return Returns the agencyLine3Address
239: */
240: public String getAgencyLine3Address() {
241: return agencyLine3Address;
242: }
243:
244: /**
245: * Sets the agencyLine3Address attribute.
246: *
247: * @param agencyLine3Address The agencyLine3Address to set.
248: */
249: public void setAgencyLine3Address(String agencyLine3Address) {
250: this .agencyLine3Address = agencyLine3Address;
251: }
252:
253: /**
254: * Gets the agencyLine4Address attribute.
255: *
256: * @return Returns the agencyLine4Address
257: */
258: public String getAgencyLine4Address() {
259: return agencyLine4Address;
260: }
261:
262: /**
263: * Sets the agencyLine4Address attribute.
264: *
265: * @param agencyLine4Address The agencyLine4Address to set.
266: */
267: public void setAgencyLine4Address(String agencyLine4Address) {
268: this .agencyLine4Address = agencyLine4Address;
269: }
270:
271: /**
272: * Gets the agencyLine5Address attribute.
273: *
274: * @return Returns the agencyLine5Address
275: */
276: public String getAgencyLine5Address() {
277: return agencyLine5Address;
278: }
279:
280: /**
281: * Sets the agencyLine5Address attribute.
282: *
283: * @param agencyLine5Address The agencyLine5Address to set.
284: */
285: public void setAgencyLine5Address(String agencyLine5Address) {
286: this .agencyLine5Address = agencyLine5Address;
287: }
288:
289: /**
290: * Gets the agencyLine6Address attribute.
291: *
292: * @return Returns the agencyLine6Address
293: */
294: public String getAgencyLine6Address() {
295: return agencyLine6Address;
296: }
297:
298: /**
299: * Sets the agencyLine6Address attribute.
300: *
301: * @param agencyLine6Address The agencyLine6Address to set.
302: */
303: public void setAgencyLine6Address(String agencyLine6Address) {
304: this .agencyLine6Address = agencyLine6Address;
305: }
306:
307: /**
308: * Gets the agencyLine7Address attribute.
309: *
310: * @return Returns the agencyLine7Address
311: */
312: public String getAgencyLine7Address() {
313: return agencyLine7Address;
314: }
315:
316: /**
317: * Sets the agencyLine7Address attribute.
318: *
319: * @param agencyLine7Address The agencyLine7Address to set.
320: */
321: public void setAgencyLine7Address(String agencyLine7Address) {
322: this .agencyLine7Address = agencyLine7Address;
323: }
324:
325: /**
326: * Gets the agencyLine8Address attribute.
327: *
328: * @return Returns the agencyLine8Address
329: */
330: public String getAgencyLine8Address() {
331: return agencyLine8Address;
332: }
333:
334: /**
335: * Sets the agencyLine8Address attribute.
336: *
337: * @param agencyLine8Address The agencyLine8Address to set.
338: */
339: public void setAgencyLine8Address(String agencyLine8Address) {
340: this .agencyLine8Address = agencyLine8Address;
341: }
342:
343: /**
344: * Gets the agencyNumber attribute.
345: *
346: * @return Returns the agencyNumber
347: */
348: public String getAgencyNumber() {
349: return agencyNumber;
350: }
351:
352: /**
353: * Sets the agencyNumber attribute.
354: *
355: * @param agencyNumber The agencyNumber to set.
356: */
357: public void setAgencyNumber(String agencyNumber) {
358: this .agencyNumber = agencyNumber;
359: }
360:
361: /**
362: * Gets the agencyShippingInstructionsDescription attribute.
363: *
364: * @return Returns the agencyShippingInstructionsDescription
365: */
366: public String getAgencyShippingInstructionsDescription() {
367: return agencyShippingInstructionsDescription;
368: }
369:
370: /**
371: * Sets the agencyShippingInstructionsDescription attribute.
372: *
373: * @param agencyShippingInstructionsDescription The agencyShippingInstructionsDescription to set.
374: */
375: public void setAgencyShippingInstructionsDescription(
376: String agencyShippingInstructionsDescription) {
377: this .agencyShippingInstructionsDescription = agencyShippingInstructionsDescription;
378: }
379:
380: /**
381: * Gets the agencyStateCode attribute.
382: *
383: * @return Returns the agencyStateCode
384: */
385: public String getAgencyStateCode() {
386: return agencyStateCode;
387: }
388:
389: /**
390: * Sets the agencyStateCode attribute.
391: *
392: * @param agencyStateCode The agencyStateCode to set.
393: */
394: public void setAgencyStateCode(String agencyStateCode) {
395: this .agencyStateCode = agencyStateCode;
396: }
397:
398: /**
399: * Gets the agencyZipCode attribute.
400: *
401: * @return Returns the agencyZipCode
402: */
403: public String getAgencyZipCode() {
404: return agencyZipCode;
405: }
406:
407: /**
408: * Sets the agencyZipCode attribute.
409: *
410: * @param agencyZipCode The agencyZipCode to set.
411: */
412: public void setAgencyZipCode(String agencyZipCode) {
413: this .agencyZipCode = agencyZipCode;
414: }
415:
416: /**
417: * Gets the routingFormDueDateTypeCode attribute.
418: *
419: * @return Returns the routingFormDueDateTypeCode
420: */
421: public String getRoutingFormDueDateTypeCode() {
422: return routingFormDueDateTypeCode;
423: }
424:
425: /**
426: * Sets the routingFormDueDateTypeCode attribute.
427: *
428: * @param routingFormDueDateTypeCode The routingFormDueDateTypeCode to set.
429: */
430: public void setRoutingFormDueDateTypeCode(
431: String routingFormDueDateTypeCode) {
432: this .routingFormDueDateTypeCode = routingFormDueDateTypeCode;
433: }
434:
435: /**
436: * Gets the routingFormDueDate attribute.
437: *
438: * @return Returns the routingFormDueDate
439: */
440: public Date getRoutingFormDueDate() {
441: return routingFormDueDate;
442: }
443:
444: /**
445: * Sets the routingFormDueDate attribute.
446: *
447: * @param routingFormDueDate The routingFormDueDate to set.
448: */
449: public void setRoutingFormDueDate(Date routingFormDueDate) {
450: this .routingFormDueDate = routingFormDueDate;
451: }
452:
453: /**
454: * Gets the routingFormDueTime attribute.
455: *
456: * @return Returns the routingFormDueTime
457: */
458: public String getRoutingFormDueTime() {
459: return routingFormDueTime;
460: }
461:
462: /**
463: * Sets the routingFormDueTime attribute.
464: *
465: * @param routingFormDueTime The routingFormDueTime to set.
466: */
467: public void setRoutingFormDueTime(String routingFormDueTime) {
468: this .routingFormDueTime = routingFormDueTime;
469: }
470:
471: /**
472: * Gets the routingFormRequiredCopyText attribute.
473: *
474: * @return Returns the routingFormRequiredCopyText
475: */
476: public String getRoutingFormRequiredCopyText() {
477: return routingFormRequiredCopyText;
478: }
479:
480: /**
481: * Sets the routingFormRequiredCopyText attribute.
482: *
483: * @param routingFormRequiredCopyText The routingFormRequiredCopyText to set.
484: */
485: public void setRoutingFormRequiredCopyText(
486: String routingFormRequiredCopyText) {
487: this .routingFormRequiredCopyText = routingFormRequiredCopyText;
488: }
489:
490: /**
491: * Gets the routingFormSubmitDate attribute.
492: *
493: * @return Returns the routingFormSubmitDate
494: */
495: public Date getRoutingFormSubmitDate() {
496: return routingFormSubmitDate;
497: }
498:
499: /**
500: * Sets the routingFormSubmitDate attribute.
501: *
502: * @param routingFormSubmitDate The routingFormSubmitDate to set.
503: */
504: public void setRoutingFormSubmitDate(Date routingFormSubmitDate) {
505: this .routingFormSubmitDate = routingFormSubmitDate;
506: }
507:
508: public List<RoutingFormDueDateType> getRoutingFormDueDateTypes() {
509: return routingFormDueDateTypes;
510: }
511:
512: public void setRoutingFormDueDateTypes(
513: List<RoutingFormDueDateType> routingFormDueDateTypes) {
514: this .routingFormDueDateTypes = routingFormDueDateTypes;
515: }
516:
517: /**
518: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
519: */
520: protected LinkedHashMap toStringMapper() {
521: LinkedHashMap m = new LinkedHashMap();
522: m
523: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
524: this .documentNumber);
525: return m;
526: }
527:
528: public Agency getAgency() {
529: return agency;
530: }
531:
532: /**
533: * @param agency
534: * @deprecated
535: */
536: public void setAgency(Agency routingFormAgency) {
537: this .agency = routingFormAgency;
538: }
539:
540: public DueDateType getDueDateType() {
541: return dueDateType;
542: }
543:
544: /**
545: * @param dueDateType
546: * @deprecated
547: */
548: public void setDueDateType(DueDateType dueDateType) {
549: this.dueDateType = dueDateType;
550: }
551:
552: }
|