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.util.LinkedHashMap;
019    
020    import org.kuali.kfs.coa.businessobject.Account;
021    import org.kuali.kfs.coa.businessobject.Chart;
022    import org.kuali.kfs.module.endow.EndowPropertyConstants;
023    import org.kuali.rice.kns.bo.Inactivateable;
024    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
025    
026    /**
027     * This KemidGeneralLedgerAccount class provides the general ledger account to which transaction information will be interfaced.
028     * Also controls etran code use.
029     */
030    public class KemidGeneralLedgerAccount extends PersistableBusinessObjectBase implements Inactivateable{
031    
032        private String kemid;
033        private String incomePrincipalIndicatorCode;
034        private String chartCode;
035        private String accountNumber;
036    
037        private KEMID kemidObjRef;
038        private IncomePrincipalIndicator incomePrincipalIndicator;
039        private Chart chart;
040        private Account account;
041        private boolean active;
042    
043        /**
044         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
045         */
046        @Override
047        protected LinkedHashMap toStringMapper() {
048            LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
049            m.put(EndowPropertyConstants.KEMID, this.kemid);
050            m.put(EndowPropertyConstants.KEMID_GL_ACCOUNT_IP_INDICATOR_CD, this.incomePrincipalIndicatorCode);
051            return m;
052        }
053    
054        /**
055         * Gets the accountNumber.
056         * 
057         * @return accountNumber
058         */
059        public String getAccountNumber() {
060            return accountNumber;
061        }
062    
063        /**
064         * Sets the accountNumber.
065         * 
066         * @param accountNumber
067         */
068        public void setAccountNumber(String accountNumber) {
069            this.accountNumber = accountNumber;
070        }
071    
072        /**
073         * Gets the chartCode.
074         * 
075         * @return chartCode
076         */
077        public String getChartCode() {
078            return chartCode;
079        }
080    
081        /**
082         * Sets the chartCode.
083         * 
084         * @param chartCode
085         */
086        public void setChartCode(String chartCode) {
087            this.chartCode = chartCode;
088        }
089    
090        /**
091         * Gets the incomePrincipalIndicator.
092         * 
093         * @return incomePrincipalIndicator
094         */
095        public IncomePrincipalIndicator getIncomePrincipalIndicator() {
096            return incomePrincipalIndicator;
097        }
098    
099        /**
100         * Sets the incomePrincipalIndicator.
101         * 
102         * @param incomePrincipalIndicator
103         */
104        public void setIncomePrincipalIndicator(IncomePrincipalIndicator incomePrincipalIndicator) {
105            this.incomePrincipalIndicator = incomePrincipalIndicator;
106        }
107    
108        /**
109         * Gets the incomePrincipalIndicatorCode.
110         * 
111         * @return incomePrincipalIndicatorCode
112         */
113        public String getIncomePrincipalIndicatorCode() {
114            return incomePrincipalIndicatorCode;
115        }
116    
117        /**
118         * Sets the incomePrincipalIndicatorCode.
119         * 
120         * @param incomePrincipalIndicatorCode
121         */
122        public void setIncomePrincipalIndicatorCode(String incomePrincipalIndicatorCode) {
123            this.incomePrincipalIndicatorCode = incomePrincipalIndicatorCode;
124        }
125    
126        /**
127         * Gets the kemid.
128         * 
129         * @return kemid
130         */
131        public String getKemid() {
132            return kemid;
133        }
134    
135        /**
136         * Sets the kemid.
137         * 
138         * @param kemid
139         */
140        public void setKemid(String kemid) {
141            this.kemid = kemid;
142        }
143    
144        /**
145         * Gets the kemidObjRef.
146         * 
147         * @return kemidObjRef
148         */
149        public KEMID getKemidObjRef() {
150            return kemidObjRef;
151        }
152    
153        /**
154         * Sets the kemidObjRef.
155         * 
156         * @param kemidObjRef
157         */
158        public void setKemidObjRef(KEMID kemidObjRef) {
159            this.kemidObjRef = kemidObjRef;
160        }
161    
162        /**
163         * Gets the account.
164         * 
165         * @return account
166         */
167        public Account getAccount() {
168            return account;
169        }
170    
171        /**
172         * Sets the account.
173         * 
174         * @param account
175         */
176        public void setAccount(Account account) {
177            this.account = account;
178        }
179    
180        /**
181         * Gets the chart.
182         * 
183         * @return chart
184         */
185        public Chart getChart() {
186            return chart;
187        }
188    
189        /**
190         * Sets the chart.
191         * 
192         * @param chart
193         */
194        public void setChart(Chart chart) {
195            this.chart = chart;
196        }
197        
198        /**
199         * @see org.kuali.rice.kns.bo.Inactivateable#isActive()
200         */
201        public boolean isActive() {
202            return active;
203        }
204    
205        /**
206         * @see org.kuali.rice.kns.bo.Inactivateable#setActive(boolean)
207         */
208        public void setActive(boolean active) {
209            this.active = active;
210        }
211    
212    }