Hi Ben,
I looked over the patches and they look pretty good i have to say, nice work. I have a couple of minor comments but they are pretty trivial (see below).
I was able to apply the patches and have all the unit tests pass. To be ultra confident i would like to run cite tests, which I plan to do a little later today.
Again, great job.
Some minor feedback.
* FeatureTypeInfoUtil
This seems to be a utility class which takes a FeatureTypeInfo's name and namesapce qualifies it. I think it makes sense to just have the qualified name just be a regular property on FeatureTypeInfo (maybe ResourceInfo).
* LegacyCatalogImporter
I think some of your patch rolls back some recent changes i made:
String defaultStyleName = ftInfoReader.defaultStyle();
if ( defaultStyleName != null ) {
- StyleInfo style = catalog.getStyleByName(defaultStyleName);
- if ( style != null ) {
- layer.setDefaultStyle(style);
- layer.getStyles().add(style);
- }
+ layer.setDefaultStyle(catalog.getStyleByName(defaultStyleName));
}
Map legendURL = ftInfoReader.legendURL();
@@ -240,11 +239,7 @@
String defaultStyleName = cInfoReader.defaultStyle();
if ( defaultStyleName != null ) {
- StyleInfo style = catalog.getStyleByName(defaultStyleName);
- if ( style != null ) {
- layer.setDefaultStyle(style);
- layer.getStyles().add(style);
- }
+ layer.setDefaultStyle(catalog.getStyleByName(defaultStyleName));
}
-Justin
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.