[mapguide-commits] r8262 - sandbox/jng/convenience_apis/Common/PlatformBase/Services

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Jun 23 07:31:00 PDT 2014


Author: jng
Date: 2014-06-23 07:31:00 -0700 (Mon, 23 Jun 2014)
New Revision: 8262

Modified:
   sandbox/jng/convenience_apis/Common/PlatformBase/Services/ResourceService.h
Log:
Promote MgResourceService::GetResourceModifiedDate() to EXTERNAL_API. There's value in this method being available for web infrastructure as knowing modification dates is critical in being able to apply HTTP caching.

Modified: sandbox/jng/convenience_apis/Common/PlatformBase/Services/ResourceService.h
===================================================================
--- sandbox/jng/convenience_apis/Common/PlatformBase/Services/ResourceService.h	2014-06-23 14:26:11 UTC (rev 8261)
+++ sandbox/jng/convenience_apis/Common/PlatformBase/Services/ResourceService.h	2014-06-23 14:31:00 UTC (rev 8262)
@@ -1848,34 +1848,6 @@
 
     ///////////////////////////////////////////////////////////////////////////
     /// \brief
-    /// Returns the modified date of the specified resource.
-    ///
-    /// This method only works on "Library" repository.
-    ///
-    /// <!-- Syntax in .Net, Java, and PHP -->
-    /// \htmlinclude DotNetSyntaxTop.html
-    /// virtual MgDateTime GetResourceModifiedDate(MgResourceIdentifier resource);
-    /// \htmlinclude SyntaxBottom.html
-    /// \htmlinclude JavaSyntaxTop.html
-    /// virtual MgDateTime GetResourceModifiedDate(MgResourceIdentifier resource);
-    /// \htmlinclude SyntaxBottom.html
-    /// \htmlinclude PHPSyntaxTop.html
-    /// virtual MgDateTime GetResourceModifiedDate(MgResourceIdentifier resource);
-    /// \htmlinclude SyntaxBottom.html
-    ///
-    /// \param resource (MgResourceIdentifier)
-    /// Resource to get the modified date for.
-    ///
-    /// \return
-    /// An MgDateTime object containing the modified date of the resource.
-    ///
-    /// \exception MgInvalidRepositoryTypeException
-    /// \exception MgInvalidResourceTypeException
-    ///
-    virtual MgDateTime* GetResourceModifiedDate(MgResourceIdentifier* resource) = 0;
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
     /// Enumerate all the parent Map Definition resources of the specified
     /// resources.
     ///
@@ -1909,6 +1881,34 @@
 
 EXTERNAL_API:
 
+    ///////////////////////////////////////////////////////////////////////////
+    /// \brief
+    /// Returns the modified date of the specified resource.
+    ///
+    /// This method only works on "Library" repository.
+    ///
+    /// <!-- Syntax in .Net, Java, and PHP -->
+    /// \htmlinclude DotNetSyntaxTop.html
+    /// virtual MgDateTime GetResourceModifiedDate(MgResourceIdentifier resource);
+    /// \htmlinclude SyntaxBottom.html
+    /// \htmlinclude JavaSyntaxTop.html
+    /// virtual MgDateTime GetResourceModifiedDate(MgResourceIdentifier resource);
+    /// \htmlinclude SyntaxBottom.html
+    /// \htmlinclude PHPSyntaxTop.html
+    /// virtual MgDateTime GetResourceModifiedDate(MgResourceIdentifier resource);
+    /// \htmlinclude SyntaxBottom.html
+    ///
+    /// \param resource (MgResourceIdentifier)
+    /// Resource to get the modified date for.
+    ///
+    /// \return
+    /// An MgDateTime object containing the modified date of the resource.
+    ///
+    /// \exception MgInvalidRepositoryTypeException
+    /// \exception MgInvalidResourceTypeException
+    ///
+    virtual MgDateTime* GetResourceModifiedDate(MgResourceIdentifier* resource) = 0;
+
     /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     /// \brief
     /// Sets the Metadata content for an existing resource.



More information about the mapguide-commits mailing list