[mapguide-commits] r9140 - sandbox/adsk/3.2o.AIMS/Server/src/Services/Feature

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Apr 4 21:44:02 PDT 2017


Author: hubu
Date: 2017-04-04 21:44:02 -0700 (Tue, 04 Apr 2017)
New Revision: 9140

Modified:
   sandbox/adsk/3.2o.AIMS/Server/src/Services/Feature/ServerDescribeSchema.cpp
Log:
Ignore abstract classes when DescribeSchema because they should not be visible to consumer.

Modified: sandbox/adsk/3.2o.AIMS/Server/src/Services/Feature/ServerDescribeSchema.cpp
===================================================================
--- sandbox/adsk/3.2o.AIMS/Server/src/Services/Feature/ServerDescribeSchema.cpp	2017-03-24 01:23:47 UTC (rev 9139)
+++ sandbox/adsk/3.2o.AIMS/Server/src/Services/Feature/ServerDescribeSchema.cpp	2017-04-05 04:44:02 UTC (rev 9140)
@@ -1,5 +1,5 @@
 //
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
+//  Copyright (C) 2017 by Autodesk, Inc.
 //
 //  This library is free software; you can redistribute it and/or
 //  modify it under the terms of version 2.1 of the GNU Lesser
@@ -283,8 +283,9 @@
 
                 FdoStringP qname = fc->GetQualifiedName();
                 FdoStringP name = fc->GetName();
+                FdoBoolean isAbstract = fc->GetIsAbstract();
 
-                if (name != NULL && qname != NULL)
+                if (name != NULL && qname != NULL && !isAbstract)
                 {
                     Ptr<MgClassDefinition> classDefinition = MgServerFeatureUtil::GetMgClassDefinition(fc, serialize);
                     classCol->Add(classDefinition);
@@ -564,6 +565,9 @@
 
             }  // Repeat for all extensions
 
+            if (classCol->GetCount() == 0)
+                continue;
+
             // Add the schema to the MgFeatureSchemaCollection
             fsCollection->Add(schema);
 



More information about the mapguide-commits mailing list