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.sql.Date;
019    import java.util.LinkedHashMap;
020    
021    import org.apache.commons.lang.StringUtils;
022    import org.kuali.kfs.module.endow.EndowPropertyConstants;
023    import org.kuali.kfs.sys.KFSConstants;
024    import org.kuali.rice.kns.bo.Inactivateable;
025    import org.kuali.rice.kns.bo.KualiCodeBase;
026    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
027    
028    public class TicklerSecurity extends PersistableBusinessObjectBase implements Inactivateable
029    {
030        private String number;
031        private String securityId;
032        private boolean active;
033        
034        private Security securityLookup;
035        
036        /**
037         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
038         */
039        @Override
040        protected LinkedHashMap<String, String> toStringMapper() 
041        {
042            LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
043            m.put(EndowPropertyConstants.TICKLER_NUMBER,getNumber());
044            m.put(EndowPropertyConstants.TICKLER_SECURITYID,getSecurityId());
045            return m;
046        }
047    
048        public boolean isActive() {
049            return active;
050        }
051    
052        public void setActive(boolean active) {
053            this.active = active;
054        }
055    
056        public String getNumber() {
057            return number;
058        }
059    
060    
061        public void setNumber(String number) {
062            this.number = number;
063        }
064    
065        public String getSecurityId() {
066            return securityId;
067        }
068    
069        public void setSecurityId(String securityId) {
070            this.securityId = securityId;
071        }
072    
073        public Security getSecurityLookup() {
074            return securityLookup;
075        }
076    
077        public void setSecurityLookup(Security securityLookup) {
078            this.securityLookup = securityLookup;
079        }
080    
081    }