001    //$Header: $
002    /*----------------    FILE HEADER  ------------------------------------------
003     This file is part of deegree.
004     Copyright (C) 2001-2008 by:
005     Department of Geography, University of Bonn
006     http://www.giub.uni-bonn.de/deegree/
007     lat/lon GmbH
008     http://www.lat-lon.de
009    
010     This library is free software; you can redistribute it and/or
011     modify it under the terms of the GNU Lesser General Public
012     License as published by the Free Software Foundation; either
013     version 2.1 of the License, or (at your option) any later version.
014    
015     This library is distributed in the hope that it will be useful,
016     but WITHOUT ANY WARRANTY; without even the implied warranty of
017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
018     Lesser General Public License for more details.
019    
020     You should have received a copy of the GNU Lesser General Public
021     License along with this library; if not, write to the Free Software
022     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
023    
024     Contact:
025    
026     Andreas Poth
027     lat/lon GmbH
028     Aennchenstr. 19
029     53177 Bonn
030     Germany
031     E-Mail: poth@lat-lon.de
032    
033     Prof. Dr. Klaus Greve
034     Department of Geography
035     University of Bonn
036     Meckenheimer Allee 166
037     53115 Bonn
038     Germany
039     E-Mail: greve@giub.uni-bonn.de
040    
041     ---------------------------------------------------------------------------*/
042    
043    package org.deegree.portal.standard.security.control;
044    
045    /**
046     * TODO add documentation here
047     * 
048     * @author <a href="mailto:elmasry@lat-lon.de">Moataz Elmasry</a>
049     * @author last edited by: $Author: elmasri$
050     * 
051     * @version $Revision: $, $Date: 01-Mar-2007 16:45:38$
052     */
053    
054    public class StartContext {
055    
056        /**
057         * indicates weather this context the selected one in the list or not
058         */
059        public static final String DEFAULT_CONTEXT = "DEFAULT_CONTEXT";
060    
061        private String contextName;
062    
063        private String path;
064    
065        boolean isDefault = false;
066    
067        /**
068         * @param contextName
069         * @param path
070         * @param isDefault
071         */
072        public StartContext( String contextName, String path, boolean isDefault ) {
073            this.contextName = contextName;
074            this.path = path;
075            this.isDefault = isDefault;
076        }
077    
078        /**
079         * @return context name
080         */
081        public String getContextName() {
082            return contextName;
083        }
084    
085        /**
086         * @return context path
087         */
088        public String getPath() {
089            return path;
090        }
091    
092        /**
093         * @param contextName
094         */
095        public void setContextName( String contextName ) {
096            this.contextName = contextName;
097        }
098    
099        /**
100         * @param path
101         */
102        public void setPath( String path ) {
103            this.path = path;
104        }
105    
106        /**
107         * 
108         * @return boolean
109         */
110        public boolean isDefault() {
111            return isDefault;
112        }
113    
114        /**
115         * @param isDefault
116         */
117        public void setDefault( boolean isDefault ) {
118            this.isDefault = isDefault;
119        }
120    }