001    /****************************************************************
002     * Licensed to the Apache Software Foundation (ASF) under one   *
003     * or more contributor license agreements.  See the NOTICE file *
004     * distributed with this work for additional information        *
005     * regarding copyright ownership.  The ASF licenses this file   *
006     * to you under the Apache License, Version 2.0 (the            *
007     * "License"); you may not use this file except in compliance   *
008     * with the License.  You may obtain a copy of the License at   *
009     *                                                              *
010     *   http://www.apache.org/licenses/LICENSE-2.0                 *
011     *                                                              *
012     * Unless required by applicable law or agreed to in writing,   *
013     * software distributed under the License is distributed on an  *
014     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
015     * KIND, either express or implied.  See the License for the    *
016     * specific language governing permissions and limitations      *
017     * under the License.                                           *
018     ****************************************************************/
019    
020    package org.apache.hupa.shared.data;
021    
022    import java.io.Serializable;
023    
024    public class Settings implements Serializable{
025    
026        public static final String DEFAULT_INBOX = "INBOX"; 
027        public static final String DEFAULT_TRASH = "Trash"; 
028        public static final String DEFAULT_SENT = "Sent"; 
029        public static final String DEFAULT_DRAFT = "Draft"; 
030        
031        /**
032         * 
033         */
034        private static final long serialVersionUID = -8051377307421345664L;
035        private String trashFolderName = DEFAULT_TRASH;
036        private String sentFolderName = DEFAULT_SENT;
037        private String inboxFolderName = DEFAULT_INBOX;
038        private String draftsFolderName = DEFAULT_DRAFT;
039        
040        private int prefetchCount = 20;
041        
042        public String getInboxFolderName() {
043            return inboxFolderName;
044        }
045        
046        public void setInboxFolderName(String inboxFolderName) {
047            this.inboxFolderName = inboxFolderName;
048        }
049        
050        public String getTrashFolderName() {
051            return trashFolderName;
052        }
053        
054        public void setTrashFolderName(String trashFolderName) {
055            this.trashFolderName = trashFolderName;
056        }
057        
058        public String getSentFolderName() {
059            return sentFolderName;
060        }
061        
062        public void setSentFolderName(String sentFolderName) {
063            this.sentFolderName = sentFolderName;
064        }
065        
066        public int getPostFetchMessageCount() {
067            return prefetchCount;
068        }
069        
070        public void setPostFetchMessageCount(int prefetchCount) {
071            this.prefetchCount  = prefetchCount;
072        }
073        
074        public String getDraftsFolderName() {
075            return draftsFolderName;
076        }
077    
078        public void setDraftsFolderName(String draftFolderName) {
079            this.draftsFolderName = draftFolderName;
080        }
081    
082        
083    }