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.ar.businessobject;
017    
018    import java.util.LinkedHashMap;
019    
020    import org.kuali.kfs.coa.businessobject.Account;
021    import org.kuali.kfs.coa.businessobject.Chart;
022    import org.kuali.kfs.coa.businessobject.ObjectCode;
023    import org.kuali.kfs.coa.businessobject.Organization;
024    import org.kuali.kfs.coa.businessobject.SubAccount;
025    import org.kuali.kfs.coa.businessobject.SubObjectCode;
026    import org.kuali.kfs.sys.businessobject.SystemOptions;
027    import org.kuali.kfs.sys.context.SpringContext;
028    import org.kuali.rice.kim.bo.Person;
029    import org.kuali.rice.kns.bo.Inactivateable;
030    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
031    import org.kuali.rice.kns.bo.PostalCode;
032    import org.kuali.rice.kns.bo.State;
033    import org.kuali.rice.kns.service.PostalCodeService;
034    import org.kuali.rice.kns.service.StateService;
035    import org.kuali.rice.kns.util.ObjectUtils;
036    
037    /**
038     * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
039     */
040    public class SystemInformation extends PersistableBusinessObjectBase implements Inactivateable {
041    
042            private Integer universityFiscalYear;
043            private String processingChartOfAccountCode;
044            private String processingOrganizationCode;
045            private String universityFederalEmployerIdentificationNumber;
046            private String discountObjectCode;
047            private String universityClearingChartOfAccountsCode;
048            private String universityClearingAccountNumber;
049            private String universityClearingSubAccountNumber;
050            private String universityClearingObjectCode;
051            private String universityClearingSubObjectCode;
052            private String creditCardObjectCode;
053            private String lockboxNumber;
054            private boolean active;
055        private String organizationRemitToAddressName;
056        private String organizationRemitToLine1StreetAddress;
057        private String organizationRemitToLine2StreetAddress;
058        private String organizationRemitToCityName;
059        private String organizationRemitToStateCode;
060        private String organizationRemitToZipCode;
061        private String organizationCheckPayableToName;
062        private String financialDocumentInitiatorIdentifier;
063    //    private String wireChartOfAccountsCode;
064    //    private String wireAccountNumber;
065    //    private String wireSubAccountNumber;
066    //    private String wireObjectCode;
067    //    private String wireSubObjectCode;
068        
069            private ObjectCode creditCardFinancialObject;
070            private SubObjectCode universityClearingSubObject;
071            private ObjectCode universityClearingObject;
072            private ObjectCode discountFinancialObject;
073            private Organization processingOrganization;
074            private Chart processingChartOfAccount;
075            private Account universityClearingAccount;
076            private Chart universityClearingChartOfAccounts;
077        private SubAccount universityClearingSubAccount;
078        private ObjectCode universityFiscalYearObject;
079        private State organizationRemitToState;
080    //    private Chart wireChartOfAccounts;
081    //    private Account wireAccount;
082    //    private SubAccount wireSubAccount;
083    //    private ObjectCode wireObject;
084    //    private SubObjectCode wireSubObject;
085        private Person financialDocumentInitiator;
086        private SystemOptions universityFiscal;
087        private PostalCode orgRemitToZipCode;
088        
089            public Person getFinancialDocumentInitiator() {
090                financialDocumentInitiator = SpringContext.getBean(org.kuali.rice.kim.service.PersonService.class).updatePersonIfNecessary(financialDocumentInitiatorIdentifier, financialDocumentInitiator);
091            return financialDocumentInitiator;
092        }
093    
094        public void setFinancialDocumentInitiator(Person financialDocumentInitiator) {
095            this.financialDocumentInitiator = financialDocumentInitiator;
096        }
097    
098        /**
099             * Default constructor.
100             */
101            public SystemInformation() {
102    
103            }
104    
105            /**
106             * Gets the universityFiscalYear attribute.
107             * 
108             * @return Returns the universityFiscalYear
109             * 
110             */
111            public Integer getUniversityFiscalYear() { 
112                    return universityFiscalYear;
113            }
114    
115            /**
116             * Sets the universityFiscalYear attribute.
117             * 
118             * @param universityFiscalYear The universityFiscalYear to set.
119             * 
120             */
121            public void setUniversityFiscalYear(Integer universityFiscalYear) {
122                    this.universityFiscalYear = universityFiscalYear;
123            }
124    
125            /**
126             * Gets the processingChartOfAccountCode attribute.
127             * 
128             * @return Returns the processingChartOfAccountCode
129             * 
130             */
131            public String getProcessingChartOfAccountCode() { 
132                    return processingChartOfAccountCode;
133            }
134    
135            /**
136             * Sets the processingChartOfAccountCode attribute.
137             * 
138             * @param processingChartOfAccountCode The processingChartOfAccountCode to set.
139             * 
140             */
141            public void setProcessingChartOfAccountCode(String processingChartOfAccountCode) {
142                    this.processingChartOfAccountCode = processingChartOfAccountCode;
143            }
144    
145    
146            /**
147             * Gets the processingOrganizationCode attribute.
148             * 
149             * @return Returns the processingOrganizationCode
150             * 
151             */
152            public String getProcessingOrganizationCode() { 
153                    return processingOrganizationCode;
154            }
155    
156            /**
157             * Sets the processingOrganizationCode attribute.
158             * 
159             * @param processingOrganizationCode The processingOrganizationCode to set.
160             * 
161             */
162            public void setProcessingOrganizationCode(String processingOrganizationCode) {
163                    this.processingOrganizationCode = processingOrganizationCode;
164            }
165    
166        /**
167         * Gets the universityFederalEmployerIdentificationNumber attribute.
168         * 
169         * @return Returns the universityFederalEmployerIdentificationNumber
170         * 
171         */
172        public String getUniversityFederalEmployerIdentificationNumber() { 
173            return universityFederalEmployerIdentificationNumber;
174        }
175    
176        /**
177         * Sets the universityFederalEmployerIdentificationNumber attribute.
178         * 
179         * @param universityFederalEmployerIdentificationNumber The universityFederalEmployerIdentificationNumber to set.
180         * 
181         */
182        public void setUniversityFederalEmployerIdentificationNumber(String universityFederalEmployerIdentificationNumber) {
183            this.universityFederalEmployerIdentificationNumber = universityFederalEmployerIdentificationNumber;
184        }    
185    
186            /**
187             * Gets the discountObjectCode attribute.
188             * 
189             * @return Returns the discountObjectCode
190             * 
191             */
192            public String getDiscountObjectCode() { 
193                    return discountObjectCode;
194            }
195    
196            /**
197             * Sets the discountObjectCode attribute.
198             * 
199             * @param discountObjectCode The discountObjectCode to set.
200             * 
201             */
202            public void setDiscountObjectCode(String refundFinancialObjectCode) {
203                    this.discountObjectCode = refundFinancialObjectCode;
204            }
205    
206            /**
207             * Gets the universityClearingChartOfAccountsCode attribute.
208             * 
209             * @return Returns the universityClearingChartOfAccountsCode
210             * 
211             */
212            public String getUniversityClearingChartOfAccountsCode() { 
213                    return universityClearingChartOfAccountsCode;
214            }
215    
216            /**
217             * Sets the universityClearingChartOfAccountsCode attribute.
218             * 
219             * @param universityClearingChartOfAccountsCode The universityClearingChartOfAccountsCode to set.
220             * 
221             */
222            public void setUniversityClearingChartOfAccountsCode(String universityClearingChartOfAccountsCode) {
223                    this.universityClearingChartOfAccountsCode = universityClearingChartOfAccountsCode;
224            }
225    
226    
227            /**
228             * Gets the universityClearingAccountNumber attribute.
229             * 
230             * @return Returns the universityClearingAccountNumber
231             * 
232             */
233            public String getUniversityClearingAccountNumber() { 
234                    return universityClearingAccountNumber;
235            }
236    
237            /**
238             * Sets the universityClearingAccountNumber attribute.
239             * 
240             * @param universityClearingAccountNumber The universityClearingAccountNumber to set.
241             * 
242             */
243            public void setUniversityClearingAccountNumber(String universityClearingAccountNumber) {
244                    this.universityClearingAccountNumber = universityClearingAccountNumber;
245            }
246    
247    
248            /**
249             * Gets the universityClearingSubAccountNumber attribute.
250             * 
251             * @return Returns the universityClearingSubAccountNumber
252             * 
253             */
254            public String getUniversityClearingSubAccountNumber() { 
255                    return universityClearingSubAccountNumber;
256            }
257    
258            /**
259             * Sets the universityClearingSubAccountNumber attribute.
260             * 
261             * @param universityClearingSubAccountNumber The universityClearingSubAccountNumber to set.
262             * 
263             */
264            public void setUniversityClearingSubAccountNumber(String universityClearingSubAccountNumber) {
265                    this.universityClearingSubAccountNumber = universityClearingSubAccountNumber;
266            }
267    
268    
269            /**
270             * Gets the universityClearingObjectCode attribute.
271             * 
272             * @return Returns the universityClearingObjectCode
273             * 
274             */
275            public String getUniversityClearingObjectCode() { 
276                    return universityClearingObjectCode;
277            }
278    
279            /**
280             * Sets the universityClearingObjectCode attribute.
281             * 
282             * @param universityClearingObjectCode The universityClearingObjectCode to set.
283             * 
284             */
285            public void setUniversityClearingObjectCode(String universityClearingObjectCode) {
286                    this.universityClearingObjectCode = universityClearingObjectCode;
287            }
288    
289    
290            /**
291             * Gets the universityClearingSubObjectCode attribute.
292             * 
293             * @return Returns the universityClearingSubObjectCode
294             * 
295             */
296            public String getUniversityClearingSubObjectCode() { 
297                    return universityClearingSubObjectCode;
298            }
299    
300            /**
301             * Sets the universityClearingSubObjectCode attribute.
302             * 
303             * @param universityClearingSubObjectCode The universityClearingSubObjectCode to set.
304             * 
305             */
306            public void setUniversityClearingSubObjectCode(String universityClearingSubObjectCode) {
307                    this.universityClearingSubObjectCode = universityClearingSubObjectCode;
308            }
309    
310    
311            /**
312             * Gets the creditCardObjectCode attribute.
313             * 
314             * @return Returns the creditCardObjectCode
315             * 
316             */
317            public String getCreditCardObjectCode() { 
318                    return creditCardObjectCode;
319            }
320    
321            /**
322             * Sets the creditCardObjectCode attribute.
323             * 
324             * @param creditCardObjectCode The creditCardObjectCode to set.
325             * 
326             */
327            public void setCreditCardObjectCode(String creditCardObjectCode) {
328                    this.creditCardObjectCode = creditCardObjectCode;
329            }
330    
331    
332            /**
333             * Gets the lockboxNumber attribute.
334             * 
335             * @return Returns the lockboxNumber
336             * 
337             */
338            public String getLockboxNumber() { 
339                    return lockboxNumber;
340            }
341    
342            /**
343             * Sets the lockboxNumber attribute.
344             * 
345             * @param lockboxNumber The lockboxNumber to set.
346             * 
347             */
348            public void setLockboxNumber(String lockboxNumber) {
349                    this.lockboxNumber = lockboxNumber;
350            }
351            
352        /**
353         * Gets the active attribute.
354         * 
355         * @return Returns the active
356         * 
357         */
358        public boolean isActive() { 
359            return active;
360        }
361    
362            /**
363             * Gets the active attribute.
364             * 
365             * @return Returns the active
366             * 
367             */
368            public boolean getActive() { 
369                    return active;
370            }
371    
372            /**
373             * Sets the active attribute.
374             * 
375             * @param active The active to set.
376             * 
377             */
378            public void setActive(boolean active) {
379                    this.active = active;
380            }
381    
382            /**
383         * Gets the financialDocumentInitiatorIdentifier attribute. 
384         * @return Returns the financialDocumentInitiatorIdentifier.
385         */
386        public String getFinancialDocumentInitiatorIdentifier() {
387            return financialDocumentInitiatorIdentifier;
388        }
389    
390        /**
391         * Sets the financialDocumentInitiatorIdentifier attribute value.
392         * @param financialDocumentInitiatorIdentifier The financialDocumentInitiatorIdentifier to set.
393         */
394        public void setFinancialDocumentInitiatorIdentifier(String financialDocumentInitiatorIdentifier) {
395            this.financialDocumentInitiatorIdentifier = financialDocumentInitiatorIdentifier;
396        }
397    
398        /**
399         * Gets the organizationCheckPayableToName attribute. 
400         * @return Returns the organizationCheckPayableToName.
401         */
402        public String getOrganizationCheckPayableToName() {
403            return organizationCheckPayableToName;
404        }
405    
406        /**
407         * Sets the organizationCheckPayableToName attribute value.
408         * @param organizationCheckPayableToName The organizationCheckPayableToName to set.
409         */
410        public void setOrganizationCheckPayableToName(String organizationCheckPayableToName) {
411            this.organizationCheckPayableToName = organizationCheckPayableToName;
412        }
413    
414        /**
415         * Gets the organizationRemitToAddressName attribute. 
416         * @return Returns the organizationRemitToAddressName.
417         */
418        public String getOrganizationRemitToAddressName() {
419            return organizationRemitToAddressName;
420        }
421    
422        /**
423         * Sets the organizationRemitToAddressName attribute value.
424         * @param organizationRemitToAddressName The organizationRemitToAddressName to set.
425         */
426        public void setOrganizationRemitToAddressName(String organizationRemitToAddressName) {
427            this.organizationRemitToAddressName = organizationRemitToAddressName;
428        }
429    
430        /**
431         * Gets the organizationRemitToCityName attribute. 
432         * @return Returns the organizationRemitToCityName.
433         */
434        public String getOrganizationRemitToCityName() {
435            return organizationRemitToCityName;
436        }
437    
438        /**
439         * Sets the organizationRemitToCityName attribute value.
440         * @param organizationRemitToCityName The organizationRemitToCityName to set.
441         */
442        public void setOrganizationRemitToCityName(String organizationRemitToCityName) {
443            this.organizationRemitToCityName = organizationRemitToCityName;
444        }
445    
446        /**
447         * Gets the organizationRemitToLine1StreetAddress attribute. 
448         * @return Returns the organizationRemitToLine1StreetAddress.
449         */
450        public String getOrganizationRemitToLine1StreetAddress() {
451            return organizationRemitToLine1StreetAddress;
452        }
453    
454        /**
455         * Sets the organizationRemitToLine1StreetAddress attribute value.
456         * @param organizationRemitToLine1StreetAddress The organizationRemitToLine1StreetAddress to set.
457         */
458        public void setOrganizationRemitToLine1StreetAddress(String organizationRemitToLine1StreetAddress) {
459            this.organizationRemitToLine1StreetAddress = organizationRemitToLine1StreetAddress;
460        }
461    
462        /**
463         * Gets the organizationRemitToLine2StreetAddress attribute. 
464         * @return Returns the organizationRemitToLine2StreetAddress.
465         */
466        public String getOrganizationRemitToLine2StreetAddress() {
467            return organizationRemitToLine2StreetAddress;
468        }
469    
470        /**
471         * Sets the organizationRemitToLine2StreetAddress attribute value.
472         * @param organizationRemitToLine2StreetAddress The organizationRemitToLine2StreetAddress to set.
473         */
474        public void setOrganizationRemitToLine2StreetAddress(String organizationRemitToLine2StreetAddress) {
475            this.organizationRemitToLine2StreetAddress = organizationRemitToLine2StreetAddress;
476        }
477    
478        /**
479         * Gets the organizationRemitToStateCode attribute. 
480         * @return Returns the organizationRemitToStateCode.
481         */
482        public String getOrganizationRemitToStateCode() {
483            return organizationRemitToStateCode;
484        }
485    
486        /**
487         * Sets the organizationRemitToStateCode attribute value.
488         * @param organizationRemitToStateCode The organizationRemitToStateCode to set.
489         */
490        public void setOrganizationRemitToStateCode(String organizationRemitToStateCode) {
491            this.organizationRemitToStateCode = organizationRemitToStateCode;
492        }
493    
494        /**
495         * Gets the organizationRemitToZipCode attribute. 
496         * @return Returns the organizationRemitToZipCode.
497         */
498        public String getOrganizationRemitToZipCode() {
499            return organizationRemitToZipCode;
500        }
501    
502        /**
503         * Sets the organizationRemitToZipCode attribute value.
504         * @param organizationRemitToZipCode The organizationRemitToZipCode to set.
505         */
506        public void setOrganizationRemitToZipCode(String organizationRemitToZipCode) {
507            this.organizationRemitToZipCode = organizationRemitToZipCode;
508        }
509    
510    //    /**
511    //     * Gets the wireAccountNumber attribute. 
512    //     * @return Returns the wireAccountNumber.
513    //     */
514    //    public String getWireAccountNumber() {
515    //        return wireAccountNumber;
516    //    }
517    //
518    //    /**
519    //     * Sets the wireAccountNumber attribute value.
520    //     * @param wireAccountNumber The wireAccountNumber to set.
521    //     */
522    //    public void setWireAccountNumber(String wireAccountNumber) {
523    //        this.wireAccountNumber = wireAccountNumber;
524    //    }
525    //
526    //    /**
527    //     * Gets the wireChartOfAccountsCode attribute. 
528    //     * @return Returns the wireChartOfAccountsCode.
529    //     */
530    //    public String getWireChartOfAccountsCode() {
531    //        return wireChartOfAccountsCode;
532    //    }
533    //
534    //    /**
535    //     * Sets the wireChartOfAccountsCode attribute value.
536    //     * @param wireChartOfAccountsCode The wireChartOfAccountsCode to set.
537    //     */
538    //    public void setWireChartOfAccountsCode(String wireChartOfAccountsCode) {
539    //        this.wireChartOfAccountsCode = wireChartOfAccountsCode;
540    //    }
541    //
542    //    /**
543    //     * Gets the wireObjectCode attribute. 
544    //     * @return Returns the wireObjectCode.
545    //     */
546    //    public String getWireObjectCode() {
547    //        return wireObjectCode;
548    //    }
549    //
550    //    /**
551    //     * Sets the wireObjectCode attribute value.
552    //     * @param wireObjectCode The wireObjectCode to set.
553    //     */
554    //    public void setWireObjectCode(String wireObjectCode) {
555    //        this.wireObjectCode = wireObjectCode;
556    //    }
557    //
558    //    /**
559    //     * Gets the wireSubAccountNumber attribute. 
560    //     * @return Returns the wireSubAccountNumber.
561    //     */
562    //    public String getWireSubAccountNumber() {
563    //        return wireSubAccountNumber;
564    //    }
565    //
566    //    /**
567    //     * Sets the wireSubAccountNumber attribute value.
568    //     * @param wireSubAccountNumber The wireSubAccountNumber to set.
569    //     */
570    //    public void setWireSubAccountNumber(String wireSubAccountNumber) {
571    //        this.wireSubAccountNumber = wireSubAccountNumber;
572    //    }
573    //
574    //    /**
575    //     * Gets the wireSubObjectCode attribute. 
576    //     * @return Returns the wireSubObjectCode.
577    //     */
578    //    public String getWireSubObjectCode() {
579    //        return wireSubObjectCode;
580    //    }
581    //
582    //    /**
583    //     * Sets the wireSubObjectCode attribute value.
584    //     * @param wireSubObjectCode The wireSubObjectCode to set.
585    //     */
586    //    public void setWireSubObjectCode(String wireSubObjectCode) {
587    //        this.wireSubObjectCode = wireSubObjectCode;
588    //    }
589    
590            /**
591             * Gets the creditCardFinancialObject attribute.
592             * 
593             * @return Returns the creditCardFinancialObject
594             * 
595             */
596            public ObjectCode getCreditCardFinancialObject() { 
597                    return creditCardFinancialObject;
598            }
599    
600            /**
601             * Sets the creditCardFinancialObject attribute.
602             * 
603             * @param creditCardFinancialObject The creditCardFinancialObject to set.
604             * @deprecated
605             */
606            public void setCreditCardFinancialObject(ObjectCode creditCardFinancialObject) {
607                    this.creditCardFinancialObject = creditCardFinancialObject;
608            }
609    
610            /**
611             * Gets the universityClearingSubObject attribute.
612             * 
613             * @return Returns the universityClearingSubObject
614             * 
615             */
616            public SubObjectCode getUniversityClearingSubObject() { 
617                    return universityClearingSubObject;
618            }
619    
620            /**
621             * Sets the universityClearingSubObject attribute.
622             * 
623             * @param universityClearingSubObject The universityClearingSubObject to set.
624             * @deprecated
625             */
626            public void setUniversityClearingSubObject(SubObjectCode universityClearingSubObject) {
627                    this.universityClearingSubObject = universityClearingSubObject;
628            }
629    
630            /**
631             * Gets the universityClearingObject attribute.
632             * 
633             * @return Returns the universityClearingObject
634             * 
635             */
636            public ObjectCode getUniversityClearingObject() { 
637                    return universityClearingObject;
638            }
639    
640            /**
641             * Sets the universityClearingObject attribute.
642             * 
643             * @param universityClearingObject The universityClearingObject to set.
644             * @deprecated
645             */
646            public void setUniversityClearingObject(ObjectCode universityClearingObject) {
647                    this.universityClearingObject = universityClearingObject;
648            }
649    
650            /**
651             * Gets the discountFinancialObject attribute.
652             * 
653             * @return Returns the discountFinancialObject
654             * 
655             */
656            public ObjectCode getDiscountFinancialObject() { 
657                    return discountFinancialObject;
658            }
659    
660            /**
661             * Sets the discountFinancialObject attribute.
662             * 
663             * @param discountFinancialObject The discountFinancialObject to set.
664             * @deprecated
665             */
666            public void setDiscountFinancialObject(ObjectCode refundFinancialObject) {
667                    this.discountFinancialObject = refundFinancialObject;
668            }
669    
670            /**
671             * Gets the processingOrganization attribute.
672             * 
673             * @return Returns the processingOrganization
674             * 
675             */
676            public Organization getProcessingOrganization() { 
677                    return processingOrganization;
678            }
679    
680            /**
681             * Sets the processingOrganization attribute.
682             * 
683             * @param processingOrganization The processingOrganization to set.
684             * @deprecated
685             */
686            public void setProcessingOrganization(Organization processingOrganization) {
687                    this.processingOrganization = processingOrganization;
688            }
689    
690            /**
691             * Gets the processingChartOfAccount attribute.
692             * 
693             * @return Returns the processingChartOfAccount
694             * 
695             */
696            public Chart getProcessingChartOfAccount() { 
697                    return processingChartOfAccount;
698            }
699    
700            /**
701             * Sets the processingChartOfAccount attribute.
702             * 
703             * @param processingChartOfAccount The processingChartOfAccount to set.
704             * @deprecated
705             */
706            public void setProcessingChartOfAccount(Chart processingChartOfAccount) {
707                    this.processingChartOfAccount = processingChartOfAccount;
708            }
709    
710            /**
711             * Gets the universityClearingAccount attribute.
712             * 
713             * @return Returns the universityClearingAccount
714             * 
715             */
716            public Account getUniversityClearingAccount() { 
717                    return universityClearingAccount;
718            }
719    
720            /**
721             * Sets the universityClearingAccount attribute.
722             * 
723             * @param universityClearingAccount The universityClearingAccount to set.
724             * @deprecated
725             */
726            public void setUniversityClearingAccount(Account universityClearingAccount) {
727                    this.universityClearingAccount = universityClearingAccount;
728            }
729    
730            /**
731             * Gets the universityClearingChartOfAccounts attribute.
732             * 
733             * @return Returns the universityClearingChartOfAccounts
734             * 
735             */
736            public Chart getUniversityClearingChartOfAccounts() { 
737                    return universityClearingChartOfAccounts;
738            }
739    
740            /**
741             * Sets the universityClearingChartOfAccounts attribute.
742             * 
743             * @param universityClearingChartOfAccounts The universityClearingChartOfAccounts to set.
744             * @deprecated
745             */
746            public void setUniversityClearingChartOfAccounts(Chart universityClearingChartOfAccounts) {
747                    this.universityClearingChartOfAccounts = universityClearingChartOfAccounts;
748            }
749    
750        /**
751         * Gets the universityClearingSubAccount attribute. 
752         * @return Returns the universityClearingSubAccount.
753         */
754        public SubAccount getUniversityClearingSubAccount() {
755            return universityClearingSubAccount;
756        }
757    
758        /**
759         * Sets the universityClearingSubAccount attribute value.
760         * @param universityClearingSubAccount The universityClearingSubAccount to set.
761         * @deprecated
762         */
763        public void setUniversityClearingSubAccount(SubAccount universityClearingSubAccount) {
764            this.universityClearingSubAccount = universityClearingSubAccount;
765        }    
766        
767            /**
768         * Gets the organizationRemitToState attribute. 
769         * @return Returns the organizationRemitToState.
770         */
771        public State getOrganizationRemitToState() {
772            organizationRemitToState = SpringContext.getBean(StateService.class).getByPrimaryIdIfNecessary(organizationRemitToStateCode, organizationRemitToState);
773            return organizationRemitToState;
774        }
775    
776        /**
777         * Sets the organizationRemitToState attribute value.
778         * @param organizationRemitToState The organizationRemitToState to set.
779         * @deprecated
780         */
781        public void setOrganizationRemitToState(State organizationRemitToState) {
782            this.organizationRemitToState = organizationRemitToState;
783        }
784    
785    //    /**
786    //     * Gets the wireAccount attribute. 
787    //     * @return Returns the wireAccount.
788    //     */
789    //    public Account getWireAccount() {
790    //        return wireAccount;
791    //    }
792    //
793    //    /**
794    //     * Sets the wireAccount attribute value.
795    //     * @param wireAccount The wireAccount to set.
796    //     * @deprecated
797    //     */
798    //    public void setWireAccount(Account wireAccount) {
799    //        this.wireAccount = wireAccount;
800    //    }
801    //
802    //    /**
803    //     * Gets the wireChartOfAccounts attribute. 
804    //     * @return Returns the wireChartOfAccounts.
805    //     */
806    //    public Chart getWireChartOfAccounts() {
807    //        return wireChartOfAccounts;
808    //    }
809    //
810    //    /**
811    //     * Sets the wireChartOfAccounts attribute value.
812    //     * @param wireChartOfAccounts The wireChartOfAccounts to set.
813    //     * @deprecated
814    //     */
815    //    public void setWireChartOfAccounts(Chart wireChartOfAccounts) {
816    //        this.wireChartOfAccounts = wireChartOfAccounts;
817    //    }
818    //
819    //    /**
820    //     * Gets the wireObject attribute. 
821    //     * @return Returns the wireObject.
822    //     */
823    //    public ObjectCode getWireObject() {
824    //        return wireObject;
825    //    }
826    //
827    //    /**
828    //     * Sets the wireObject attribute value.
829    //     * @param wireObject The wireObject to set.
830    //     * @deprecated
831    //     */
832    //    public void setWireObject(ObjectCode wireObject) {
833    //        this.wireObject = wireObject;
834    //    }
835    //
836    //    /**
837    //     * Gets the wireSubAccount attribute. 
838    //     * @return Returns the wireSubAccount.
839    //     */
840    //    public SubAccount getWireSubAccount() {
841    //        return wireSubAccount;
842    //    }
843    //
844    //    /**
845    //     * Sets the wireSubAccount attribute value.
846    //     * @param wireSubAccount The wireSubAccount to set.
847    //     * @deprecated
848    //     */
849    //    public void setWireSubAccount(SubAccount wireSubAccount) {
850    //        this.wireSubAccount = wireSubAccount;
851    //    }
852    //
853    //    /**
854    //     * Gets the wireSubObject attribute. 
855    //     * @return Returns the wireSubObject.
856    //     */
857    //    public SubObjectCode getWireSubObject() {
858    //        return wireSubObject;
859    //    }
860    //
861    //    /**
862    //     * Sets the wireSubObject attribute value.
863    //     * @param wireSubObject The wireSubObject to set.
864    //     * @deprecated
865    //     */
866    //    public void setWireSubObject(SubObjectCode wireSubObject) {
867    //        this.wireSubObject = wireSubObject;
868    //    }
869    
870        /**
871             * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
872             */
873            protected LinkedHashMap toStringMapper() {
874                LinkedHashMap m = new LinkedHashMap();          
875            if (this.universityFiscalYear != null) {
876                m.put("universityFiscalYear", this.universityFiscalYear.toString());
877            }
878            m.put("processingChartOfAccountCode", this.processingChartOfAccountCode);
879            m.put("processingOrganizationCode", this.processingOrganizationCode);
880                return m;
881        }
882    
883            public String toString() {
884                return ((this.universityFiscalYear == null) ? "" : this.universityFiscalYear + "-") + 
885                        this.processingChartOfAccountCode + "-" + this.processingOrganizationCode;
886            }
887            
888        public ObjectCode getUniversityFiscalYearObject() {
889            return universityFiscalYearObject;
890        }
891    
892        public void setUniversityFiscalYearObject(ObjectCode universityFiscalYearObject) {
893            this.universityFiscalYearObject = universityFiscalYearObject;
894        }
895        
896        /**
897         * This method (a hack by any other name...) returns a string so that an organization options can have a link to view its own
898         * inquiry page after a look up
899         * 
900         * @return the String "View System Information"
901         */
902        public String getSystemInformationViewer() {
903            return "View System Information";
904        }
905    
906        /**
907         * Gets the universityFiscal attribute.
908         * 
909         * @return Returns the universityFiscal.
910         */
911        public SystemOptions getUniversityFiscal() {
912            return universityFiscal;
913        }
914    
915        /**
916         * Sets the universityFiscal attribute value.
917         * 
918         * @param universityFiscal The universityFiscal to set.
919         */
920        public void setUniversityFiscal(SystemOptions universityFiscal) {
921            this.universityFiscal = universityFiscal;
922        }
923    
924        /**
925         * Gets the orgRemitToZipCode attribute. 
926         * @return Returns the orgRemitToZipCode.
927         */
928        public PostalCode getOrgRemitToZipCode() {
929            orgRemitToZipCode = SpringContext.getBean(PostalCodeService.class).getByPostalCodeInDefaultCountryIfNecessary(organizationRemitToZipCode, orgRemitToZipCode);
930            return orgRemitToZipCode;
931        }
932    
933        /**
934         * Sets the orgRemitToZipCode attribute value.
935         * @param orgRemitToZipCode The orgRemitToZipCode to set.
936         */
937        public void setOrgRemitToZipCode(PostalCode orgRemitToZipCode) {
938            this.orgRemitToZipCode = orgRemitToZipCode;
939        }
940    
941    }