Resource Service
Detailed Description
The Resource Service enables you to manipulate resources - the files and configuration information necessary to draw layers and maps. Resources are stored in the resource repository. The repository is structured like a directory, with documents, folders, and subfolders. Each resource is stored as XML and has a unique path in the repository. The resources extension must match one of the types defined in MgResourceType, but the rest of the name and the path is arbitrary. The roots path isLibrary://
and the path of a typical resource might be Library://Cities/Calgary/downtown.LayerDefinition
. Resources may depend on other items:
- Some resources are self sufficient and do not refer to any other resources or files.
- Some resources reference other resources. For example, layers and feature sources are stored as separate resources. A layer resource refers to the resources for the feature sources that are used in that layer.
- Some resources use associated resource data. This is used to store configuration information for ODBC/WMS/Raster feature sources.
- Note:
- AutoCAD Map 3D does not use resource headers. They are only used in MapGuide, to control permissions in the site repository. In AutoCAD Map 3D, pass a NULL parameter for methods that require a resource header, such as SetResource.
Methods For Working With Repositories
- MgResourceService::GetRepositoryContent (MapGuide only)
- MgResourceService::GetRepositoryHeader (MapGuide only)
- MgResourceService::UpdateRepository (MapGuide only)
Methods For Working With Resources
- MgResourceService::ChangeResourceOwner (MapGuide only)
- MgResourceService::CopyResource
- MgResourceService::DeleteResource
- MgResourceService::EnumerateReferences
- MgResourceService::EnumerateResources
- MgResourceService::EnumerateUnmanagedData (MapGuide only)
- MgResourceService::GetResourceContent
- MgResourceService::GetResourceHeader (MapGuide only)
- MgResourceService::GetResourceMetadata
- MgResourceService::InheritPermissionsFrom (MapGuide only)
- MgResourceService::MoveResource
- MgResourceService::ResourceExists
- MgResourceService::SetResource
- MgResourceService::SetResourceMetadata
Methods For Working With Resource Data
- MgResourceService::DeleteResourceData
- MgResourceService::EnumerateResourceData
- MgResourceService::GetResourceData
- MgResourceService::RenameResourceData
- MgResourceService::SetResourceData
Methods For Working With Resource Packages
- MgResourceService::ApplyResourcePackage (MapGuide only)
Modules | |
Resource Service Classes |