wiki:maestro/MaestroAPI/Maestro3ApiComparisons

Version 3 (modified by jng, 13 years ago) ( diff )

--

MaestroAPI 3.x API comparison

Maestro 3.x has fundamental API changes from 2.x. This table outlines the main classes and interfaces in 2.x and their equivalents in 3.x

Maestro 2.xMaestro 3.x
OSGeo.MapGuide.MaestroAPI.ServerConnectionIOSGeo.MapGuide.MaestroAPI.IServerConnection
OSGeo.MapGuide.MaestroAPI.HttpServerConnectionOSGeo.MapGuide.MaestroAPI.IServerConnection (created using the Maestro.Http provider name)
OSGeo.MapGuide.MaestroAPI.LocalNativeConnectionOSGeo.MapGuide.MaestroAPI.IServerConnection (created using the Maestro.LocalNative provider name)
OSGeo.MapGuide.MaestroAPI.ApplicationDefinition.ApplicationDefinitionTypeOSGeo.MapGuide.ObjectModels.ApplicationDefinition.IApplicationDefinition
OSGeo.MapGuide.MaestroAPI.DrawingSourceOSGeo.MapGuide.ObjectModels.DrawingSource.IDrawingSource
OSGeo.MapGuide.MaestroAPI.FeatureSourceOSGeo.MapGuide.ObjectModels.FeatureSource.IFeatureSource
OSGeo.MapGuide.MaestroAPI.LoadProcedureOSGeo.MapGuide.ObjectModels.LoadProcedure.ILoadProcedure
OSGeo.MapGuide.MaestroAPI.LayerDefinitionOSGeo.MapGuide.ObjectModels.LayerDefinition.ILayerDefinition
OSGeo.MapGuide.MaestroAPI.MapDefinitionOSGeo.MapGuide.ObjectModels.MapDefinition.IMapDefinition
OSGeo.MapGuide.MaestroAPI.WebLayoutOSGeo.MapGuide.ObjectModels.MapDefinition.IWebLayout
OSGeo.MapGuide.MaestroAPI.FeatureSourceDescriptionOSGeo.MapGuide.MaestroAPI.Schema.FeatureSourceDescription
OSGeo.MapGuide.MaestroAPI.RuntimeClasses.RuntimeMapOSGeo.MapGuide.MaestroAPI.Mapping.RuntimeMap
OSGeo.MapGuide.MaestroAPI.FeatureSetReaderOSGeo.MapGuide.MaestroAPI.Feature.IReader
OSGeo.MapGuide.MaestroAPI.Box2DTypeOSGeo.MapGuide.ObjectModels.IEnvelope
OSGeo.MapGuide.MaestroAPI.FdoSpatialContextListSpatialContextOSGeo.MapGuide.ObjectModels.IFdoSpatialContext

ServerConnectionI

In Maestro 3.x, the ServerConnectionI (now called IServerConnection) has been broken up to service-specific interfaces:

  • IResourceService
  • IFeatureService
  • IFusionService
  • IMappingService
  • ISiteService
  • ITileService

These services can be accessed via GetService() method of IServerConnection. The IResourceService and IFeatureService can be accessed directly via the ResourceService and FeatureService properties of IServerConnection

Resource Classes

In Maestro 3.x, resource types are modeled on interfaces. Although there are still underlying generated classes implementing these interfaces, these classes are not intended to be used directly. Creation of these resource objects is done via the new ObjectFactory class. IResourceService automatically handles serialization/deserialization.

Such classes and interfaces pertaining to resource types reside under the OSGeo.MapGuide.ObjectModels namespace

Note: See TracWiki for help on using the wiki.