geoserver/geoserver — pull request #230 by jesseeichar (2013-05-08 12:34:01+00:00)
Title: Add local workspace remove prefix configuration

Currently by default the capabilities document produced from virtual workspaces will remove the namespace prefix from the layer names. This commit adds a configuraton option to disable this behaviour.

This is also a fix for http://jira.codehaus.org/browse/GEOS-5476

My main concern with this change is how I obtain the GeoServer instance in the LocalWorkspaceCatalog. I couldn't set the instance in the applicationContext.xml because that creates a "unresolvable circular reference". Because of this I modified the GeoServerImpl setCatalog method to call the setGeoServer() method on the catalog.

My second concern is that I had to follow the pattern of setValidated for the UI. This meant getters and setters in both SettingsInfo and GeoServerInfo.

If you have advice for how to better implement those concerns I will happily do so.

Jesse