#region Disclaimer / License // Copyright (C) 2009, Kenneth Skovhede // http://www.hexad.dk, opensource@hexad.dk // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // #endregion using System; namespace OSGeo.MapGuide.MaestroAPI { /// /// This file contains the current known versions of the MapGuide server. /// public enum KnownSiteVersions { /// /// MapGuide Enterprise 2007 /// MapGuideEP1_1, /// /// MapGuide Open Source 1.1.0 /// MapGuideOS1_1, /// /// MapGuide Open Source 1.2.0 /// MapGuideOS1_2, /// /// MapGuide Enterprise 2008 /// MapGuideEP1_2, /// /// MapGuide Open Source 2.0.0 beta 1 /// MapGuideOS2_0B1, /// /// MapGuide Open Source 2.0.0 /// MapGuideOS2_0, /// /// MapGuide Enterprise 2009 /// MapGuideEP2009, /// /// MapGuide Open Source 2.0.2 /// MapGuideOS2_0_2, /// /// MapGuide Enterprise 2009 SP1 /// MapGuideEP2009_SP1, /// /// MapGuide Enterprise 2010 /// MapGuideEP2010, /// /// MapGuide Enterprise 2010 Update 1 /// MapGuideEP2010_SP1, /// /// MapGuide Enterprise 2010 Update 1b /// MapGuideEP2010_SP1b, /// /// MapGuide Open Source 2.1.0 /// MapGuideOS2_1, /// /// MapGuide Enterprise 2011 /// MapGuideEP2011, /// /// MapGuide Enterprise 2011 Update 1 /// MapGuideEP2011_SP1, /// /// MapGuide Open Source 2.2.0 /// MapGuideOS2_2, /// /// Autodesk Infrastructure Map Server 2012 /// MapGuideEP2012, } /// /// Helper class containing known MapGuide Site Versions /// public class SiteVersions { /// /// The array of supported site versions /// public static readonly Version[] SiteVersionNumbers = new Version[] { new Version(1,0,0,17864), //MGE 2007 new Version(1,1,0,301), //MGOS 1.1.0 new Version(1,2,0,1307), //MGOS 1.2.0 new Version(1,2,0,4103), //MGE 2008 new Version(2,0,0,1402), //MGOS 2.0.0 b1 new Version(2,0,0,2308), //MGOS 2.0.0 new Version(2,0,0,3202), //MGE 2009 new Version(2,0,2,3011), //MGOS 2.0.2 new Version(2,0,2,3402), //MGE 2009 SP1 new Version(2,1,0,3001), //MGE 2010 new Version(2,1,0,3505), //MGE 2010 Update 1 new Version(2,1,0,3701), //MGE 2010 Update 1b new Version(2,1,0,4283), //MGOS 2.1.0 new Version(2,2,0,5305), //MGE 2011 new Version(2,2,0,6001), //MGE 2011 Update 1 new Version(2,2,0,5703), //MGOS 2.2.0 new Version(2,3,0,4202), //AIMS 2012 }; /// /// Gets the specified version by the known site version identifier /// /// /// public static Version GetVersion(KnownSiteVersions index) { return SiteVersionNumbers[(int)index]; } } }