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.module.endow.EndowPropertyConstants;
021    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
022    
023    public abstract class EndowmentTransactionSecurityBase extends PersistableBusinessObjectBase implements  EndowmentTransactionSecurity{
024    
025        private String documentNumber;
026        private String securityLineTypeCode;
027        private String securityID;
028        private String registrationCode;
029    
030        private Security security;
031        private RegistrationCode registrationCodeObj;
032        
033        
034        /**
035         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
036         */
037        @Override
038        protected LinkedHashMap toStringMapper() {
039            LinkedHashMap m = new LinkedHashMap();
040            m.put(EndowPropertyConstants.TRANSACTION_SECURITY_DOCUMENT_NUMBER, this.documentNumber);
041            m.put(EndowPropertyConstants.TRANSACTION_SECURITY_LINE_TYPE_CODE, this.securityLineTypeCode);
042            return m;
043        }
044        
045        /**
046         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#getDocumentNumber()
047         */
048        public String getDocumentNumber() {
049            return documentNumber;
050        }
051    
052        /**
053         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#setDocumentNumber(java.lang.String)
054         */
055        public void setDocumentNumber(String documentNumber) {
056            this.documentNumber = documentNumber;
057        }
058    
059        /**
060         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#getTransactionLineTypeCode()
061         */
062        public String getSecurityLineTypeCode() {
063            return securityLineTypeCode;
064        }
065    
066        /**
067         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#setTransactionLineTypeCode(java.lang.String)
068         */
069        public void setSecurityLineTypeCode(String securityLineTypeCode) {
070            this.securityLineTypeCode = securityLineTypeCode;
071        }
072        
073        /**
074         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#getSecurityID()
075         */
076        public String getSecurityID() {
077            return securityID;
078        }
079        
080        /**
081         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#setSecurityID(java.lang.String)
082         */
083        public void setSecurityID(String securityID ) {
084            this.securityID = securityID;
085        }
086        
087        /**
088         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#getSecurity()
089         */
090        public Security getSecurity() {
091            return security;
092        }
093    
094        /**
095         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#setSecurity(org.kuali.kfs.module.endow.businessobject.Security)
096         */
097        public void setSecurity(Security security) {
098            this.security = security;
099        }
100    
101        /**
102         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#getRegistrationCode()
103         */
104        public String getRegistrationCode() {
105            return registrationCode;
106        }
107    
108        /**
109         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#setRegistrationCode(java.lang.String)
110         */
111        public void setRegistrationCode(String registrationCode) {
112            this.registrationCode = registrationCode;
113    
114        }
115    
116        /**
117         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#getRegistrationCodeObj()
118         */
119        public RegistrationCode getRegistrationCodeObj() {
120            return registrationCodeObj;
121        }
122    
123        /**
124         * @see org.kuali.kfs.module.endow.businessobject.EndowmentTransactionSecurity#setRegistrationCodeObj(org.kuali.kfs.module.endow.businessobject.RegistrationCode)
125         */
126        public void setRegistrationCodeObj(RegistrationCode registrationCodeObj) {
127            this.registrationCodeObj = registrationCodeObj;
128    
129        }
130    
131    }