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.pdp.businessobject;
017    
018    import java.util.Date;
019    import java.util.LinkedHashMap;
020    import java.util.List;
021    
022    import org.kuali.kfs.pdp.PdpPropertyConstants;
023    import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
024    
025    public class FormatSelection extends TransientBusinessObjectBase {
026        String campus;
027        Date startDate;
028        List customerList;
029        List rangeList;
030    
031        public FormatSelection() {
032            super();
033        }
034    
035        public String getCampus() {
036            return campus;
037        }
038    
039        public void setCampus(String campus) {
040            this.campus = campus;
041        }
042    
043        public List getCustomerList() {
044            return customerList;
045        }
046    
047        public void setCustomerList(List customerList) {
048            this.customerList = customerList;
049        }
050    
051        public List getRangeList() {
052            return rangeList;
053        }
054    
055        public void setRangeList(List rangeList) {
056            this.rangeList = rangeList;
057        }
058    
059        public Date getStartDate() {
060            return startDate;
061        }
062    
063        public void setStartDate(Date startDate) {
064            this.startDate = startDate;
065        }
066    
067        @Override
068        protected LinkedHashMap toStringMapper() {
069            LinkedHashMap m = new LinkedHashMap(); 
070            
071            m.put(PdpPropertyConstants.FormatSelection.CAMPUS, this.campus);
072            m.put(PdpPropertyConstants.FormatSelection.START_DATE, this.startDate);
073            m.put(PdpPropertyConstants.FormatSelection.CUSTOMER_LIST, this.customerList);
074            m.put(PdpPropertyConstants.FormatSelection.RANGE_LIST, this.rangeList);
075            
076            return m;
077        }
078    }