Hi,
I'd like to propose (and implement) a new feature for the GeoServer
configuration,
the ability to hide a layer from the capabilities: simple checkbox
making the layer
available, or not.

A hidden layer can be useful in some cases:
- the layer should be part of a group, but we want to show the group,
not the inner
  layers, to the world
- the layer is temporary and somehow linked to a user session, we don't want
  to show it to the wide world yet we need it to be around and usable from
  OGC service calls
- the layer is going to stay there, but it's a service one, something that a
  particular application uses under covers but that we don't want normal clients
  to see and use (not for security issues, but just to avoid
  making the capabilities contents too verbose/confusing)

The idea would be to add the flag to LayerInfo, as a new method in the API.
Yet I'd need to have this in 2.1.x too (this would be a sponsored feature),
and we have had a number of these issue in the past... I think I have
a solution:
- on 2.1.x add the property in the interface, but make it a derived one picking
  on the user map
- on trunk add the field as a Boolean, and inspect the user map as a fallback
  when the field is not set

Opinions?

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to